diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5d41091fcc9..d85d91ebe8b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -6,4 +6,4 @@ # All of the people (and only those people) from the matching rule will be notified # Default rule: anything that doesn't match a more specific rule goes here -* @radius-project/Radius-Eng +* @radius-project/maintainers-radius @radius-project/approvers-radius \ No newline at end of file diff --git a/.github/workflows/functional-test.yaml b/.github/workflows/functional-test.yaml index e210ed76472..d7d1029ce46 100644 --- a/.github/workflows/functional-test.yaml +++ b/.github/workflows/functional-test.yaml @@ -526,7 +526,7 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.FUNCTEST_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.FUNCTEST_AWS_SECRET_ACCESS_KEY }} AWS_REGION: ${{ env.AWS_REGION }} - RADIUS_SAMPLES_REPO_ROOT: ${{ github.workspace }}/samples + # RADIUS_SAMPLES_REPO_ROOT: ${{ github.workspace }}/samples # Test_MongoDB_Recipe_Parameters is using the following environment variable. INTEGRATION_TEST_RESOURCE_GROUP_NAME: ${{ env.AZURE_TEST_RESOURCE_GROUP }} BICEP_RECIPE_REGISTRY: ${{ env.BICEP_RECIPE_REGISTRY }} diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index 9a7facbd5a5..00000000000 --- a/CODEOWNERS +++ /dev/null @@ -1,2 +0,0 @@ -# These owners are the maintainers and approvers of this repo -* @radius-repo/maintainers-radius @radius-repo/approvers-radius \ No newline at end of file diff --git a/build/generate.mk b/build/generate.mk index 3863d7b2fe8..7ace5f2a7a9 100644 --- a/build/generate.mk +++ b/build/generate.mk @@ -67,32 +67,32 @@ generate-ucp-crd: generate-controller-gen-installed .PHONY: generate-genericcliclient generate-genericcliclient: generate-node-installed generate-autorest-installed @echo "$(AUTOREST_MODULE_VERSION) is module version" - autorest pkg/cli/clients_new/README.md --tag=2022-03-15-privatepreview + autorest pkg/cli/clients_new/README.md --tag=2023-10-01-preview .PHONY: generate-rad-corerp-client generate-rad-corerp-client: generate-node-installed generate-autorest-installed generate-tsp-installed generate-openapi-spec ## Generates the corerp client SDK (Autorest). @echo "$(AUTOREST_MODULE_VERSION) is module version" - autorest pkg/corerp/api/README.md --tag=core-2022-03-15-privatepreview + autorest pkg/corerp/api/README.md --tag=core-2023-10-01-preview .PHONY: generate-rad-datastoresrp-client generate-rad-datastoresrp-client: generate-node-installed generate-autorest-installed generate-tsp-installed generate-openapi-spec ## Generates the datastoresrp client SDK (Autorest). @echo "$(AUTOREST_MODULE_VERSION) is module version" - autorest pkg/datastoresrp/api/README.md --tag=datastores-2022-03-15-privatepreview + autorest pkg/datastoresrp/api/README.md --tag=datastores-2023-10-01-preview .PHONY: generate-rad-messagingrp-client generate-rad-messagingrp-client: generate-node-installed generate-autorest-installed generate-tsp-installed generate-openapi-spec ## Generates the messagingrp client SDK (Autorest). @echo "$(AUTOREST_MODULE_VERSION) is module version" - autorest pkg/messagingrp/api/README.md --tag=messaging-2022-03-15-privatepreview + autorest pkg/messagingrp/api/README.md --tag=messaging-2023-10-01-preview .PHONY: generate-rad-daprrp-client generate-rad-daprrp-client: generate-node-installed generate-autorest-installed generate-tsp-installed generate-openapi-spec ## Generates the daprrp client SDK (Autorest). @echo "$(AUTOREST_MODULE_VERSION) is module version" - autorest pkg/daprrp/api/README.md --tag=dapr-2022-03-15-privatepreview + autorest pkg/daprrp/api/README.md --tag=dapr-2023-10-01-preview .PHONY: generate-rad-ucp-client generate-rad-ucp-client: generate-node-installed generate-autorest-installed test-ucp-spec-examples ## Generates the UCP client SDK (Autorest). @echo "$(AUTOREST_MODULE_VERSION) is module version" - autorest pkg/ucp/api/README.md --tag=ucp-2022-09-01-privatepreview + autorest pkg/ucp/api/README.md --tag=ucp-2023-10-01-preview .PHONY: generate-mockgen-installed generate-mockgen-installed: diff --git a/build/test.mk b/build/test.mk index e87c9ee7392..fe91c35abbe 100644 --- a/build/test.mk +++ b/build/test.mk @@ -90,6 +90,6 @@ oav-installed: .PHONY: test-ucp-spec-examples test-ucp-spec-examples: oav-installed ## Validates UCP examples conform to UCP OpenAPI Spec # @echo "$(ARROW) Testing x-ms-examples conform to ucp spec..." - # oav validate-example swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/openapi.json + # oav validate-example swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/openapi.json diff --git a/docs/contributing/contributing-code/contributing-code-schema-changes/README.md b/docs/contributing/contributing-code/contributing-code-schema-changes/README.md index 5c8e73330b2..b27c9d3efc8 100644 --- a/docs/contributing/contributing-code/contributing-code-schema-changes/README.md +++ b/docs/contributing/contributing-code/contributing-code-schema-changes/README.md @@ -23,7 +23,7 @@ In order to update or create a new schema follow these steps: For example, to generate the `Applications.Core` resources run: ```bash - autorest pkg/corerp/api/README.md --tag=link-2022-03-15-privatepreview + autorest pkg/corerp/api/README.md --tag=link-2023-10-01-preview ``` The autotrest configuration file (_i.e README.md_) is generally found in `pkg//api/` directory and has details on which tag to use. diff --git a/docs/contributing/contributing-code/contributing-code-tests/tests-naming-conventions.md b/docs/contributing/contributing-code/contributing-code-tests/tests-naming-conventions.md index a75722808c6..231ca9260c5 100644 --- a/docs/contributing/contributing-code/contributing-code-tests/tests-naming-conventions.md +++ b/docs/contributing/contributing-code/contributing-code-tests/tests-naming-conventions.md @@ -27,12 +27,12 @@ Today, the [functional tests](https://github.com/radius-project/radius/tree/main In any new test, the resources should be prefixed with the test type: #### corerp-resources-gateway.bicep ```bicep -resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { +resource gateway 'Applications.Core/gateways@2023-10-01-preview' = { name: 'gtwy-gtwy' ... } -resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'gtwy-front-rte' ... } @@ -43,7 +43,7 @@ This specifies `gtwy` as the test type and the suffix declares the type of resou Many of the tests use the `magpiego` image as a testing container. These should be named with the test type as the prefix and `app-ctnr` as the suffix: #### corerp-resources-mongodb.bicep ```bicep -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'mdb-app-ctnr' ... } diff --git a/docs/ucp/code_walkthrough.md b/docs/ucp/code_walkthrough.md index 4cbaf16326f..dcdd7609fdd 100644 --- a/docs/ucp/code_walkthrough.md +++ b/docs/ucp/code_walkthrough.md @@ -19,7 +19,7 @@ For proxying requests to the AWS plane, UCP needs to perform request translation

## UCP Resource Definitions -The swagger defintions for UCP resources are defined in swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/ucp.json. +The swagger defintions for UCP resources are defined in swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/ucp.json.

diff --git a/docs/ucp/developer_guide.md b/docs/ucp/developer_guide.md index 68d8586d920..e0a6e2fde6b 100644 --- a/docs/ucp/developer_guide.md +++ b/docs/ucp/developer_guide.md @@ -51,7 +51,7 @@ kubectl logs {ucp pod name} -n radius-system -f * You can directly send requests to UCP instead of going via the CLI to isolate issues while testing. For this, you could use any REST client like Postman with the URL such as:- ``` URL:- - PUT http://127.0.0.1:9000/apis/api.ucp.dev/v1alpha3/planes/radius/local/resourceGroups/{rg}/providers/Applications.Core/environments/{name}?api-version=2022-03-15-privatepreview + PUT http://127.0.0.1:9000/apis/api.ucp.dev/v1alpha3/planes/radius/local/resourceGroups/{rg}/providers/Applications.Core/environments/{name}?api-version=2023-10-01-preview Body:- { diff --git a/hack/bicep-types-radius/generated/applications/applications.core/2022-03-15-privatepreview/types.json b/hack/bicep-types-radius/generated/applications/applications.core/2022-03-15-privatepreview/types.json deleted file mode 100644 index b6cbae045fa..00000000000 --- a/hack/bicep-types-radius/generated/applications/applications.core/2022-03-15-privatepreview/types.json +++ /dev/null @@ -1 +0,0 @@ -[{"1":{"Kind":1}},{"1":{"Kind":2}},{"1":{"Kind":3}},{"1":{"Kind":4}},{"1":{"Kind":5}},{"1":{"Kind":6}},{"1":{"Kind":7}},{"1":{"Kind":8}},{"6":{"Value":"Applications.Core/applications"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Core/applications","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":8,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":9,"Flags":10,"Description":"The resource api version"},"properties":{"Type":11,"Flags":0,"Description":"Application properties"},"tags":{"Type":45,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"ApplicationProperties","Properties":{"provisioningState":{"Type":19,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"extensions":{"Type":34,"Flags":0,"Description":"The application extension."},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[12,13,14,15,16,17,18]}},{"7":{"Name":"Extension","Discriminator":"kind","BaseProperties":{},"Elements":{"daprSidecar":21,"kubernetesMetadata":26,"kubernetesNamespace":30,"manualScaling":32}}},{"2":{"Name":"DaprSidecarExtension","Properties":{"appPort":{"Type":3,"Flags":0,"Description":"The Dapr appPort. Specifies the internal listening port for the application to handle requests from the Dapr sidecar."},"appId":{"Type":4,"Flags":1,"Description":"The Dapr appId. Specifies the identifier used by Dapr for service invocation."},"config":{"Type":4,"Flags":0,"Description":"Specifies the Dapr configuration to use for the resource."},"protocol":{"Type":24,"Flags":0,"Description":"The Dapr sidecar extension protocol"},"kind":{"Type":25,"Flags":1,"Description":"Discriminator property for Extension."}}}},{"6":{"Value":"http"}},{"6":{"Value":"grpc"}},{"5":{"Elements":[22,23]}},{"6":{"Value":"daprSidecar"}},{"2":{"Name":"KubernetesMetadataExtension","Properties":{"annotations":{"Type":27,"Flags":0,"Description":"Annotations to be applied to the Kubernetes resources output by the resource"},"labels":{"Type":28,"Flags":0,"Description":"Labels to be applied to the Kubernetes resources output by the resource"},"kind":{"Type":29,"Flags":1,"Description":"Discriminator property for Extension."}}}},{"2":{"Name":"KubernetesMetadataExtensionAnnotations","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"KubernetesMetadataExtensionLabels","Properties":{},"AdditionalProperties":4}},{"6":{"Value":"kubernetesMetadata"}},{"2":{"Name":"KubernetesNamespaceExtension","Properties":{"namespace":{"Type":4,"Flags":1,"Description":"The namespace of the application environment."},"kind":{"Type":31,"Flags":1,"Description":"Discriminator property for Extension."}}}},{"6":{"Value":"kubernetesNamespace"}},{"2":{"Name":"ManualScalingExtension","Properties":{"replicas":{"Type":3,"Flags":1,"Description":"Replica count."},"kind":{"Type":33,"Flags":1,"Description":"Discriminator property for Extension."}}}},{"6":{"Value":"manualScaling"}},{"3":{"ItemType":20}},{"2":{"Name":"ResourceStatus","Properties":{"compute":{"Type":36,"Flags":0,"Description":"Represents backing compute resource"},"outputResources":{"Type":44,"Flags":0,"Description":"Properties of an output resource"}}}},{"7":{"Name":"EnvironmentCompute","Discriminator":"kind","BaseProperties":{"resourceId":{"Type":4,"Flags":0,"Description":"The resource id of the compute resource for application environment."},"identity":{"Type":37,"Flags":0,"Description":"IdentitySettings is the external identity setting."}},"Elements":{"kubernetes":41}}},{"2":{"Name":"IdentitySettings","Properties":{"kind":{"Type":40,"Flags":1,"Description":"IdentitySettingKind is the kind of supported external identity setting"},"oidcIssuer":{"Type":4,"Flags":0,"Description":"The URI for your compute platform's OIDC issuer"},"resource":{"Type":4,"Flags":0,"Description":"The resource ID of the provisioned identity"}}}},{"6":{"Value":"undefined"}},{"6":{"Value":"azure.com.workload"}},{"5":{"Elements":[38,39]}},{"2":{"Name":"KubernetesCompute","Properties":{"namespace":{"Type":4,"Flags":1,"Description":"The namespace to use for the environment."},"kind":{"Type":42,"Flags":1,"Description":"Discriminator property for EnvironmentCompute."}}}},{"6":{"Value":"kubernetes"}},{"2":{"Name":"OutputResource","Properties":{"localId":{"Type":4,"Flags":0,"Description":"The logical identifier scoped to the owning Radius resource. This is only needed or used when a resource has a dependency relationship. LocalIDs do not have any particular format or meaning beyond being compared to determine dependency relationships."},"id":{"Type":4,"Flags":0,"Description":"The UCP resource ID of the underlying resource."},"radiusManaged":{"Type":2,"Flags":0,"Description":"Determines whether Radius manages the lifecycle of the underlying resource."}}}},{"3":{"ItemType":43}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"SystemData","Properties":{"createdBy":{"Type":4,"Flags":0,"Description":"The identity that created the resource."},"createdByType":{"Type":51,"Flags":0,"Description":"The type of identity that created the resource."},"createdAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource creation (UTC)."},"lastModifiedBy":{"Type":4,"Flags":0,"Description":"The identity that last modified the resource."},"lastModifiedByType":{"Type":56,"Flags":0,"Description":"The type of identity that created the resource."},"lastModifiedAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource last modification (UTC)"}}}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[47,48,49,50]}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[52,53,54,55]}},{"4":{"Name":"Applications.Core/applications@2022-03-15-privatepreview","ScopeType":0,"Body":10}},{"6":{"Value":"Applications.Core/containers"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Core/containers","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":58,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":59,"Flags":10,"Description":"The resource api version"},"properties":{"Type":61,"Flags":0,"Description":"Container properties"},"tags":{"Type":112,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"ContainerProperties","Properties":{"environment":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)"},"application":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by"},"provisioningState":{"Type":69,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."},"container":{"Type":70,"Flags":1,"Description":"Definition of a container"},"connections":{"Type":107,"Flags":0,"Description":"Specifies a connection to another resource."},"identity":{"Type":37,"Flags":0,"Description":"IdentitySettings is the external identity setting."},"extensions":{"Type":108,"Flags":0,"Description":"Extensions spec of the resource"},"runtimes":{"Type":109,"Flags":0,"Description":"The properties for runtime configuration"}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[62,63,64,65,66,67,68]}},{"2":{"Name":"Container","Properties":{"image":{"Type":4,"Flags":1,"Description":"The registry and image to download and run in your container"},"imagePullPolicy":{"Type":74,"Flags":0,"Description":"The image pull policy for the container"},"env":{"Type":75,"Flags":0,"Description":"environment"},"ports":{"Type":80,"Flags":0,"Description":"container ports"},"readinessProbe":{"Type":81,"Flags":0,"Description":"Properties for readiness/liveness probe"},"livenessProbe":{"Type":81,"Flags":0,"Description":"Properties for readiness/liveness probe"},"volumes":{"Type":100,"Flags":0,"Description":"container volumes"},"command":{"Type":101,"Flags":0,"Description":"Entrypoint array. Overrides the container image's ENTRYPOINT"},"args":{"Type":102,"Flags":0,"Description":"Arguments to the entrypoint. Overrides the container image's CMD"},"workingDir":{"Type":4,"Flags":0,"Description":"Working directory for the container"}}}},{"6":{"Value":"Always"}},{"6":{"Value":"IfNotPresent"}},{"6":{"Value":"Never"}},{"5":{"Elements":[71,72,73]}},{"2":{"Name":"ContainerEnv","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"ContainerPortProperties","Properties":{"containerPort":{"Type":3,"Flags":1,"Description":"The listening port number"},"protocol":{"Type":79,"Flags":0,"Description":"The protocol in use by the port"},"provides":{"Type":4,"Flags":0,"Description":"Specifies a route provided by this port"},"scheme":{"Type":4,"Flags":0,"Description":"Specifies the URL scheme of the communication protocol. Consumers can use the scheme to construct a URL. The value defaults to 'http' or 'https' depending on the port value"},"port":{"Type":3,"Flags":0,"Description":"Specifies the port that will be exposed by this container. Must be set when value different from containerPort is desired"}}}},{"6":{"Value":"TCP"}},{"6":{"Value":"UDP"}},{"5":{"Elements":[77,78]}},{"2":{"Name":"ContainerPorts","Properties":{},"AdditionalProperties":76}},{"7":{"Name":"HealthProbeProperties","Discriminator":"kind","BaseProperties":{"initialDelaySeconds":{"Type":3,"Flags":0,"Description":"Initial delay in seconds before probing for readiness/liveness"},"failureThreshold":{"Type":3,"Flags":0,"Description":"Threshold number of times the probe fails after which a failure would be reported"},"periodSeconds":{"Type":3,"Flags":0,"Description":"Interval for the readiness/liveness probe in seconds"},"timeoutSeconds":{"Type":3,"Flags":0,"Description":"Number of seconds after which the readiness/liveness probe times out. Defaults to 5 seconds"}},"Elements":{"exec":82,"httpGet":84,"tcp":87}}},{"2":{"Name":"ExecHealthProbeProperties","Properties":{"command":{"Type":4,"Flags":1,"Description":"Command to execute to probe readiness/liveness"},"kind":{"Type":83,"Flags":1,"Description":"Discriminator property for HealthProbeProperties."}}}},{"6":{"Value":"exec"}},{"2":{"Name":"HttpGetHealthProbeProperties","Properties":{"containerPort":{"Type":3,"Flags":1,"Description":"The listening port number"},"path":{"Type":4,"Flags":1,"Description":"The route to make the HTTP request on"},"headers":{"Type":85,"Flags":0,"Description":"Custom HTTP headers to add to the get request"},"kind":{"Type":86,"Flags":1,"Description":"Discriminator property for HealthProbeProperties."}}}},{"2":{"Name":"HttpGetHealthProbePropertiesHeaders","Properties":{},"AdditionalProperties":4}},{"6":{"Value":"httpGet"}},{"2":{"Name":"TcpHealthProbeProperties","Properties":{"containerPort":{"Type":3,"Flags":1,"Description":"The listening port number"},"kind":{"Type":88,"Flags":1,"Description":"Discriminator property for HealthProbeProperties."}}}},{"6":{"Value":"tcp"}},{"7":{"Name":"Volume","Discriminator":"kind","BaseProperties":{"mountPath":{"Type":4,"Flags":0,"Description":"The path where the volume is mounted"}},"Elements":{"ephemeral":90,"persistent":95}}},{"2":{"Name":"EphemeralVolume","Properties":{"managedStore":{"Type":93,"Flags":1,"Description":"The managed store for the ephemeral volume"},"kind":{"Type":94,"Flags":1,"Description":"Discriminator property for Volume."}}}},{"6":{"Value":"memory"}},{"6":{"Value":"disk"}},{"5":{"Elements":[91,92]}},{"6":{"Value":"ephemeral"}},{"2":{"Name":"PersistentVolume","Properties":{"permission":{"Type":98,"Flags":0,"Description":"The persistent volume permission"},"source":{"Type":4,"Flags":1,"Description":"The source of the volume"},"kind":{"Type":99,"Flags":1,"Description":"Discriminator property for Volume."}}}},{"6":{"Value":"read"}},{"6":{"Value":"write"}},{"5":{"Elements":[96,97]}},{"6":{"Value":"persistent"}},{"2":{"Name":"ContainerVolumes","Properties":{},"AdditionalProperties":89}},{"3":{"ItemType":4}},{"3":{"ItemType":4}},{"2":{"Name":"ConnectionProperties","Properties":{"source":{"Type":4,"Flags":1,"Description":"The source of the connection"},"disableDefaultEnvVars":{"Type":2,"Flags":0,"Description":"default environment variable override"},"iam":{"Type":104,"Flags":0,"Description":"IAM properties"}}}},{"2":{"Name":"IamProperties","Properties":{"kind":{"Type":105,"Flags":1,"Description":"The kind of IAM provider to configure"},"roles":{"Type":106,"Flags":0,"Description":"RBAC permissions to be assigned on the source resource"}}}},{"6":{"Value":"azure"}},{"3":{"ItemType":4}},{"2":{"Name":"ContainerPropertiesConnections","Properties":{},"AdditionalProperties":103}},{"3":{"ItemType":20}},{"2":{"Name":"RuntimesProperties","Properties":{"kubernetes":{"Type":110,"Flags":0,"Description":"The runtime configuration properties for Kubernetes"}}}},{"2":{"Name":"KubernetesRuntimeProperties","Properties":{"base":{"Type":4,"Flags":0,"Description":"The serialized YAML manifest which represents the base Kubernetes resources to deploy, such as Deployment, Service, ServiceAccount, Secrets, and ConfigMaps."},"pod":{"Type":111,"Flags":0,"Description":"A strategic merge patch that will be applied to the PodSpec object when this container is being deployed."}}}},{"2":{"Name":"KubernetesPodSpec","Properties":{},"AdditionalProperties":0}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/containers@2022-03-15-privatepreview","ScopeType":0,"Body":60}},{"6":{"Value":"Applications.Core/environments"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Core/environments","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":114,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":115,"Flags":10,"Description":"The resource api version"},"properties":{"Type":117,"Flags":0,"Description":"Environment properties"},"tags":{"Type":137,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"EnvironmentProperties","Properties":{"provisioningState":{"Type":125,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"compute":{"Type":36,"Flags":1,"Description":"Represents backing compute resource"},"providers":{"Type":126,"Flags":0,"Description":"The Cloud providers configuration"},"recipes":{"Type":135,"Flags":0,"Description":"Specifies Recipes linked to the Environment."},"extensions":{"Type":136,"Flags":0,"Description":"The environment extension."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[118,119,120,121,122,123,124]}},{"2":{"Name":"Providers","Properties":{"azure":{"Type":127,"Flags":0,"Description":"The Azure cloud provider definition"},"aws":{"Type":128,"Flags":0,"Description":"The AWS cloud provider definition"}}}},{"2":{"Name":"ProvidersAzure","Properties":{"scope":{"Type":4,"Flags":1,"Description":"Target scope for Azure resources to be deployed into. For example: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup'"}}}},{"2":{"Name":"ProvidersAws","Properties":{"scope":{"Type":4,"Flags":1,"Description":"Target scope for AWS resources to be deployed into. For example: '/planes/aws/aws/accounts/000000000000/regions/us-west-2'"}}}},{"7":{"Name":"RecipeProperties","Discriminator":"templateKind","BaseProperties":{"templatePath":{"Type":4,"Flags":1,"Description":"Path to the template provided by the recipe. Currently only link to Azure Container Registry is supported."},"parameters":{"Type":0,"Flags":0,"Description":"Any object"}},"Elements":{"bicep":130,"terraform":132}}},{"2":{"Name":"BicepRecipeProperties","Properties":{"templateKind":{"Type":131,"Flags":1,"Description":"Discriminator property for RecipeProperties."}}}},{"6":{"Value":"bicep"}},{"2":{"Name":"TerraformRecipeProperties","Properties":{"templateVersion":{"Type":4,"Flags":0,"Description":"Version of the template to deploy. For Terraform recipes using a module registry this is required, but must be omitted for other module sources."},"templateKind":{"Type":133,"Flags":1,"Description":"Discriminator property for RecipeProperties."}}}},{"6":{"Value":"terraform"}},{"2":{"Name":"DictionaryOfRecipeProperties","Properties":{},"AdditionalProperties":129}},{"2":{"Name":"EnvironmentPropertiesRecipes","Properties":{},"AdditionalProperties":134}},{"3":{"ItemType":20}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/environments@2022-03-15-privatepreview","ScopeType":0,"Body":116}},{"6":{"Value":"Applications.Core/extenders"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Core/extenders","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":139,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":140,"Flags":10,"Description":"The resource api version"},"properties":{"Type":142,"Flags":0,"Description":"ExtenderResource portable resource properties"},"tags":{"Type":155,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"ExtenderProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":150,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."},"secrets":{"Type":0,"Flags":0,"Description":"Any object"},"recipe":{"Type":151,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":154,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}},"AdditionalProperties":0}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[143,144,145,146,147,148,149]}},{"2":{"Name":"Recipe","Properties":{"name":{"Type":4,"Flags":1,"Description":"The name of the recipe within the environment to use"},"parameters":{"Type":0,"Flags":0,"Description":"Any object"}}}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[152,153]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/extenders@2022-03-15-privatepreview","ScopeType":0,"Body":141}},{"6":{"Value":"Applications.Core/gateways"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Core/gateways","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":157,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":158,"Flags":10,"Description":"The resource api version"},"properties":{"Type":160,"Flags":0,"Description":"Gateway properties"},"tags":{"Type":176,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"GatewayProperties","Properties":{"environment":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)"},"application":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by"},"provisioningState":{"Type":168,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."},"internal":{"Type":2,"Flags":0,"Description":"Sets Gateway to not be exposed externally (no public IP address associated). Defaults to false (exposed to internet)."},"hostname":{"Type":169,"Flags":0,"Description":"Declare hostname information for the Gateway. Leaving the hostname empty auto-assigns one: mygateway.myapp.PUBLICHOSTNAMEORIP.nip.io."},"routes":{"Type":171,"Flags":1,"Description":"Routes attached to this Gateway"},"tls":{"Type":172,"Flags":0,"Description":"TLS configuration definition for Gateway resource."},"url":{"Type":4,"Flags":2,"Description":"URL of the gateway resource. Readonly"}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[161,162,163,164,165,166,167]}},{"2":{"Name":"GatewayHostname","Properties":{"prefix":{"Type":4,"Flags":0,"Description":"Specify a prefix for the hostname: myhostname.myapp.PUBLICHOSTNAMEORIP.nip.io. Mutually exclusive with 'fullyQualifiedHostname' and will be overridden if both are defined."},"fullyQualifiedHostname":{"Type":4,"Flags":0,"Description":"Specify a fully-qualified domain name: myapp.mydomain.com. Mutually exclusive with 'prefix' and will take priority if both are defined."}}}},{"2":{"Name":"GatewayRoute","Properties":{"path":{"Type":4,"Flags":0,"Description":"The path to match the incoming request path on. Ex - /myservice."},"destination":{"Type":4,"Flags":0,"Description":"The HttpRoute to route to. Ex - myserviceroute.id."},"replacePrefix":{"Type":4,"Flags":0,"Description":"Optionally update the prefix when sending the request to the service. Ex - replacePrefix: '/' and path: '/myservice' will transform '/myservice/myroute' to '/myroute'"}}}},{"3":{"ItemType":170}},{"2":{"Name":"GatewayTls","Properties":{"sslPassthrough":{"Type":2,"Flags":0,"Description":"If true, gateway lets the https traffic sslPassthrough to the backend servers for decryption."},"minimumProtocolVersion":{"Type":175,"Flags":0,"Description":"Tls Minimum versions for Gateway resource."},"certificateFrom":{"Type":4,"Flags":0,"Description":"The resource id for the secret containing the TLS certificate and key for the gateway."}}}},{"6":{"Value":"1.2"}},{"6":{"Value":"1.3"}},{"5":{"Elements":[173,174]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/gateways@2022-03-15-privatepreview","ScopeType":0,"Body":159}},{"6":{"Value":"Applications.Core/httpRoutes"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Core/httpRoutes","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":178,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":179,"Flags":10,"Description":"The resource api version"},"properties":{"Type":181,"Flags":0,"Description":"HTTPRoute properties"},"tags":{"Type":190,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"HttpRouteProperties","Properties":{"environment":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)"},"application":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by"},"provisioningState":{"Type":189,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."},"hostname":{"Type":4,"Flags":0,"Description":"The internal hostname accepting traffic for the HTTP Route. Readonly."},"port":{"Type":3,"Flags":0,"Description":"The port number for the HTTP Route. Defaults to 80. Readonly."},"scheme":{"Type":4,"Flags":2,"Description":"The scheme used for traffic. Readonly."},"url":{"Type":4,"Flags":2,"Description":"A stable URL that that can be used to route traffic to a resource. Readonly."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[182,183,184,185,186,187,188]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/httpRoutes@2022-03-15-privatepreview","ScopeType":0,"Body":180}},{"6":{"Value":"Applications.Core/secretStores"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Core/secretStores","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":192,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":193,"Flags":10,"Description":"The resource api version"},"properties":{"Type":195,"Flags":0,"Description":"The properties of SecretStore"},"tags":{"Type":213,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"SecretStoreProperties","Properties":{"environment":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)"},"application":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by"},"provisioningState":{"Type":203,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."},"type":{"Type":206,"Flags":0,"Description":"The type of SecretStore data"},"data":{"Type":212,"Flags":1,"Description":"An object to represent key-value type secrets"},"resource":{"Type":4,"Flags":0,"Description":"The resource id of external secret store."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[196,197,198,199,200,201,202]}},{"6":{"Value":"generic"}},{"6":{"Value":"certificate"}},{"5":{"Elements":[204,205]}},{"2":{"Name":"SecretValueProperties","Properties":{"encoding":{"Type":210,"Flags":0,"Description":"The type of SecretValue Encoding"},"value":{"Type":4,"Flags":0,"Description":"The value of secret."},"valueFrom":{"Type":211,"Flags":0,"Description":"The Secret value source properties"}}}},{"6":{"Value":"raw"}},{"6":{"Value":"base64"}},{"5":{"Elements":[208,209]}},{"2":{"Name":"ValueFromProperties","Properties":{"name":{"Type":4,"Flags":1,"Description":"The name of the referenced secret."},"version":{"Type":4,"Flags":0,"Description":"The version of the referenced secret."}}}},{"2":{"Name":"SecretStorePropertiesData","Properties":{},"AdditionalProperties":207}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/secretStores@2022-03-15-privatepreview","ScopeType":0,"Body":194}},{"6":{"Value":"Applications.Core/volumes"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Core/volumes","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":215,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":216,"Flags":10,"Description":"The resource api version"},"properties":{"Type":218,"Flags":0,"Description":"Volume properties"},"tags":{"Type":250,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"7":{"Name":"VolumeProperties","Discriminator":"kind","BaseProperties":{"environment":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)"},"application":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by"},"provisioningState":{"Type":226,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."}},"Elements":{"azure.com.keyvault":227}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[219,220,221,222,223,224,225]}},{"2":{"Name":"AzureKeyVaultVolumeProperties","Properties":{"certificates":{"Type":240,"Flags":0,"Description":"The KeyVault certificates that this volume exposes"},"keys":{"Type":242,"Flags":0,"Description":"The KeyVault keys that this volume exposes"},"resource":{"Type":4,"Flags":1,"Description":"The ID of the keyvault to use for this volume resource"},"secrets":{"Type":248,"Flags":0,"Description":"The KeyVault secrets that this volume exposes"},"kind":{"Type":249,"Flags":1,"Description":"Discriminator property for VolumeProperties."}}}},{"2":{"Name":"CertificateObjectProperties","Properties":{"alias":{"Type":4,"Flags":0,"Description":"File name when written to disk"},"encoding":{"Type":232,"Flags":0,"Description":"Represents secret encodings"},"format":{"Type":235,"Flags":0,"Description":"Represents certificate formats"},"name":{"Type":4,"Flags":1,"Description":"The name of the certificate"},"certType":{"Type":239,"Flags":0,"Description":"Represents certificate types"},"version":{"Type":4,"Flags":0,"Description":"Certificate version"}}}},{"6":{"Value":"utf-8"}},{"6":{"Value":"hex"}},{"6":{"Value":"base64"}},{"5":{"Elements":[229,230,231]}},{"6":{"Value":"pem"}},{"6":{"Value":"pfx"}},{"5":{"Elements":[233,234]}},{"6":{"Value":"certificate"}},{"6":{"Value":"privatekey"}},{"6":{"Value":"publickey"}},{"5":{"Elements":[236,237,238]}},{"2":{"Name":"AzureKeyVaultVolumePropertiesCertificates","Properties":{},"AdditionalProperties":228}},{"2":{"Name":"KeyObjectProperties","Properties":{"alias":{"Type":4,"Flags":0,"Description":"File name when written to disk"},"name":{"Type":4,"Flags":1,"Description":"The name of the key"},"version":{"Type":4,"Flags":0,"Description":"Key version"}}}},{"2":{"Name":"AzureKeyVaultVolumePropertiesKeys","Properties":{},"AdditionalProperties":241}},{"2":{"Name":"SecretObjectProperties","Properties":{"alias":{"Type":4,"Flags":0,"Description":"File name when written to disk"},"encoding":{"Type":247,"Flags":0,"Description":"Represents secret encodings"},"name":{"Type":4,"Flags":1,"Description":"The name of the secret"},"version":{"Type":4,"Flags":0,"Description":"secret version"}}}},{"6":{"Value":"utf-8"}},{"6":{"Value":"hex"}},{"6":{"Value":"base64"}},{"5":{"Elements":[244,245,246]}},{"2":{"Name":"AzureKeyVaultVolumePropertiesSecrets","Properties":{},"AdditionalProperties":243}},{"6":{"Value":"azure.com.keyvault"}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/volumes@2022-03-15-privatepreview","ScopeType":0,"Body":217}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Core/extenders","ApiVersion":"2022-03-15-privatepreview","Output":0,"Input":0}},{"2":{"Name":"SecretStoreListSecretsResult","Properties":{"type":{"Type":256,"Flags":2,"Description":"The type of SecretStore data"},"data":{"Type":257,"Flags":2,"Description":"An object to represent key-value type secrets"}}}},{"6":{"Value":"generic"}},{"6":{"Value":"certificate"}},{"5":{"Elements":[254,255]}},{"2":{"Name":"SecretStoreListSecretsResultData","Properties":{},"AdditionalProperties":207}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Core/secretStores","ApiVersion":"2022-03-15-privatepreview","Output":253,"Input":0}}] \ No newline at end of file diff --git a/hack/bicep-types-radius/generated/applications/applications.core/2023-10-01-preview/types.json b/hack/bicep-types-radius/generated/applications/applications.core/2023-10-01-preview/types.json new file mode 100644 index 00000000000..69fc323dbeb --- /dev/null +++ b/hack/bicep-types-radius/generated/applications/applications.core/2023-10-01-preview/types.json @@ -0,0 +1 @@ +[{"1":{"Kind":1}},{"1":{"Kind":2}},{"1":{"Kind":3}},{"1":{"Kind":4}},{"1":{"Kind":5}},{"1":{"Kind":6}},{"1":{"Kind":7}},{"1":{"Kind":8}},{"6":{"Value":"Applications.Core/applications"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Core/applications","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":8,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":9,"Flags":10,"Description":"The resource api version"},"properties":{"Type":11,"Flags":0,"Description":"Application properties"},"tags":{"Type":45,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"ApplicationProperties","Properties":{"provisioningState":{"Type":19,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"extensions":{"Type":34,"Flags":0,"Description":"The application extension."},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[12,13,14,15,16,17,18]}},{"7":{"Name":"Extension","Discriminator":"kind","BaseProperties":{},"Elements":{"daprSidecar":21,"kubernetesMetadata":26,"kubernetesNamespace":30,"manualScaling":32}}},{"2":{"Name":"DaprSidecarExtension","Properties":{"appPort":{"Type":3,"Flags":0,"Description":"The Dapr appPort. Specifies the internal listening port for the application to handle requests from the Dapr sidecar."},"appId":{"Type":4,"Flags":1,"Description":"The Dapr appId. Specifies the identifier used by Dapr for service invocation."},"config":{"Type":4,"Flags":0,"Description":"Specifies the Dapr configuration to use for the resource."},"protocol":{"Type":24,"Flags":0,"Description":"The Dapr sidecar extension protocol"},"kind":{"Type":25,"Flags":1,"Description":"Discriminator property for Extension."}}}},{"6":{"Value":"http"}},{"6":{"Value":"grpc"}},{"5":{"Elements":[22,23]}},{"6":{"Value":"daprSidecar"}},{"2":{"Name":"KubernetesMetadataExtension","Properties":{"annotations":{"Type":27,"Flags":0,"Description":"Annotations to be applied to the Kubernetes resources output by the resource"},"labels":{"Type":28,"Flags":0,"Description":"Labels to be applied to the Kubernetes resources output by the resource"},"kind":{"Type":29,"Flags":1,"Description":"Discriminator property for Extension."}}}},{"2":{"Name":"KubernetesMetadataExtensionAnnotations","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"KubernetesMetadataExtensionLabels","Properties":{},"AdditionalProperties":4}},{"6":{"Value":"kubernetesMetadata"}},{"2":{"Name":"KubernetesNamespaceExtension","Properties":{"namespace":{"Type":4,"Flags":1,"Description":"The namespace of the application environment."},"kind":{"Type":31,"Flags":1,"Description":"Discriminator property for Extension."}}}},{"6":{"Value":"kubernetesNamespace"}},{"2":{"Name":"ManualScalingExtension","Properties":{"replicas":{"Type":3,"Flags":1,"Description":"Replica count."},"kind":{"Type":33,"Flags":1,"Description":"Discriminator property for Extension."}}}},{"6":{"Value":"manualScaling"}},{"3":{"ItemType":20}},{"2":{"Name":"ResourceStatus","Properties":{"compute":{"Type":36,"Flags":0,"Description":"Represents backing compute resource"},"outputResources":{"Type":44,"Flags":0,"Description":"Properties of an output resource"}}}},{"7":{"Name":"EnvironmentCompute","Discriminator":"kind","BaseProperties":{"resourceId":{"Type":4,"Flags":0,"Description":"The resource id of the compute resource for application environment."},"identity":{"Type":37,"Flags":0,"Description":"IdentitySettings is the external identity setting."}},"Elements":{"kubernetes":41}}},{"2":{"Name":"IdentitySettings","Properties":{"kind":{"Type":40,"Flags":1,"Description":"IdentitySettingKind is the kind of supported external identity setting"},"oidcIssuer":{"Type":4,"Flags":0,"Description":"The URI for your compute platform's OIDC issuer"},"resource":{"Type":4,"Flags":0,"Description":"The resource ID of the provisioned identity"}}}},{"6":{"Value":"undefined"}},{"6":{"Value":"azure.com.workload"}},{"5":{"Elements":[38,39]}},{"2":{"Name":"KubernetesCompute","Properties":{"namespace":{"Type":4,"Flags":1,"Description":"The namespace to use for the environment."},"kind":{"Type":42,"Flags":1,"Description":"Discriminator property for EnvironmentCompute."}}}},{"6":{"Value":"kubernetes"}},{"2":{"Name":"OutputResource","Properties":{"localId":{"Type":4,"Flags":0,"Description":"The logical identifier scoped to the owning Radius resource. This is only needed or used when a resource has a dependency relationship. LocalIDs do not have any particular format or meaning beyond being compared to determine dependency relationships."},"id":{"Type":4,"Flags":0,"Description":"The UCP resource ID of the underlying resource."},"radiusManaged":{"Type":2,"Flags":0,"Description":"Determines whether Radius manages the lifecycle of the underlying resource."}}}},{"3":{"ItemType":43}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"SystemData","Properties":{"createdBy":{"Type":4,"Flags":0,"Description":"The identity that created the resource."},"createdByType":{"Type":51,"Flags":0,"Description":"The type of identity that created the resource."},"createdAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource creation (UTC)."},"lastModifiedBy":{"Type":4,"Flags":0,"Description":"The identity that last modified the resource."},"lastModifiedByType":{"Type":56,"Flags":0,"Description":"The type of identity that created the resource."},"lastModifiedAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource last modification (UTC)"}}}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[47,48,49,50]}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[52,53,54,55]}},{"4":{"Name":"Applications.Core/applications@2023-10-01-preview","ScopeType":0,"Body":10}},{"6":{"Value":"Applications.Core/containers"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Core/containers","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":58,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":59,"Flags":10,"Description":"The resource api version"},"properties":{"Type":61,"Flags":0,"Description":"Container properties"},"tags":{"Type":112,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"ContainerProperties","Properties":{"environment":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)"},"application":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by"},"provisioningState":{"Type":69,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."},"container":{"Type":70,"Flags":1,"Description":"Definition of a container"},"connections":{"Type":107,"Flags":0,"Description":"Specifies a connection to another resource."},"identity":{"Type":37,"Flags":0,"Description":"IdentitySettings is the external identity setting."},"extensions":{"Type":108,"Flags":0,"Description":"Extensions spec of the resource"},"runtimes":{"Type":109,"Flags":0,"Description":"The properties for runtime configuration"}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[62,63,64,65,66,67,68]}},{"2":{"Name":"Container","Properties":{"image":{"Type":4,"Flags":1,"Description":"The registry and image to download and run in your container"},"imagePullPolicy":{"Type":74,"Flags":0,"Description":"The image pull policy for the container"},"env":{"Type":75,"Flags":0,"Description":"environment"},"ports":{"Type":80,"Flags":0,"Description":"container ports"},"readinessProbe":{"Type":81,"Flags":0,"Description":"Properties for readiness/liveness probe"},"livenessProbe":{"Type":81,"Flags":0,"Description":"Properties for readiness/liveness probe"},"volumes":{"Type":100,"Flags":0,"Description":"container volumes"},"command":{"Type":101,"Flags":0,"Description":"Entrypoint array. Overrides the container image's ENTRYPOINT"},"args":{"Type":102,"Flags":0,"Description":"Arguments to the entrypoint. Overrides the container image's CMD"},"workingDir":{"Type":4,"Flags":0,"Description":"Working directory for the container"}}}},{"6":{"Value":"Always"}},{"6":{"Value":"IfNotPresent"}},{"6":{"Value":"Never"}},{"5":{"Elements":[71,72,73]}},{"2":{"Name":"ContainerEnv","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"ContainerPortProperties","Properties":{"containerPort":{"Type":3,"Flags":1,"Description":"The listening port number"},"protocol":{"Type":79,"Flags":0,"Description":"The protocol in use by the port"},"provides":{"Type":4,"Flags":0,"Description":"Specifies a route provided by this port"},"scheme":{"Type":4,"Flags":0,"Description":"Specifies the URL scheme of the communication protocol. Consumers can use the scheme to construct a URL. The value defaults to 'http' or 'https' depending on the port value"},"port":{"Type":3,"Flags":0,"Description":"Specifies the port that will be exposed by this container. Must be set when value different from containerPort is desired"}}}},{"6":{"Value":"TCP"}},{"6":{"Value":"UDP"}},{"5":{"Elements":[77,78]}},{"2":{"Name":"ContainerPorts","Properties":{},"AdditionalProperties":76}},{"7":{"Name":"HealthProbeProperties","Discriminator":"kind","BaseProperties":{"initialDelaySeconds":{"Type":3,"Flags":0,"Description":"Initial delay in seconds before probing for readiness/liveness"},"failureThreshold":{"Type":3,"Flags":0,"Description":"Threshold number of times the probe fails after which a failure would be reported"},"periodSeconds":{"Type":3,"Flags":0,"Description":"Interval for the readiness/liveness probe in seconds"},"timeoutSeconds":{"Type":3,"Flags":0,"Description":"Number of seconds after which the readiness/liveness probe times out. Defaults to 5 seconds"}},"Elements":{"exec":82,"httpGet":84,"tcp":87}}},{"2":{"Name":"ExecHealthProbeProperties","Properties":{"command":{"Type":4,"Flags":1,"Description":"Command to execute to probe readiness/liveness"},"kind":{"Type":83,"Flags":1,"Description":"Discriminator property for HealthProbeProperties."}}}},{"6":{"Value":"exec"}},{"2":{"Name":"HttpGetHealthProbeProperties","Properties":{"containerPort":{"Type":3,"Flags":1,"Description":"The listening port number"},"path":{"Type":4,"Flags":1,"Description":"The route to make the HTTP request on"},"headers":{"Type":85,"Flags":0,"Description":"Custom HTTP headers to add to the get request"},"kind":{"Type":86,"Flags":1,"Description":"Discriminator property for HealthProbeProperties."}}}},{"2":{"Name":"HttpGetHealthProbePropertiesHeaders","Properties":{},"AdditionalProperties":4}},{"6":{"Value":"httpGet"}},{"2":{"Name":"TcpHealthProbeProperties","Properties":{"containerPort":{"Type":3,"Flags":1,"Description":"The listening port number"},"kind":{"Type":88,"Flags":1,"Description":"Discriminator property for HealthProbeProperties."}}}},{"6":{"Value":"tcp"}},{"7":{"Name":"Volume","Discriminator":"kind","BaseProperties":{"mountPath":{"Type":4,"Flags":0,"Description":"The path where the volume is mounted"}},"Elements":{"ephemeral":90,"persistent":95}}},{"2":{"Name":"EphemeralVolume","Properties":{"managedStore":{"Type":93,"Flags":1,"Description":"The managed store for the ephemeral volume"},"kind":{"Type":94,"Flags":1,"Description":"Discriminator property for Volume."}}}},{"6":{"Value":"memory"}},{"6":{"Value":"disk"}},{"5":{"Elements":[91,92]}},{"6":{"Value":"ephemeral"}},{"2":{"Name":"PersistentVolume","Properties":{"permission":{"Type":98,"Flags":0,"Description":"The persistent volume permission"},"source":{"Type":4,"Flags":1,"Description":"The source of the volume"},"kind":{"Type":99,"Flags":1,"Description":"Discriminator property for Volume."}}}},{"6":{"Value":"read"}},{"6":{"Value":"write"}},{"5":{"Elements":[96,97]}},{"6":{"Value":"persistent"}},{"2":{"Name":"ContainerVolumes","Properties":{},"AdditionalProperties":89}},{"3":{"ItemType":4}},{"3":{"ItemType":4}},{"2":{"Name":"ConnectionProperties","Properties":{"source":{"Type":4,"Flags":1,"Description":"The source of the connection"},"disableDefaultEnvVars":{"Type":2,"Flags":0,"Description":"default environment variable override"},"iam":{"Type":104,"Flags":0,"Description":"IAM properties"}}}},{"2":{"Name":"IamProperties","Properties":{"kind":{"Type":105,"Flags":1,"Description":"The kind of IAM provider to configure"},"roles":{"Type":106,"Flags":0,"Description":"RBAC permissions to be assigned on the source resource"}}}},{"6":{"Value":"azure"}},{"3":{"ItemType":4}},{"2":{"Name":"ContainerPropertiesConnections","Properties":{},"AdditionalProperties":103}},{"3":{"ItemType":20}},{"2":{"Name":"RuntimesProperties","Properties":{"kubernetes":{"Type":110,"Flags":0,"Description":"The runtime configuration properties for Kubernetes"}}}},{"2":{"Name":"KubernetesRuntimeProperties","Properties":{"base":{"Type":4,"Flags":0,"Description":"The serialized YAML manifest which represents the base Kubernetes resources to deploy, such as Deployment, Service, ServiceAccount, Secrets, and ConfigMaps."},"pod":{"Type":111,"Flags":0,"Description":"A strategic merge patch that will be applied to the PodSpec object when this container is being deployed."}}}},{"2":{"Name":"KubernetesPodSpec","Properties":{},"AdditionalProperties":0}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/containers@2023-10-01-preview","ScopeType":0,"Body":60}},{"6":{"Value":"Applications.Core/environments"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Core/environments","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":114,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":115,"Flags":10,"Description":"The resource api version"},"properties":{"Type":117,"Flags":0,"Description":"Environment properties"},"tags":{"Type":137,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"EnvironmentProperties","Properties":{"provisioningState":{"Type":125,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"compute":{"Type":36,"Flags":1,"Description":"Represents backing compute resource"},"providers":{"Type":126,"Flags":0,"Description":"The Cloud providers configuration"},"recipes":{"Type":135,"Flags":0,"Description":"Specifies Recipes linked to the Environment."},"extensions":{"Type":136,"Flags":0,"Description":"The environment extension."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[118,119,120,121,122,123,124]}},{"2":{"Name":"Providers","Properties":{"azure":{"Type":127,"Flags":0,"Description":"The Azure cloud provider definition"},"aws":{"Type":128,"Flags":0,"Description":"The AWS cloud provider definition"}}}},{"2":{"Name":"ProvidersAzure","Properties":{"scope":{"Type":4,"Flags":1,"Description":"Target scope for Azure resources to be deployed into. For example: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup'"}}}},{"2":{"Name":"ProvidersAws","Properties":{"scope":{"Type":4,"Flags":1,"Description":"Target scope for AWS resources to be deployed into. For example: '/planes/aws/aws/accounts/000000000000/regions/us-west-2'"}}}},{"7":{"Name":"RecipeProperties","Discriminator":"templateKind","BaseProperties":{"templatePath":{"Type":4,"Flags":1,"Description":"Path to the template provided by the recipe. Currently only link to Azure Container Registry is supported."},"parameters":{"Type":0,"Flags":0,"Description":"Any object"}},"Elements":{"bicep":130,"terraform":132}}},{"2":{"Name":"BicepRecipeProperties","Properties":{"templateKind":{"Type":131,"Flags":1,"Description":"Discriminator property for RecipeProperties."}}}},{"6":{"Value":"bicep"}},{"2":{"Name":"TerraformRecipeProperties","Properties":{"templateVersion":{"Type":4,"Flags":0,"Description":"Version of the template to deploy. For Terraform recipes using a module registry this is required, but must be omitted for other module sources."},"templateKind":{"Type":133,"Flags":1,"Description":"Discriminator property for RecipeProperties."}}}},{"6":{"Value":"terraform"}},{"2":{"Name":"DictionaryOfRecipeProperties","Properties":{},"AdditionalProperties":129}},{"2":{"Name":"EnvironmentPropertiesRecipes","Properties":{},"AdditionalProperties":134}},{"3":{"ItemType":20}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/environments@2023-10-01-preview","ScopeType":0,"Body":116}},{"6":{"Value":"Applications.Core/extenders"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Core/extenders","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":139,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":140,"Flags":10,"Description":"The resource api version"},"properties":{"Type":142,"Flags":0,"Description":"ExtenderResource portable resource properties"},"tags":{"Type":155,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"ExtenderProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":150,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."},"secrets":{"Type":0,"Flags":0,"Description":"Any object"},"recipe":{"Type":151,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":154,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}},"AdditionalProperties":0}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[143,144,145,146,147,148,149]}},{"2":{"Name":"Recipe","Properties":{"name":{"Type":4,"Flags":1,"Description":"The name of the recipe within the environment to use"},"parameters":{"Type":0,"Flags":0,"Description":"Any object"}}}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[152,153]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/extenders@2023-10-01-preview","ScopeType":0,"Body":141}},{"6":{"Value":"Applications.Core/gateways"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Core/gateways","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":157,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":158,"Flags":10,"Description":"The resource api version"},"properties":{"Type":160,"Flags":0,"Description":"Gateway properties"},"tags":{"Type":176,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"GatewayProperties","Properties":{"environment":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)"},"application":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by"},"provisioningState":{"Type":168,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."},"internal":{"Type":2,"Flags":0,"Description":"Sets Gateway to not be exposed externally (no public IP address associated). Defaults to false (exposed to internet)."},"hostname":{"Type":169,"Flags":0,"Description":"Declare hostname information for the Gateway. Leaving the hostname empty auto-assigns one: mygateway.myapp.PUBLICHOSTNAMEORIP.nip.io."},"routes":{"Type":171,"Flags":1,"Description":"Routes attached to this Gateway"},"tls":{"Type":172,"Flags":0,"Description":"TLS configuration definition for Gateway resource."},"url":{"Type":4,"Flags":2,"Description":"URL of the gateway resource. Readonly"}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[161,162,163,164,165,166,167]}},{"2":{"Name":"GatewayHostname","Properties":{"prefix":{"Type":4,"Flags":0,"Description":"Specify a prefix for the hostname: myhostname.myapp.PUBLICHOSTNAMEORIP.nip.io. Mutually exclusive with 'fullyQualifiedHostname' and will be overridden if both are defined."},"fullyQualifiedHostname":{"Type":4,"Flags":0,"Description":"Specify a fully-qualified domain name: myapp.mydomain.com. Mutually exclusive with 'prefix' and will take priority if both are defined."}}}},{"2":{"Name":"GatewayRoute","Properties":{"path":{"Type":4,"Flags":0,"Description":"The path to match the incoming request path on. Ex - /myservice."},"destination":{"Type":4,"Flags":0,"Description":"The HttpRoute to route to. Ex - myserviceroute.id."},"replacePrefix":{"Type":4,"Flags":0,"Description":"Optionally update the prefix when sending the request to the service. Ex - replacePrefix: '/' and path: '/myservice' will transform '/myservice/myroute' to '/myroute'"}}}},{"3":{"ItemType":170}},{"2":{"Name":"GatewayTls","Properties":{"sslPassthrough":{"Type":2,"Flags":0,"Description":"If true, gateway lets the https traffic sslPassthrough to the backend servers for decryption."},"minimumProtocolVersion":{"Type":175,"Flags":0,"Description":"Tls Minimum versions for Gateway resource."},"certificateFrom":{"Type":4,"Flags":0,"Description":"The resource id for the secret containing the TLS certificate and key for the gateway."}}}},{"6":{"Value":"1.2"}},{"6":{"Value":"1.3"}},{"5":{"Elements":[173,174]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/gateways@2023-10-01-preview","ScopeType":0,"Body":159}},{"6":{"Value":"Applications.Core/httpRoutes"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Core/httpRoutes","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":178,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":179,"Flags":10,"Description":"The resource api version"},"properties":{"Type":181,"Flags":0,"Description":"HTTPRoute properties"},"tags":{"Type":190,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"HttpRouteProperties","Properties":{"environment":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)"},"application":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by"},"provisioningState":{"Type":189,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."},"hostname":{"Type":4,"Flags":0,"Description":"The internal hostname accepting traffic for the HTTP Route. Readonly."},"port":{"Type":3,"Flags":0,"Description":"The port number for the HTTP Route. Defaults to 80. Readonly."},"scheme":{"Type":4,"Flags":2,"Description":"The scheme used for traffic. Readonly."},"url":{"Type":4,"Flags":2,"Description":"A stable URL that that can be used to route traffic to a resource. Readonly."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[182,183,184,185,186,187,188]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/httpRoutes@2023-10-01-preview","ScopeType":0,"Body":180}},{"6":{"Value":"Applications.Core/secretStores"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Core/secretStores","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":192,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":193,"Flags":10,"Description":"The resource api version"},"properties":{"Type":195,"Flags":0,"Description":"The properties of SecretStore"},"tags":{"Type":213,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"SecretStoreProperties","Properties":{"environment":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)"},"application":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by"},"provisioningState":{"Type":203,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."},"type":{"Type":206,"Flags":0,"Description":"The type of SecretStore data"},"data":{"Type":212,"Flags":1,"Description":"An object to represent key-value type secrets"},"resource":{"Type":4,"Flags":0,"Description":"The resource id of external secret store."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[196,197,198,199,200,201,202]}},{"6":{"Value":"generic"}},{"6":{"Value":"certificate"}},{"5":{"Elements":[204,205]}},{"2":{"Name":"SecretValueProperties","Properties":{"encoding":{"Type":210,"Flags":0,"Description":"The type of SecretValue Encoding"},"value":{"Type":4,"Flags":0,"Description":"The value of secret."},"valueFrom":{"Type":211,"Flags":0,"Description":"The Secret value source properties"}}}},{"6":{"Value":"raw"}},{"6":{"Value":"base64"}},{"5":{"Elements":[208,209]}},{"2":{"Name":"ValueFromProperties","Properties":{"name":{"Type":4,"Flags":1,"Description":"The name of the referenced secret."},"version":{"Type":4,"Flags":0,"Description":"The version of the referenced secret."}}}},{"2":{"Name":"SecretStorePropertiesData","Properties":{},"AdditionalProperties":207}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/secretStores@2023-10-01-preview","ScopeType":0,"Body":194}},{"6":{"Value":"Applications.Core/volumes"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Core/volumes","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":215,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":216,"Flags":10,"Description":"The resource api version"},"properties":{"Type":218,"Flags":0,"Description":"Volume properties"},"tags":{"Type":250,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":46,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"7":{"Name":"VolumeProperties","Discriminator":"kind","BaseProperties":{"environment":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)"},"application":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by"},"provisioningState":{"Type":226,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":35,"Flags":2,"Description":"Status of a resource."}},"Elements":{"azure.com.keyvault":227}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[219,220,221,222,223,224,225]}},{"2":{"Name":"AzureKeyVaultVolumeProperties","Properties":{"certificates":{"Type":240,"Flags":0,"Description":"The KeyVault certificates that this volume exposes"},"keys":{"Type":242,"Flags":0,"Description":"The KeyVault keys that this volume exposes"},"resource":{"Type":4,"Flags":1,"Description":"The ID of the keyvault to use for this volume resource"},"secrets":{"Type":248,"Flags":0,"Description":"The KeyVault secrets that this volume exposes"},"kind":{"Type":249,"Flags":1,"Description":"Discriminator property for VolumeProperties."}}}},{"2":{"Name":"CertificateObjectProperties","Properties":{"alias":{"Type":4,"Flags":0,"Description":"File name when written to disk"},"encoding":{"Type":232,"Flags":0,"Description":"Represents secret encodings"},"format":{"Type":235,"Flags":0,"Description":"Represents certificate formats"},"name":{"Type":4,"Flags":1,"Description":"The name of the certificate"},"certType":{"Type":239,"Flags":0,"Description":"Represents certificate types"},"version":{"Type":4,"Flags":0,"Description":"Certificate version"}}}},{"6":{"Value":"utf-8"}},{"6":{"Value":"hex"}},{"6":{"Value":"base64"}},{"5":{"Elements":[229,230,231]}},{"6":{"Value":"pem"}},{"6":{"Value":"pfx"}},{"5":{"Elements":[233,234]}},{"6":{"Value":"certificate"}},{"6":{"Value":"privatekey"}},{"6":{"Value":"publickey"}},{"5":{"Elements":[236,237,238]}},{"2":{"Name":"AzureKeyVaultVolumePropertiesCertificates","Properties":{},"AdditionalProperties":228}},{"2":{"Name":"KeyObjectProperties","Properties":{"alias":{"Type":4,"Flags":0,"Description":"File name when written to disk"},"name":{"Type":4,"Flags":1,"Description":"The name of the key"},"version":{"Type":4,"Flags":0,"Description":"Key version"}}}},{"2":{"Name":"AzureKeyVaultVolumePropertiesKeys","Properties":{},"AdditionalProperties":241}},{"2":{"Name":"SecretObjectProperties","Properties":{"alias":{"Type":4,"Flags":0,"Description":"File name when written to disk"},"encoding":{"Type":247,"Flags":0,"Description":"Represents secret encodings"},"name":{"Type":4,"Flags":1,"Description":"The name of the secret"},"version":{"Type":4,"Flags":0,"Description":"secret version"}}}},{"6":{"Value":"utf-8"}},{"6":{"Value":"hex"}},{"6":{"Value":"base64"}},{"5":{"Elements":[244,245,246]}},{"2":{"Name":"AzureKeyVaultVolumePropertiesSecrets","Properties":{},"AdditionalProperties":243}},{"6":{"Value":"azure.com.keyvault"}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Core/volumes@2023-10-01-preview","ScopeType":0,"Body":217}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Core/extenders","ApiVersion":"2023-10-01-preview","Output":0,"Input":0}},{"2":{"Name":"SecretStoreListSecretsResult","Properties":{"type":{"Type":256,"Flags":2,"Description":"The type of SecretStore data"},"data":{"Type":257,"Flags":2,"Description":"An object to represent key-value type secrets"}}}},{"6":{"Value":"generic"}},{"6":{"Value":"certificate"}},{"5":{"Elements":[254,255]}},{"2":{"Name":"SecretStoreListSecretsResultData","Properties":{},"AdditionalProperties":207}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Core/secretStores","ApiVersion":"2023-10-01-preview","Output":253,"Input":0}}] \ No newline at end of file diff --git a/hack/bicep-types-radius/generated/applications/applications.core/2022-03-15-privatepreview/types.md b/hack/bicep-types-radius/generated/applications/applications.core/2023-10-01-preview/types.md similarity index 94% rename from hack/bicep-types-radius/generated/applications/applications.core/2022-03-15-privatepreview/types.md rename to hack/bicep-types-radius/generated/applications/applications.core/2023-10-01-preview/types.md index 104bac72fba..8faf19b4cd7 100644 --- a/hack/bicep-types-radius/generated/applications/applications.core/2022-03-15-privatepreview/types.md +++ b/hack/bicep-types-radius/generated/applications/applications.core/2023-10-01-preview/types.md @@ -1,9 +1,9 @@ -# Applications.Core @ 2022-03-15-privatepreview +# Applications.Core @ 2023-10-01-preview -## Resource Applications.Core/applications@2022-03-15-privatepreview +## Resource Applications.Core/applications@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -12,10 +12,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Core/applications' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Core/containers@2022-03-15-privatepreview +## Resource Applications.Core/containers@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -24,10 +24,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Core/containers' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Core/environments@2022-03-15-privatepreview +## Resource Applications.Core/environments@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -36,10 +36,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Core/environments' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Core/extenders@2022-03-15-privatepreview +## Resource Applications.Core/extenders@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -48,10 +48,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Core/extenders' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Core/gateways@2022-03-15-privatepreview +## Resource Applications.Core/gateways@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -60,10 +60,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Core/gateways' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Core/httpRoutes@2022-03-15-privatepreview +## Resource Applications.Core/httpRoutes@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -72,10 +72,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Core/httpRoutes' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Core/secretStores@2022-03-15-privatepreview +## Resource Applications.Core/secretStores@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -84,10 +84,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Core/secretStores' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Core/volumes@2022-03-15-privatepreview +## Resource Applications.Core/volumes@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -96,15 +96,15 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Core/volumes' (ReadOnly, DeployTimeConstant): The resource type -## Function listSecrets (Applications.Core/extenders@2022-03-15-privatepreview) +## Function listSecrets (Applications.Core/extenders@2023-10-01-preview) * **Resource**: Applications.Core/extenders -* **ApiVersion**: 2022-03-15-privatepreview +* **ApiVersion**: 2023-10-01-preview * **Input**: any * **Output**: any -## Function listSecrets (Applications.Core/secretStores@2022-03-15-privatepreview) +## Function listSecrets (Applications.Core/secretStores@2023-10-01-preview) * **Resource**: Applications.Core/secretStores -* **ApiVersion**: 2022-03-15-privatepreview +* **ApiVersion**: 2023-10-01-preview * **Input**: any * **Output**: [SecretStoreListSecretsResult](#secretstorelistsecretsresult) diff --git a/hack/bicep-types-radius/generated/applications/applications.dapr/2022-03-15-privatepreview/types.json b/hack/bicep-types-radius/generated/applications/applications.dapr/2022-03-15-privatepreview/types.json deleted file mode 100644 index f1553f9ea49..00000000000 --- a/hack/bicep-types-radius/generated/applications/applications.dapr/2022-03-15-privatepreview/types.json +++ /dev/null @@ -1 +0,0 @@ -[{"1":{"Kind":1}},{"1":{"Kind":2}},{"1":{"Kind":3}},{"1":{"Kind":4}},{"1":{"Kind":5}},{"1":{"Kind":6}},{"1":{"Kind":7}},{"1":{"Kind":8}},{"6":{"Value":"Applications.Dapr/pubSubBrokers"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Dapr/pubSubBrokers","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":8,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":9,"Flags":10,"Description":"The resource api version"},"properties":{"Type":11,"Flags":0,"Description":"Dapr PubSubBroker portable resource properties"},"tags":{"Type":36,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":37,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"DaprPubSubBrokerProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":19,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"componentName":{"Type":4,"Flags":2,"Description":"The name of the Dapr component object. Use this value in your code when interacting with the Dapr client to use the Dapr component."},"metadata":{"Type":0,"Flags":0,"Description":"Any object"},"type":{"Type":4,"Flags":0,"Description":"Dapr component type which must matches the format used by Dapr Kubernetes configuration format"},"version":{"Type":4,"Flags":0,"Description":"Dapr component version"},"resources":{"Type":31,"Flags":0,"Description":"A collection of references to resources associated with the pubSubBroker"},"recipe":{"Type":32,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":35,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[12,13,14,15,16,17,18]}},{"2":{"Name":"ResourceStatus","Properties":{"compute":{"Type":21,"Flags":0,"Description":"Represents backing compute resource"},"outputResources":{"Type":29,"Flags":0,"Description":"Properties of an output resource"}}}},{"7":{"Name":"EnvironmentCompute","Discriminator":"kind","BaseProperties":{"resourceId":{"Type":4,"Flags":0,"Description":"The resource id of the compute resource for application environment."},"identity":{"Type":22,"Flags":0,"Description":"IdentitySettings is the external identity setting."}},"Elements":{"kubernetes":26}}},{"2":{"Name":"IdentitySettings","Properties":{"kind":{"Type":25,"Flags":1,"Description":"IdentitySettingKind is the kind of supported external identity setting"},"oidcIssuer":{"Type":4,"Flags":0,"Description":"The URI for your compute platform's OIDC issuer"},"resource":{"Type":4,"Flags":0,"Description":"The resource ID of the provisioned identity"}}}},{"6":{"Value":"undefined"}},{"6":{"Value":"azure.com.workload"}},{"5":{"Elements":[23,24]}},{"2":{"Name":"KubernetesCompute","Properties":{"namespace":{"Type":4,"Flags":1,"Description":"The namespace to use for the environment."},"kind":{"Type":27,"Flags":1,"Description":"Discriminator property for EnvironmentCompute."}}}},{"6":{"Value":"kubernetes"}},{"2":{"Name":"OutputResource","Properties":{"localId":{"Type":4,"Flags":0,"Description":"The logical identifier scoped to the owning Radius resource. This is only needed or used when a resource has a dependency relationship. LocalIDs do not have any particular format or meaning beyond being compared to determine dependency relationships."},"id":{"Type":4,"Flags":0,"Description":"The UCP resource ID of the underlying resource."},"radiusManaged":{"Type":2,"Flags":0,"Description":"Determines whether Radius manages the lifecycle of the underlying resource."}}}},{"3":{"ItemType":28}},{"2":{"Name":"ResourceReference","Properties":{"id":{"Type":4,"Flags":1,"Description":"Resource id of an existing resource"}}}},{"3":{"ItemType":30}},{"2":{"Name":"Recipe","Properties":{"name":{"Type":4,"Flags":1,"Description":"The name of the recipe within the environment to use"},"parameters":{"Type":0,"Flags":0,"Description":"Any object"}}}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[33,34]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"SystemData","Properties":{"createdBy":{"Type":4,"Flags":0,"Description":"The identity that created the resource."},"createdByType":{"Type":42,"Flags":0,"Description":"The type of identity that created the resource."},"createdAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource creation (UTC)."},"lastModifiedBy":{"Type":4,"Flags":0,"Description":"The identity that last modified the resource."},"lastModifiedByType":{"Type":47,"Flags":0,"Description":"The type of identity that created the resource."},"lastModifiedAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource last modification (UTC)"}}}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[38,39,40,41]}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[43,44,45,46]}},{"4":{"Name":"Applications.Dapr/pubSubBrokers@2022-03-15-privatepreview","ScopeType":0,"Body":10}},{"6":{"Value":"Applications.Dapr/secretStores"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Dapr/secretStores","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":49,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":50,"Flags":10,"Description":"The resource api version"},"properties":{"Type":52,"Flags":0,"Description":"Dapr SecretStore portable resource properties"},"tags":{"Type":64,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":37,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"DaprSecretStoreProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":60,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"componentName":{"Type":4,"Flags":2,"Description":"The name of the Dapr component object. Use this value in your code when interacting with the Dapr client to use the Dapr component."},"metadata":{"Type":0,"Flags":0,"Description":"Any object"},"type":{"Type":4,"Flags":0,"Description":"Dapr component type which must matches the format used by Dapr Kubernetes configuration format"},"version":{"Type":4,"Flags":0,"Description":"Dapr component version"},"recipe":{"Type":32,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":63,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[53,54,55,56,57,58,59]}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[61,62]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Dapr/secretStores@2022-03-15-privatepreview","ScopeType":0,"Body":51}},{"6":{"Value":"Applications.Dapr/stateStores"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Dapr/stateStores","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":66,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":67,"Flags":10,"Description":"The resource api version"},"properties":{"Type":69,"Flags":0,"Description":"Dapr StateStore portable resource properties"},"tags":{"Type":82,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":37,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"DaprStateStoreProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":77,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"componentName":{"Type":4,"Flags":2,"Description":"The name of the Dapr component object. Use this value in your code when interacting with the Dapr client to use the Dapr component."},"metadata":{"Type":0,"Flags":0,"Description":"Any object"},"type":{"Type":4,"Flags":0,"Description":"Dapr component type which must matches the format used by Dapr Kubernetes configuration format"},"version":{"Type":4,"Flags":0,"Description":"Dapr component version"},"resources":{"Type":78,"Flags":0,"Description":"A collection of references to resources associated with the state store"},"recipe":{"Type":32,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":81,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[70,71,72,73,74,75,76]}},{"3":{"ItemType":30}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[79,80]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Dapr/stateStores@2022-03-15-privatepreview","ScopeType":0,"Body":68}}] \ No newline at end of file diff --git a/hack/bicep-types-radius/generated/applications/applications.dapr/2023-10-01-preview/types.json b/hack/bicep-types-radius/generated/applications/applications.dapr/2023-10-01-preview/types.json new file mode 100644 index 00000000000..d5fd7fb12d3 --- /dev/null +++ b/hack/bicep-types-radius/generated/applications/applications.dapr/2023-10-01-preview/types.json @@ -0,0 +1 @@ +[{"1":{"Kind":1}},{"1":{"Kind":2}},{"1":{"Kind":3}},{"1":{"Kind":4}},{"1":{"Kind":5}},{"1":{"Kind":6}},{"1":{"Kind":7}},{"1":{"Kind":8}},{"6":{"Value":"Applications.Dapr/pubSubBrokers"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Dapr/pubSubBrokers","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":8,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":9,"Flags":10,"Description":"The resource api version"},"properties":{"Type":11,"Flags":0,"Description":"Dapr PubSubBroker portable resource properties"},"tags":{"Type":36,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":37,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"DaprPubSubBrokerProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":19,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"componentName":{"Type":4,"Flags":2,"Description":"The name of the Dapr component object. Use this value in your code when interacting with the Dapr client to use the Dapr component."},"metadata":{"Type":0,"Flags":0,"Description":"Any object"},"type":{"Type":4,"Flags":0,"Description":"Dapr component type which must matches the format used by Dapr Kubernetes configuration format"},"version":{"Type":4,"Flags":0,"Description":"Dapr component version"},"resources":{"Type":31,"Flags":0,"Description":"A collection of references to resources associated with the pubSubBroker"},"recipe":{"Type":32,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":35,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[12,13,14,15,16,17,18]}},{"2":{"Name":"ResourceStatus","Properties":{"compute":{"Type":21,"Flags":0,"Description":"Represents backing compute resource"},"outputResources":{"Type":29,"Flags":0,"Description":"Properties of an output resource"}}}},{"7":{"Name":"EnvironmentCompute","Discriminator":"kind","BaseProperties":{"resourceId":{"Type":4,"Flags":0,"Description":"The resource id of the compute resource for application environment."},"identity":{"Type":22,"Flags":0,"Description":"IdentitySettings is the external identity setting."}},"Elements":{"kubernetes":26}}},{"2":{"Name":"IdentitySettings","Properties":{"kind":{"Type":25,"Flags":1,"Description":"IdentitySettingKind is the kind of supported external identity setting"},"oidcIssuer":{"Type":4,"Flags":0,"Description":"The URI for your compute platform's OIDC issuer"},"resource":{"Type":4,"Flags":0,"Description":"The resource ID of the provisioned identity"}}}},{"6":{"Value":"undefined"}},{"6":{"Value":"azure.com.workload"}},{"5":{"Elements":[23,24]}},{"2":{"Name":"KubernetesCompute","Properties":{"namespace":{"Type":4,"Flags":1,"Description":"The namespace to use for the environment."},"kind":{"Type":27,"Flags":1,"Description":"Discriminator property for EnvironmentCompute."}}}},{"6":{"Value":"kubernetes"}},{"2":{"Name":"OutputResource","Properties":{"localId":{"Type":4,"Flags":0,"Description":"The logical identifier scoped to the owning Radius resource. This is only needed or used when a resource has a dependency relationship. LocalIDs do not have any particular format or meaning beyond being compared to determine dependency relationships."},"id":{"Type":4,"Flags":0,"Description":"The UCP resource ID of the underlying resource."},"radiusManaged":{"Type":2,"Flags":0,"Description":"Determines whether Radius manages the lifecycle of the underlying resource."}}}},{"3":{"ItemType":28}},{"2":{"Name":"ResourceReference","Properties":{"id":{"Type":4,"Flags":1,"Description":"Resource id of an existing resource"}}}},{"3":{"ItemType":30}},{"2":{"Name":"Recipe","Properties":{"name":{"Type":4,"Flags":1,"Description":"The name of the recipe within the environment to use"},"parameters":{"Type":0,"Flags":0,"Description":"Any object"}}}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[33,34]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"SystemData","Properties":{"createdBy":{"Type":4,"Flags":0,"Description":"The identity that created the resource."},"createdByType":{"Type":42,"Flags":0,"Description":"The type of identity that created the resource."},"createdAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource creation (UTC)."},"lastModifiedBy":{"Type":4,"Flags":0,"Description":"The identity that last modified the resource."},"lastModifiedByType":{"Type":47,"Flags":0,"Description":"The type of identity that created the resource."},"lastModifiedAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource last modification (UTC)"}}}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[38,39,40,41]}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[43,44,45,46]}},{"4":{"Name":"Applications.Dapr/pubSubBrokers@2023-10-01-preview","ScopeType":0,"Body":10}},{"6":{"Value":"Applications.Dapr/secretStores"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Dapr/secretStores","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":49,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":50,"Flags":10,"Description":"The resource api version"},"properties":{"Type":52,"Flags":0,"Description":"Dapr SecretStore portable resource properties"},"tags":{"Type":64,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":37,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"DaprSecretStoreProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":60,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"componentName":{"Type":4,"Flags":2,"Description":"The name of the Dapr component object. Use this value in your code when interacting with the Dapr client to use the Dapr component."},"metadata":{"Type":0,"Flags":0,"Description":"Any object"},"type":{"Type":4,"Flags":0,"Description":"Dapr component type which must matches the format used by Dapr Kubernetes configuration format"},"version":{"Type":4,"Flags":0,"Description":"Dapr component version"},"recipe":{"Type":32,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":63,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[53,54,55,56,57,58,59]}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[61,62]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Dapr/secretStores@2023-10-01-preview","ScopeType":0,"Body":51}},{"6":{"Value":"Applications.Dapr/stateStores"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Dapr/stateStores","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":66,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":67,"Flags":10,"Description":"The resource api version"},"properties":{"Type":69,"Flags":0,"Description":"Dapr StateStore portable resource properties"},"tags":{"Type":82,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":37,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"DaprStateStoreProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":77,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"componentName":{"Type":4,"Flags":2,"Description":"The name of the Dapr component object. Use this value in your code when interacting with the Dapr client to use the Dapr component."},"metadata":{"Type":0,"Flags":0,"Description":"Any object"},"type":{"Type":4,"Flags":0,"Description":"Dapr component type which must matches the format used by Dapr Kubernetes configuration format"},"version":{"Type":4,"Flags":0,"Description":"Dapr component version"},"resources":{"Type":78,"Flags":0,"Description":"A collection of references to resources associated with the state store"},"recipe":{"Type":32,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":81,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[70,71,72,73,74,75,76]}},{"3":{"ItemType":30}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[79,80]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Dapr/stateStores@2023-10-01-preview","ScopeType":0,"Body":68}}] \ No newline at end of file diff --git a/hack/bicep-types-radius/generated/applications/applications.dapr/2022-03-15-privatepreview/types.md b/hack/bicep-types-radius/generated/applications/applications.dapr/2023-10-01-preview/types.md similarity index 94% rename from hack/bicep-types-radius/generated/applications/applications.dapr/2022-03-15-privatepreview/types.md rename to hack/bicep-types-radius/generated/applications/applications.dapr/2023-10-01-preview/types.md index 7eb90e7ee13..004dff25e91 100644 --- a/hack/bicep-types-radius/generated/applications/applications.dapr/2022-03-15-privatepreview/types.md +++ b/hack/bicep-types-radius/generated/applications/applications.dapr/2023-10-01-preview/types.md @@ -1,9 +1,9 @@ -# Applications.Dapr @ 2022-03-15-privatepreview +# Applications.Dapr @ 2023-10-01-preview -## Resource Applications.Dapr/pubSubBrokers@2022-03-15-privatepreview +## Resource Applications.Dapr/pubSubBrokers@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -12,10 +12,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Dapr/pubSubBrokers' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Dapr/secretStores@2022-03-15-privatepreview +## Resource Applications.Dapr/secretStores@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -24,10 +24,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Dapr/secretStores' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Dapr/stateStores@2022-03-15-privatepreview +## Resource Applications.Dapr/stateStores@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name diff --git a/hack/bicep-types-radius/generated/applications/applications.datastores/2022-03-15-privatepreview/types.json b/hack/bicep-types-radius/generated/applications/applications.datastores/2022-03-15-privatepreview/types.json deleted file mode 100644 index 63ac3ae3a48..00000000000 --- a/hack/bicep-types-radius/generated/applications/applications.datastores/2022-03-15-privatepreview/types.json +++ /dev/null @@ -1 +0,0 @@ -[{"1":{"Kind":1}},{"1":{"Kind":2}},{"1":{"Kind":3}},{"1":{"Kind":4}},{"1":{"Kind":5}},{"1":{"Kind":6}},{"1":{"Kind":7}},{"1":{"Kind":8}},{"6":{"Value":"Applications.Datastores/mongoDatabases"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Datastores/mongoDatabases","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":8,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":9,"Flags":10,"Description":"The resource api version"},"properties":{"Type":11,"Flags":0,"Description":"MongoDatabase portable resource properties"},"tags":{"Type":37,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":38,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"MongoDatabaseProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":19,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"secrets":{"Type":30,"Flags":0,"Description":"The secret values for the given MongoDatabase resource"},"host":{"Type":4,"Flags":0,"Description":"Host name of the target Mongo database"},"port":{"Type":3,"Flags":0,"Description":"Port value of the target Mongo database"},"database":{"Type":4,"Flags":0,"Description":"Database name of the target Mongo database"},"resources":{"Type":32,"Flags":0,"Description":"List of the resource IDs that support the MongoDB resource"},"username":{"Type":4,"Flags":0,"Description":"Username to use when connecting to the target Mongo database"},"recipe":{"Type":33,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":36,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[12,13,14,15,16,17,18]}},{"2":{"Name":"ResourceStatus","Properties":{"compute":{"Type":21,"Flags":0,"Description":"Represents backing compute resource"},"outputResources":{"Type":29,"Flags":0,"Description":"Properties of an output resource"}}}},{"7":{"Name":"EnvironmentCompute","Discriminator":"kind","BaseProperties":{"resourceId":{"Type":4,"Flags":0,"Description":"The resource id of the compute resource for application environment."},"identity":{"Type":22,"Flags":0,"Description":"IdentitySettings is the external identity setting."}},"Elements":{"kubernetes":26}}},{"2":{"Name":"IdentitySettings","Properties":{"kind":{"Type":25,"Flags":1,"Description":"IdentitySettingKind is the kind of supported external identity setting"},"oidcIssuer":{"Type":4,"Flags":0,"Description":"The URI for your compute platform's OIDC issuer"},"resource":{"Type":4,"Flags":0,"Description":"The resource ID of the provisioned identity"}}}},{"6":{"Value":"undefined"}},{"6":{"Value":"azure.com.workload"}},{"5":{"Elements":[23,24]}},{"2":{"Name":"KubernetesCompute","Properties":{"namespace":{"Type":4,"Flags":1,"Description":"The namespace to use for the environment."},"kind":{"Type":27,"Flags":1,"Description":"Discriminator property for EnvironmentCompute."}}}},{"6":{"Value":"kubernetes"}},{"2":{"Name":"OutputResource","Properties":{"localId":{"Type":4,"Flags":0,"Description":"The logical identifier scoped to the owning Radius resource. This is only needed or used when a resource has a dependency relationship. LocalIDs do not have any particular format or meaning beyond being compared to determine dependency relationships."},"id":{"Type":4,"Flags":0,"Description":"The UCP resource ID of the underlying resource."},"radiusManaged":{"Type":2,"Flags":0,"Description":"Determines whether Radius manages the lifecycle of the underlying resource."}}}},{"3":{"ItemType":28}},{"2":{"Name":"MongoDatabaseSecrets","Properties":{"password":{"Type":4,"Flags":0,"Description":"Password to use when connecting to the target Mongo database"},"connectionString":{"Type":4,"Flags":0,"Description":"Connection string used to connect to the target Mongo database"}}}},{"2":{"Name":"ResourceReference","Properties":{"id":{"Type":4,"Flags":1,"Description":"Resource id of an existing resource"}}}},{"3":{"ItemType":31}},{"2":{"Name":"Recipe","Properties":{"name":{"Type":4,"Flags":1,"Description":"The name of the recipe within the environment to use"},"parameters":{"Type":0,"Flags":0,"Description":"Any object"}}}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[34,35]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"SystemData","Properties":{"createdBy":{"Type":4,"Flags":0,"Description":"The identity that created the resource."},"createdByType":{"Type":43,"Flags":0,"Description":"The type of identity that created the resource."},"createdAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource creation (UTC)."},"lastModifiedBy":{"Type":4,"Flags":0,"Description":"The identity that last modified the resource."},"lastModifiedByType":{"Type":48,"Flags":0,"Description":"The type of identity that created the resource."},"lastModifiedAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource last modification (UTC)"}}}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[39,40,41,42]}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[44,45,46,47]}},{"4":{"Name":"Applications.Datastores/mongoDatabases@2022-03-15-privatepreview","ScopeType":0,"Body":10}},{"6":{"Value":"Applications.Datastores/redisCaches"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Datastores/redisCaches","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":50,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":51,"Flags":10,"Description":"The resource api version"},"properties":{"Type":53,"Flags":0,"Description":"RedisCache portable resource properties"},"tags":{"Type":67,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":38,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"RedisCacheProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":61,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"secrets":{"Type":62,"Flags":0,"Description":"The secret values for the given RedisCache resource"},"host":{"Type":4,"Flags":0,"Description":"The host name of the target Redis cache"},"port":{"Type":3,"Flags":0,"Description":"The port value of the target Redis cache"},"username":{"Type":4,"Flags":0,"Description":"The username for Redis cache"},"tls":{"Type":2,"Flags":0,"Description":"Specifies whether to enable SSL connections to the Redis cache"},"resources":{"Type":63,"Flags":0,"Description":"List of the resource IDs that support the Redis resource"},"recipe":{"Type":33,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":66,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[54,55,56,57,58,59,60]}},{"2":{"Name":"RedisCacheSecrets","Properties":{"connectionString":{"Type":4,"Flags":0,"Description":"The connection string used to connect to the Redis cache"},"password":{"Type":4,"Flags":0,"Description":"The password for this Redis cache instance"},"url":{"Type":4,"Flags":0,"Description":"The URL used to connect to the Redis cache"}}}},{"3":{"ItemType":31}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[64,65]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Datastores/redisCaches@2022-03-15-privatepreview","ScopeType":0,"Body":52}},{"6":{"Value":"Applications.Datastores/sqlDatabases"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Datastores/sqlDatabases","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":69,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":70,"Flags":10,"Description":"The resource api version"},"properties":{"Type":72,"Flags":0,"Description":"SqlDatabase properties"},"tags":{"Type":86,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":38,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"SqlDatabaseProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":80,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"database":{"Type":4,"Flags":0,"Description":"The name of the Sql database."},"server":{"Type":4,"Flags":0,"Description":"The fully qualified domain name of the Sql database."},"port":{"Type":3,"Flags":0,"Description":"Port value of the target Sql database"},"username":{"Type":4,"Flags":0,"Description":"Username to use when connecting to the target Sql database"},"resources":{"Type":81,"Flags":0,"Description":"List of the resource IDs that support the SqlDatabase resource"},"secrets":{"Type":82,"Flags":0,"Description":"The secret values for the given SqlDatabase resource"},"recipe":{"Type":33,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":85,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[73,74,75,76,77,78,79]}},{"3":{"ItemType":31}},{"2":{"Name":"SqlDatabaseSecrets","Properties":{"password":{"Type":4,"Flags":0,"Description":"Password to use when connecting to the target Sql database"},"connectionString":{"Type":4,"Flags":0,"Description":"Connection string used to connect to the target Sql database"}}}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[83,84]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Datastores/sqlDatabases@2022-03-15-privatepreview","ScopeType":0,"Body":71}},{"2":{"Name":"MongoDatabaseListSecretsResult","Properties":{"password":{"Type":4,"Flags":2,"Description":"Password to use when connecting to the target Mongo database"},"connectionString":{"Type":4,"Flags":2,"Description":"Connection string used to connect to the target Mongo database"}}}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Datastores/mongoDatabases","ApiVersion":"2022-03-15-privatepreview","Output":88,"Input":0}},{"2":{"Name":"RedisCacheListSecretsResult","Properties":{"connectionString":{"Type":4,"Flags":2,"Description":"The connection string used to connect to the Redis cache"},"password":{"Type":4,"Flags":2,"Description":"The password for this Redis cache instance"},"url":{"Type":4,"Flags":2,"Description":"The URL used to connect to the Redis cache"}}}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Datastores/redisCaches","ApiVersion":"2022-03-15-privatepreview","Output":90,"Input":0}},{"2":{"Name":"SqlDatabaseListSecretsResult","Properties":{"password":{"Type":4,"Flags":2,"Description":"Password to use when connecting to the target Sql database"},"connectionString":{"Type":4,"Flags":2,"Description":"Connection string used to connect to the target Sql database"}}}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Datastores/sqlDatabases","ApiVersion":"2022-03-15-privatepreview","Output":92,"Input":0}}] \ No newline at end of file diff --git a/hack/bicep-types-radius/generated/applications/applications.datastores/2023-10-01-preview/types.json b/hack/bicep-types-radius/generated/applications/applications.datastores/2023-10-01-preview/types.json new file mode 100644 index 00000000000..4cedfdb8e5a --- /dev/null +++ b/hack/bicep-types-radius/generated/applications/applications.datastores/2023-10-01-preview/types.json @@ -0,0 +1 @@ +[{"1":{"Kind":1}},{"1":{"Kind":2}},{"1":{"Kind":3}},{"1":{"Kind":4}},{"1":{"Kind":5}},{"1":{"Kind":6}},{"1":{"Kind":7}},{"1":{"Kind":8}},{"6":{"Value":"Applications.Datastores/mongoDatabases"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Datastores/mongoDatabases","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":8,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":9,"Flags":10,"Description":"The resource api version"},"properties":{"Type":11,"Flags":0,"Description":"MongoDatabase portable resource properties"},"tags":{"Type":37,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":38,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"MongoDatabaseProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":19,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"secrets":{"Type":30,"Flags":0,"Description":"The secret values for the given MongoDatabase resource"},"host":{"Type":4,"Flags":0,"Description":"Host name of the target Mongo database"},"port":{"Type":3,"Flags":0,"Description":"Port value of the target Mongo database"},"database":{"Type":4,"Flags":0,"Description":"Database name of the target Mongo database"},"resources":{"Type":32,"Flags":0,"Description":"List of the resource IDs that support the MongoDB resource"},"username":{"Type":4,"Flags":0,"Description":"Username to use when connecting to the target Mongo database"},"recipe":{"Type":33,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":36,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[12,13,14,15,16,17,18]}},{"2":{"Name":"ResourceStatus","Properties":{"compute":{"Type":21,"Flags":0,"Description":"Represents backing compute resource"},"outputResources":{"Type":29,"Flags":0,"Description":"Properties of an output resource"}}}},{"7":{"Name":"EnvironmentCompute","Discriminator":"kind","BaseProperties":{"resourceId":{"Type":4,"Flags":0,"Description":"The resource id of the compute resource for application environment."},"identity":{"Type":22,"Flags":0,"Description":"IdentitySettings is the external identity setting."}},"Elements":{"kubernetes":26}}},{"2":{"Name":"IdentitySettings","Properties":{"kind":{"Type":25,"Flags":1,"Description":"IdentitySettingKind is the kind of supported external identity setting"},"oidcIssuer":{"Type":4,"Flags":0,"Description":"The URI for your compute platform's OIDC issuer"},"resource":{"Type":4,"Flags":0,"Description":"The resource ID of the provisioned identity"}}}},{"6":{"Value":"undefined"}},{"6":{"Value":"azure.com.workload"}},{"5":{"Elements":[23,24]}},{"2":{"Name":"KubernetesCompute","Properties":{"namespace":{"Type":4,"Flags":1,"Description":"The namespace to use for the environment."},"kind":{"Type":27,"Flags":1,"Description":"Discriminator property for EnvironmentCompute."}}}},{"6":{"Value":"kubernetes"}},{"2":{"Name":"OutputResource","Properties":{"localId":{"Type":4,"Flags":0,"Description":"The logical identifier scoped to the owning Radius resource. This is only needed or used when a resource has a dependency relationship. LocalIDs do not have any particular format or meaning beyond being compared to determine dependency relationships."},"id":{"Type":4,"Flags":0,"Description":"The UCP resource ID of the underlying resource."},"radiusManaged":{"Type":2,"Flags":0,"Description":"Determines whether Radius manages the lifecycle of the underlying resource."}}}},{"3":{"ItemType":28}},{"2":{"Name":"MongoDatabaseSecrets","Properties":{"password":{"Type":4,"Flags":0,"Description":"Password to use when connecting to the target Mongo database"},"connectionString":{"Type":4,"Flags":0,"Description":"Connection string used to connect to the target Mongo database"}}}},{"2":{"Name":"ResourceReference","Properties":{"id":{"Type":4,"Flags":1,"Description":"Resource id of an existing resource"}}}},{"3":{"ItemType":31}},{"2":{"Name":"Recipe","Properties":{"name":{"Type":4,"Flags":1,"Description":"The name of the recipe within the environment to use"},"parameters":{"Type":0,"Flags":0,"Description":"Any object"}}}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[34,35]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"SystemData","Properties":{"createdBy":{"Type":4,"Flags":0,"Description":"The identity that created the resource."},"createdByType":{"Type":43,"Flags":0,"Description":"The type of identity that created the resource."},"createdAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource creation (UTC)."},"lastModifiedBy":{"Type":4,"Flags":0,"Description":"The identity that last modified the resource."},"lastModifiedByType":{"Type":48,"Flags":0,"Description":"The type of identity that created the resource."},"lastModifiedAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource last modification (UTC)"}}}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[39,40,41,42]}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[44,45,46,47]}},{"4":{"Name":"Applications.Datastores/mongoDatabases@2023-10-01-preview","ScopeType":0,"Body":10}},{"6":{"Value":"Applications.Datastores/redisCaches"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Datastores/redisCaches","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":50,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":51,"Flags":10,"Description":"The resource api version"},"properties":{"Type":53,"Flags":0,"Description":"RedisCache portable resource properties"},"tags":{"Type":67,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":38,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"RedisCacheProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":61,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"secrets":{"Type":62,"Flags":0,"Description":"The secret values for the given RedisCache resource"},"host":{"Type":4,"Flags":0,"Description":"The host name of the target Redis cache"},"port":{"Type":3,"Flags":0,"Description":"The port value of the target Redis cache"},"username":{"Type":4,"Flags":0,"Description":"The username for Redis cache"},"tls":{"Type":2,"Flags":0,"Description":"Specifies whether to enable SSL connections to the Redis cache"},"resources":{"Type":63,"Flags":0,"Description":"List of the resource IDs that support the Redis resource"},"recipe":{"Type":33,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":66,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[54,55,56,57,58,59,60]}},{"2":{"Name":"RedisCacheSecrets","Properties":{"connectionString":{"Type":4,"Flags":0,"Description":"The connection string used to connect to the Redis cache"},"password":{"Type":4,"Flags":0,"Description":"The password for this Redis cache instance"},"url":{"Type":4,"Flags":0,"Description":"The URL used to connect to the Redis cache"}}}},{"3":{"ItemType":31}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[64,65]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Datastores/redisCaches@2023-10-01-preview","ScopeType":0,"Body":52}},{"6":{"Value":"Applications.Datastores/sqlDatabases"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Datastores/sqlDatabases","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":69,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":70,"Flags":10,"Description":"The resource api version"},"properties":{"Type":72,"Flags":0,"Description":"SqlDatabase properties"},"tags":{"Type":86,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":38,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"SqlDatabaseProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":80,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"database":{"Type":4,"Flags":0,"Description":"The name of the Sql database."},"server":{"Type":4,"Flags":0,"Description":"The fully qualified domain name of the Sql database."},"port":{"Type":3,"Flags":0,"Description":"Port value of the target Sql database"},"username":{"Type":4,"Flags":0,"Description":"Username to use when connecting to the target Sql database"},"resources":{"Type":81,"Flags":0,"Description":"List of the resource IDs that support the SqlDatabase resource"},"secrets":{"Type":82,"Flags":0,"Description":"The secret values for the given SqlDatabase resource"},"recipe":{"Type":33,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":85,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[73,74,75,76,77,78,79]}},{"3":{"ItemType":31}},{"2":{"Name":"SqlDatabaseSecrets","Properties":{"password":{"Type":4,"Flags":0,"Description":"Password to use when connecting to the target Sql database"},"connectionString":{"Type":4,"Flags":0,"Description":"Connection string used to connect to the target Sql database"}}}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[83,84]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Applications.Datastores/sqlDatabases@2023-10-01-preview","ScopeType":0,"Body":71}},{"2":{"Name":"MongoDatabaseListSecretsResult","Properties":{"password":{"Type":4,"Flags":2,"Description":"Password to use when connecting to the target Mongo database"},"connectionString":{"Type":4,"Flags":2,"Description":"Connection string used to connect to the target Mongo database"}}}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Datastores/mongoDatabases","ApiVersion":"2023-10-01-preview","Output":88,"Input":0}},{"2":{"Name":"RedisCacheListSecretsResult","Properties":{"connectionString":{"Type":4,"Flags":2,"Description":"The connection string used to connect to the Redis cache"},"password":{"Type":4,"Flags":2,"Description":"The password for this Redis cache instance"},"url":{"Type":4,"Flags":2,"Description":"The URL used to connect to the Redis cache"}}}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Datastores/redisCaches","ApiVersion":"2023-10-01-preview","Output":90,"Input":0}},{"2":{"Name":"SqlDatabaseListSecretsResult","Properties":{"password":{"Type":4,"Flags":2,"Description":"Password to use when connecting to the target Sql database"},"connectionString":{"Type":4,"Flags":2,"Description":"Connection string used to connect to the target Sql database"}}}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Datastores/sqlDatabases","ApiVersion":"2023-10-01-preview","Output":92,"Input":0}}] \ No newline at end of file diff --git a/hack/bicep-types-radius/generated/applications/applications.datastores/2022-03-15-privatepreview/types.md b/hack/bicep-types-radius/generated/applications/applications.datastores/2023-10-01-preview/types.md similarity index 93% rename from hack/bicep-types-radius/generated/applications/applications.datastores/2022-03-15-privatepreview/types.md rename to hack/bicep-types-radius/generated/applications/applications.datastores/2023-10-01-preview/types.md index 91c2ced2c56..119a1879d62 100644 --- a/hack/bicep-types-radius/generated/applications/applications.datastores/2022-03-15-privatepreview/types.md +++ b/hack/bicep-types-radius/generated/applications/applications.datastores/2023-10-01-preview/types.md @@ -1,9 +1,9 @@ -# Applications.Datastores @ 2022-03-15-privatepreview +# Applications.Datastores @ 2023-10-01-preview -## Resource Applications.Datastores/mongoDatabases@2022-03-15-privatepreview +## Resource Applications.Datastores/mongoDatabases@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -12,10 +12,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Datastores/mongoDatabases' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Datastores/redisCaches@2022-03-15-privatepreview +## Resource Applications.Datastores/redisCaches@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -24,10 +24,10 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Datastores/redisCaches' (ReadOnly, DeployTimeConstant): The resource type -## Resource Applications.Datastores/sqlDatabases@2022-03-15-privatepreview +## Resource Applications.Datastores/sqlDatabases@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -36,21 +36,21 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Datastores/sqlDatabases' (ReadOnly, DeployTimeConstant): The resource type -## Function listSecrets (Applications.Datastores/mongoDatabases@2022-03-15-privatepreview) +## Function listSecrets (Applications.Datastores/mongoDatabases@2023-10-01-preview) * **Resource**: Applications.Datastores/mongoDatabases -* **ApiVersion**: 2022-03-15-privatepreview +* **ApiVersion**: 2023-10-01-preview * **Input**: any * **Output**: [MongoDatabaseListSecretsResult](#mongodatabaselistsecretsresult) -## Function listSecrets (Applications.Datastores/redisCaches@2022-03-15-privatepreview) +## Function listSecrets (Applications.Datastores/redisCaches@2023-10-01-preview) * **Resource**: Applications.Datastores/redisCaches -* **ApiVersion**: 2022-03-15-privatepreview +* **ApiVersion**: 2023-10-01-preview * **Input**: any * **Output**: [RedisCacheListSecretsResult](#rediscachelistsecretsresult) -## Function listSecrets (Applications.Datastores/sqlDatabases@2022-03-15-privatepreview) +## Function listSecrets (Applications.Datastores/sqlDatabases@2023-10-01-preview) * **Resource**: Applications.Datastores/sqlDatabases -* **ApiVersion**: 2022-03-15-privatepreview +* **ApiVersion**: 2023-10-01-preview * **Input**: any * **Output**: [SqlDatabaseListSecretsResult](#sqldatabaselistsecretsresult) diff --git a/hack/bicep-types-radius/generated/applications/applications.messaging/2022-03-15-privatepreview/types.json b/hack/bicep-types-radius/generated/applications/applications.messaging/2022-03-15-privatepreview/types.json deleted file mode 100644 index 85196702eaa..00000000000 --- a/hack/bicep-types-radius/generated/applications/applications.messaging/2022-03-15-privatepreview/types.json +++ /dev/null @@ -1 +0,0 @@ -[{"1":{"Kind":1}},{"1":{"Kind":2}},{"1":{"Kind":3}},{"1":{"Kind":4}},{"1":{"Kind":5}},{"1":{"Kind":6}},{"1":{"Kind":7}},{"1":{"Kind":8}},{"6":{"Value":"Applications.Messaging/rabbitMQQueues"}},{"6":{"Value":"2022-03-15-privatepreview"}},{"2":{"Name":"Applications.Messaging/rabbitMQQueues","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":8,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":9,"Flags":10,"Description":"The resource api version"},"properties":{"Type":11,"Flags":0,"Description":"RabbitMQQueue portable resource properties"},"tags":{"Type":37,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":38,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"RabbitMQQueueProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":19,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"secrets":{"Type":30,"Flags":0,"Description":"The connection secrets properties to the RabbitMQ instance"},"queue":{"Type":4,"Flags":0,"Description":"The name of the queue"},"host":{"Type":4,"Flags":0,"Description":"The hostname of the RabbitMQ instance"},"port":{"Type":3,"Flags":0,"Description":"The port of the RabbitMQ instance. Defaults to 5672"},"vHost":{"Type":4,"Flags":0,"Description":"The RabbitMQ virtual host (vHost) the client will connect to. Defaults to no vHost."},"username":{"Type":4,"Flags":0,"Description":"The username to use when connecting to the RabbitMQ instance"},"resources":{"Type":32,"Flags":0,"Description":"List of the resource IDs that support the rabbitMQ resource"},"tls":{"Type":2,"Flags":0,"Description":"Specifies whether to use SSL when connecting to the RabbitMQ instance"},"recipe":{"Type":33,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":36,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[12,13,14,15,16,17,18]}},{"2":{"Name":"ResourceStatus","Properties":{"compute":{"Type":21,"Flags":0,"Description":"Represents backing compute resource"},"outputResources":{"Type":29,"Flags":0,"Description":"Properties of an output resource"}}}},{"7":{"Name":"EnvironmentCompute","Discriminator":"kind","BaseProperties":{"resourceId":{"Type":4,"Flags":0,"Description":"The resource id of the compute resource for application environment."},"identity":{"Type":22,"Flags":0,"Description":"IdentitySettings is the external identity setting."}},"Elements":{"kubernetes":26}}},{"2":{"Name":"IdentitySettings","Properties":{"kind":{"Type":25,"Flags":1,"Description":"IdentitySettingKind is the kind of supported external identity setting"},"oidcIssuer":{"Type":4,"Flags":0,"Description":"The URI for your compute platform's OIDC issuer"},"resource":{"Type":4,"Flags":0,"Description":"The resource ID of the provisioned identity"}}}},{"6":{"Value":"undefined"}},{"6":{"Value":"azure.com.workload"}},{"5":{"Elements":[23,24]}},{"2":{"Name":"KubernetesCompute","Properties":{"namespace":{"Type":4,"Flags":1,"Description":"The namespace to use for the environment."},"kind":{"Type":27,"Flags":1,"Description":"Discriminator property for EnvironmentCompute."}}}},{"6":{"Value":"kubernetes"}},{"2":{"Name":"OutputResource","Properties":{"localId":{"Type":4,"Flags":0,"Description":"The logical identifier scoped to the owning Radius resource. This is only needed or used when a resource has a dependency relationship. LocalIDs do not have any particular format or meaning beyond being compared to determine dependency relationships."},"id":{"Type":4,"Flags":0,"Description":"The UCP resource ID of the underlying resource."},"radiusManaged":{"Type":2,"Flags":0,"Description":"Determines whether Radius manages the lifecycle of the underlying resource."}}}},{"3":{"ItemType":28}},{"2":{"Name":"RabbitMQSecrets","Properties":{"password":{"Type":4,"Flags":0,"Description":"The password used to connect to the RabbitMQ instance"},"uri":{"Type":4,"Flags":0,"Description":"The connection URI of the RabbitMQ instance. Generated automatically from host, port, SSL, username, password, and vhost. Can be overridden with a custom value"}}}},{"2":{"Name":"ResourceReference","Properties":{"id":{"Type":4,"Flags":1,"Description":"Resource id of an existing resource"}}}},{"3":{"ItemType":31}},{"2":{"Name":"Recipe","Properties":{"name":{"Type":4,"Flags":1,"Description":"The name of the recipe within the environment to use"},"parameters":{"Type":0,"Flags":0,"Description":"Any object"}}}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[34,35]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"SystemData","Properties":{"createdBy":{"Type":4,"Flags":0,"Description":"The identity that created the resource."},"createdByType":{"Type":43,"Flags":0,"Description":"The type of identity that created the resource."},"createdAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource creation (UTC)."},"lastModifiedBy":{"Type":4,"Flags":0,"Description":"The identity that last modified the resource."},"lastModifiedByType":{"Type":48,"Flags":0,"Description":"The type of identity that created the resource."},"lastModifiedAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource last modification (UTC)"}}}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[39,40,41,42]}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[44,45,46,47]}},{"4":{"Name":"Applications.Messaging/rabbitMQQueues@2022-03-15-privatepreview","ScopeType":0,"Body":10}},{"2":{"Name":"RabbitMQListSecretsResult","Properties":{"password":{"Type":4,"Flags":2,"Description":"The password used to connect to the RabbitMQ instance"},"uri":{"Type":4,"Flags":2,"Description":"The connection URI of the RabbitMQ instance. Generated automatically from host, port, SSL, username, password, and vhost. Can be overridden with a custom value"}}}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Messaging/rabbitMQQueues","ApiVersion":"2022-03-15-privatepreview","Output":50,"Input":0}}] \ No newline at end of file diff --git a/hack/bicep-types-radius/generated/applications/applications.messaging/2023-10-01-preview/types.json b/hack/bicep-types-radius/generated/applications/applications.messaging/2023-10-01-preview/types.json new file mode 100644 index 00000000000..f307bb6d7cc --- /dev/null +++ b/hack/bicep-types-radius/generated/applications/applications.messaging/2023-10-01-preview/types.json @@ -0,0 +1 @@ +[{"1":{"Kind":1}},{"1":{"Kind":2}},{"1":{"Kind":3}},{"1":{"Kind":4}},{"1":{"Kind":5}},{"1":{"Kind":6}},{"1":{"Kind":7}},{"1":{"Kind":8}},{"6":{"Value":"Applications.Messaging/rabbitMQQueues"}},{"6":{"Value":"2023-10-01-preview"}},{"2":{"Name":"Applications.Messaging/rabbitMQQueues","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":8,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":9,"Flags":10,"Description":"The resource api version"},"properties":{"Type":11,"Flags":0,"Description":"RabbitMQQueue portable resource properties"},"tags":{"Type":37,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":38,"Flags":2,"Description":"Metadata pertaining to creation and last modification of the resource."}}}},{"2":{"Name":"RabbitMQQueueProperties","Properties":{"environment":{"Type":4,"Flags":1,"Description":"Fully qualified resource ID for the environment that the portable resource is linked to"},"application":{"Type":4,"Flags":0,"Description":"Fully qualified resource ID for the application that the portable resource is consumed by (if applicable)"},"provisioningState":{"Type":19,"Flags":2,"Description":"Provisioning state of the portable resource at the time the operation was called"},"status":{"Type":20,"Flags":2,"Description":"Status of a resource."},"secrets":{"Type":30,"Flags":0,"Description":"The connection secrets properties to the RabbitMQ instance"},"queue":{"Type":4,"Flags":0,"Description":"The name of the queue"},"host":{"Type":4,"Flags":0,"Description":"The hostname of the RabbitMQ instance"},"port":{"Type":3,"Flags":0,"Description":"The port of the RabbitMQ instance. Defaults to 5672"},"vHost":{"Type":4,"Flags":0,"Description":"The RabbitMQ virtual host (vHost) the client will connect to. Defaults to no vHost."},"username":{"Type":4,"Flags":0,"Description":"The username to use when connecting to the RabbitMQ instance"},"resources":{"Type":32,"Flags":0,"Description":"List of the resource IDs that support the rabbitMQ resource"},"tls":{"Type":2,"Flags":0,"Description":"Specifies whether to use SSL when connecting to the RabbitMQ instance"},"recipe":{"Type":33,"Flags":0,"Description":"The recipe used to automatically deploy underlying infrastructure for a portable resource"},"resourceProvisioning":{"Type":36,"Flags":0,"Description":"Specifies how the underlying service/resource is provisioned and managed. Available values are 'recipe', where Radius manages the lifecycle of the resource through a Recipe, and 'manual', where a user manages the resource and provides the values."}}}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Provisioning"}},{"6":{"Value":"Updating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Accepted"}},{"5":{"Elements":[12,13,14,15,16,17,18]}},{"2":{"Name":"ResourceStatus","Properties":{"compute":{"Type":21,"Flags":0,"Description":"Represents backing compute resource"},"outputResources":{"Type":29,"Flags":0,"Description":"Properties of an output resource"}}}},{"7":{"Name":"EnvironmentCompute","Discriminator":"kind","BaseProperties":{"resourceId":{"Type":4,"Flags":0,"Description":"The resource id of the compute resource for application environment."},"identity":{"Type":22,"Flags":0,"Description":"IdentitySettings is the external identity setting."}},"Elements":{"kubernetes":26}}},{"2":{"Name":"IdentitySettings","Properties":{"kind":{"Type":25,"Flags":1,"Description":"IdentitySettingKind is the kind of supported external identity setting"},"oidcIssuer":{"Type":4,"Flags":0,"Description":"The URI for your compute platform's OIDC issuer"},"resource":{"Type":4,"Flags":0,"Description":"The resource ID of the provisioned identity"}}}},{"6":{"Value":"undefined"}},{"6":{"Value":"azure.com.workload"}},{"5":{"Elements":[23,24]}},{"2":{"Name":"KubernetesCompute","Properties":{"namespace":{"Type":4,"Flags":1,"Description":"The namespace to use for the environment."},"kind":{"Type":27,"Flags":1,"Description":"Discriminator property for EnvironmentCompute."}}}},{"6":{"Value":"kubernetes"}},{"2":{"Name":"OutputResource","Properties":{"localId":{"Type":4,"Flags":0,"Description":"The logical identifier scoped to the owning Radius resource. This is only needed or used when a resource has a dependency relationship. LocalIDs do not have any particular format or meaning beyond being compared to determine dependency relationships."},"id":{"Type":4,"Flags":0,"Description":"The UCP resource ID of the underlying resource."},"radiusManaged":{"Type":2,"Flags":0,"Description":"Determines whether Radius manages the lifecycle of the underlying resource."}}}},{"3":{"ItemType":28}},{"2":{"Name":"RabbitMQSecrets","Properties":{"password":{"Type":4,"Flags":0,"Description":"The password used to connect to the RabbitMQ instance"},"uri":{"Type":4,"Flags":0,"Description":"The connection URI of the RabbitMQ instance. Generated automatically from host, port, SSL, username, password, and vhost. Can be overridden with a custom value"}}}},{"2":{"Name":"ResourceReference","Properties":{"id":{"Type":4,"Flags":1,"Description":"Resource id of an existing resource"}}}},{"3":{"ItemType":31}},{"2":{"Name":"Recipe","Properties":{"name":{"Type":4,"Flags":1,"Description":"The name of the recipe within the environment to use"},"parameters":{"Type":0,"Flags":0,"Description":"Any object"}}}},{"6":{"Value":"recipe"}},{"6":{"Value":"manual"}},{"5":{"Elements":[34,35]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"SystemData","Properties":{"createdBy":{"Type":4,"Flags":0,"Description":"The identity that created the resource."},"createdByType":{"Type":43,"Flags":0,"Description":"The type of identity that created the resource."},"createdAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource creation (UTC)."},"lastModifiedBy":{"Type":4,"Flags":0,"Description":"The identity that last modified the resource."},"lastModifiedByType":{"Type":48,"Flags":0,"Description":"The type of identity that created the resource."},"lastModifiedAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource last modification (UTC)"}}}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[39,40,41,42]}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[44,45,46,47]}},{"4":{"Name":"Applications.Messaging/rabbitMQQueues@2023-10-01-preview","ScopeType":0,"Body":10}},{"2":{"Name":"RabbitMQListSecretsResult","Properties":{"password":{"Type":4,"Flags":2,"Description":"The password used to connect to the RabbitMQ instance"},"uri":{"Type":4,"Flags":2,"Description":"The connection URI of the RabbitMQ instance. Generated automatically from host, port, SSL, username, password, and vhost. Can be overridden with a custom value"}}}},{"8":{"Name":"listSecrets","ResourceType":"Applications.Messaging/rabbitMQQueues","ApiVersion":"2023-10-01-preview","Output":50,"Input":0}}] \ No newline at end of file diff --git a/hack/bicep-types-radius/generated/applications/applications.messaging/2022-03-15-privatepreview/types.md b/hack/bicep-types-radius/generated/applications/applications.messaging/2023-10-01-preview/types.md similarity index 94% rename from hack/bicep-types-radius/generated/applications/applications.messaging/2022-03-15-privatepreview/types.md rename to hack/bicep-types-radius/generated/applications/applications.messaging/2023-10-01-preview/types.md index bca991e7e27..e31bb0495e7 100644 --- a/hack/bicep-types-radius/generated/applications/applications.messaging/2022-03-15-privatepreview/types.md +++ b/hack/bicep-types-radius/generated/applications/applications.messaging/2023-10-01-preview/types.md @@ -1,9 +1,9 @@ -# Applications.Messaging @ 2022-03-15-privatepreview +# Applications.Messaging @ 2023-10-01-preview -## Resource Applications.Messaging/rabbitMQQueues@2022-03-15-privatepreview +## Resource Applications.Messaging/rabbitMQQueues@2023-10-01-preview * **Valid Scope(s)**: Unknown ### Properties -* **apiVersion**: '2022-03-15-privatepreview' (ReadOnly, DeployTimeConstant): The resource api version +* **apiVersion**: '2023-10-01-preview' (ReadOnly, DeployTimeConstant): The resource api version * **id**: string (ReadOnly, DeployTimeConstant): The resource id * **location**: string (Required): The geo-location where the resource lives * **name**: string (Required, DeployTimeConstant): The resource name @@ -12,9 +12,9 @@ * **tags**: [TrackedResourceTags](#trackedresourcetags): Resource tags. * **type**: 'Applications.Messaging/rabbitMQQueues' (ReadOnly, DeployTimeConstant): The resource type -## Function listSecrets (Applications.Messaging/rabbitMQQueues@2022-03-15-privatepreview) +## Function listSecrets (Applications.Messaging/rabbitMQQueues@2023-10-01-preview) * **Resource**: Applications.Messaging/rabbitMQQueues -* **ApiVersion**: 2022-03-15-privatepreview +* **ApiVersion**: 2023-10-01-preview * **Input**: any * **Output**: [RabbitMQListSecretsResult](#rabbitmqlistsecretsresult) diff --git a/hack/bicep-types-radius/generated/index.json b/hack/bicep-types-radius/generated/index.json index f00058f3dcc..c2d6d2eee76 100644 --- a/hack/bicep-types-radius/generated/index.json +++ b/hack/bicep-types-radius/generated/index.json @@ -1 +1 @@ -{"Resources":{"Applications.Core/applications@2022-03-15-privatepreview":{"RelativePath":"applications/applications.core/2022-03-15-privatepreview/types.json","Index":57},"Applications.Core/containers@2022-03-15-privatepreview":{"RelativePath":"applications/applications.core/2022-03-15-privatepreview/types.json","Index":113},"Applications.Core/environments@2022-03-15-privatepreview":{"RelativePath":"applications/applications.core/2022-03-15-privatepreview/types.json","Index":138},"Applications.Core/extenders@2022-03-15-privatepreview":{"RelativePath":"applications/applications.core/2022-03-15-privatepreview/types.json","Index":156},"Applications.Core/gateways@2022-03-15-privatepreview":{"RelativePath":"applications/applications.core/2022-03-15-privatepreview/types.json","Index":177},"Applications.Core/httpRoutes@2022-03-15-privatepreview":{"RelativePath":"applications/applications.core/2022-03-15-privatepreview/types.json","Index":191},"Applications.Core/secretStores@2022-03-15-privatepreview":{"RelativePath":"applications/applications.core/2022-03-15-privatepreview/types.json","Index":214},"Applications.Core/volumes@2022-03-15-privatepreview":{"RelativePath":"applications/applications.core/2022-03-15-privatepreview/types.json","Index":251},"Applications.Dapr/pubSubBrokers@2022-03-15-privatepreview":{"RelativePath":"applications/applications.dapr/2022-03-15-privatepreview/types.json","Index":48},"Applications.Dapr/secretStores@2022-03-15-privatepreview":{"RelativePath":"applications/applications.dapr/2022-03-15-privatepreview/types.json","Index":65},"Applications.Dapr/stateStores@2022-03-15-privatepreview":{"RelativePath":"applications/applications.dapr/2022-03-15-privatepreview/types.json","Index":83},"Applications.Datastores/mongoDatabases@2022-03-15-privatepreview":{"RelativePath":"applications/applications.datastores/2022-03-15-privatepreview/types.json","Index":49},"Applications.Datastores/redisCaches@2022-03-15-privatepreview":{"RelativePath":"applications/applications.datastores/2022-03-15-privatepreview/types.json","Index":68},"Applications.Datastores/sqlDatabases@2022-03-15-privatepreview":{"RelativePath":"applications/applications.datastores/2022-03-15-privatepreview/types.json","Index":87},"Applications.Messaging/rabbitMQQueues@2022-03-15-privatepreview":{"RelativePath":"applications/applications.messaging/2022-03-15-privatepreview/types.json","Index":49}},"Functions":{"applications.core/extenders":{"2022-03-15-privatepreview":[{"RelativePath":"applications/applications.core/2022-03-15-privatepreview/types.json","Index":252}]},"applications.core/secretstores":{"2022-03-15-privatepreview":[{"RelativePath":"applications/applications.core/2022-03-15-privatepreview/types.json","Index":258}]},"applications.datastores/mongodatabases":{"2022-03-15-privatepreview":[{"RelativePath":"applications/applications.datastores/2022-03-15-privatepreview/types.json","Index":89}]},"applications.datastores/rediscaches":{"2022-03-15-privatepreview":[{"RelativePath":"applications/applications.datastores/2022-03-15-privatepreview/types.json","Index":91}]},"applications.datastores/sqldatabases":{"2022-03-15-privatepreview":[{"RelativePath":"applications/applications.datastores/2022-03-15-privatepreview/types.json","Index":93}]},"applications.messaging/rabbitmqqueues":{"2022-03-15-privatepreview":[{"RelativePath":"applications/applications.messaging/2022-03-15-privatepreview/types.json","Index":51}]}}} \ No newline at end of file +{"Resources":{"Applications.Core/applications@2023-10-01-preview":{"RelativePath":"applications/applications.core/2023-10-01-preview/types.json","Index":57},"Applications.Core/containers@2023-10-01-preview":{"RelativePath":"applications/applications.core/2023-10-01-preview/types.json","Index":113},"Applications.Core/environments@2023-10-01-preview":{"RelativePath":"applications/applications.core/2023-10-01-preview/types.json","Index":138},"Applications.Core/extenders@2023-10-01-preview":{"RelativePath":"applications/applications.core/2023-10-01-preview/types.json","Index":156},"Applications.Core/gateways@2023-10-01-preview":{"RelativePath":"applications/applications.core/2023-10-01-preview/types.json","Index":177},"Applications.Core/httpRoutes@2023-10-01-preview":{"RelativePath":"applications/applications.core/2023-10-01-preview/types.json","Index":191},"Applications.Core/secretStores@2023-10-01-preview":{"RelativePath":"applications/applications.core/2023-10-01-preview/types.json","Index":214},"Applications.Core/volumes@2023-10-01-preview":{"RelativePath":"applications/applications.core/2023-10-01-preview/types.json","Index":251},"Applications.Dapr/pubSubBrokers@2023-10-01-preview":{"RelativePath":"applications/applications.dapr/2023-10-01-preview/types.json","Index":48},"Applications.Dapr/secretStores@2023-10-01-preview":{"RelativePath":"applications/applications.dapr/2023-10-01-preview/types.json","Index":65},"Applications.Dapr/stateStores@2023-10-01-preview":{"RelativePath":"applications/applications.dapr/2023-10-01-preview/types.json","Index":83},"Applications.Datastores/mongoDatabases@2023-10-01-preview":{"RelativePath":"applications/applications.datastores/2023-10-01-preview/types.json","Index":49},"Applications.Datastores/redisCaches@2023-10-01-preview":{"RelativePath":"applications/applications.datastores/2023-10-01-preview/types.json","Index":68},"Applications.Datastores/sqlDatabases@2023-10-01-preview":{"RelativePath":"applications/applications.datastores/2023-10-01-preview/types.json","Index":87},"Applications.Messaging/rabbitMQQueues@2023-10-01-preview":{"RelativePath":"applications/applications.messaging/2023-10-01-preview/types.json","Index":49}},"Functions":{"applications.core/extenders":{"2023-10-01-preview":[{"RelativePath":"applications/applications.core/2023-10-01-preview/types.json","Index":252}]},"applications.core/secretstores":{"2023-10-01-preview":[{"RelativePath":"applications/applications.core/2023-10-01-preview/types.json","Index":258}]},"applications.datastores/mongodatabases":{"2023-10-01-preview":[{"RelativePath":"applications/applications.datastores/2023-10-01-preview/types.json","Index":89}]},"applications.datastores/rediscaches":{"2023-10-01-preview":[{"RelativePath":"applications/applications.datastores/2023-10-01-preview/types.json","Index":91}]},"applications.datastores/sqldatabases":{"2023-10-01-preview":[{"RelativePath":"applications/applications.datastores/2023-10-01-preview/types.json","Index":93}]},"applications.messaging/rabbitmqqueues":{"2023-10-01-preview":[{"RelativePath":"applications/applications.messaging/2023-10-01-preview/types.json","Index":51}]}}} \ No newline at end of file diff --git a/hack/bicep-types-radius/generated/index.md b/hack/bicep-types-radius/generated/index.md index abbb71ecff2..1a04c1ab6d2 100644 --- a/hack/bicep-types-radius/generated/index.md +++ b/hack/bicep-types-radius/generated/index.md @@ -1,50 +1,50 @@ # Bicep Types ## applications.core ### applications.core/applications -* [2022-03-15-privatepreview](applications/applications.core/2022-03-15-privatepreview/types.md#resource-applicationscoreapplications2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.core/2023-10-01-preview/types.md#resource-applicationscoreapplications2023-10-01-preview) ### applications.core/containers -* [2022-03-15-privatepreview](applications/applications.core/2022-03-15-privatepreview/types.md#resource-applicationscorecontainers2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.core/2023-10-01-preview/types.md#resource-applicationscorecontainers2023-10-01-preview) ### applications.core/environments -* [2022-03-15-privatepreview](applications/applications.core/2022-03-15-privatepreview/types.md#resource-applicationscoreenvironments2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.core/2023-10-01-preview/types.md#resource-applicationscoreenvironments2023-10-01-preview) ### applications.core/extenders -* [2022-03-15-privatepreview](applications/applications.core/2022-03-15-privatepreview/types.md#resource-applicationscoreextenders2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.core/2023-10-01-preview/types.md#resource-applicationscoreextenders2023-10-01-preview) ### applications.core/gateways -* [2022-03-15-privatepreview](applications/applications.core/2022-03-15-privatepreview/types.md#resource-applicationscoregateways2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.core/2023-10-01-preview/types.md#resource-applicationscoregateways2023-10-01-preview) ### applications.core/httproutes -* [2022-03-15-privatepreview](applications/applications.core/2022-03-15-privatepreview/types.md#resource-applicationscorehttproutes2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.core/2023-10-01-preview/types.md#resource-applicationscorehttproutes2023-10-01-preview) ### applications.core/secretstores -* [2022-03-15-privatepreview](applications/applications.core/2022-03-15-privatepreview/types.md#resource-applicationscoresecretstores2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.core/2023-10-01-preview/types.md#resource-applicationscoresecretstores2023-10-01-preview) ### applications.core/volumes -* [2022-03-15-privatepreview](applications/applications.core/2022-03-15-privatepreview/types.md#resource-applicationscorevolumes2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.core/2023-10-01-preview/types.md#resource-applicationscorevolumes2023-10-01-preview) ## applications.dapr ### applications.dapr/pubsubbrokers -* [2022-03-15-privatepreview](applications/applications.dapr/2022-03-15-privatepreview/types.md#resource-applicationsdaprpubsubbrokers2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.dapr/2023-10-01-preview/types.md#resource-applicationsdaprpubsubbrokers2023-10-01-preview) ### applications.dapr/secretstores -* [2022-03-15-privatepreview](applications/applications.dapr/2022-03-15-privatepreview/types.md#resource-applicationsdaprsecretstores2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.dapr/2023-10-01-preview/types.md#resource-applicationsdaprsecretstores2023-10-01-preview) ### applications.dapr/statestores -* [2022-03-15-privatepreview](applications/applications.dapr/2022-03-15-privatepreview/types.md#resource-applicationsdaprstatestores2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.dapr/2023-10-01-preview/types.md#resource-applicationsdaprstatestores2023-10-01-preview) ## applications.datastores ### applications.datastores/mongodatabases -* [2022-03-15-privatepreview](applications/applications.datastores/2022-03-15-privatepreview/types.md#resource-applicationsdatastoresmongodatabases2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.datastores/2023-10-01-preview/types.md#resource-applicationsdatastoresmongodatabases2023-10-01-preview) ### applications.datastores/rediscaches -* [2022-03-15-privatepreview](applications/applications.datastores/2022-03-15-privatepreview/types.md#resource-applicationsdatastoresrediscaches2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.datastores/2023-10-01-preview/types.md#resource-applicationsdatastoresrediscaches2023-10-01-preview) ### applications.datastores/sqldatabases -* [2022-03-15-privatepreview](applications/applications.datastores/2022-03-15-privatepreview/types.md#resource-applicationsdatastoressqldatabases2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.datastores/2023-10-01-preview/types.md#resource-applicationsdatastoressqldatabases2023-10-01-preview) ## applications.messaging ### applications.messaging/rabbitmqqueues -* [2022-03-15-privatepreview](applications/applications.messaging/2022-03-15-privatepreview/types.md#resource-applicationsmessagingrabbitmqqueues2022-03-15-privatepreview) +* [2023-10-01-preview](applications/applications.messaging/2023-10-01-preview/types.md#resource-applicationsmessagingrabbitmqqueues2023-10-01-preview) diff --git a/hack/bicep-types-radius/src/generator/src/cmd/generate.ts b/hack/bicep-types-radius/src/generator/src/cmd/generate.ts index 11a33adb76b..3da347c7cfb 100644 --- a/hack/bicep-types-radius/src/generator/src/cmd/generate.ts +++ b/hack/bicep-types-radius/src/generator/src/cmd/generate.ts @@ -126,7 +126,7 @@ async function generateAutorestConfig(logger: ILogger, readmePath: string, bicep // We expect a path format convention of /(preview|stable)/--
(|-preview)/.json // This information is used to generate individual tags in the generated autorest configuration // eslint-disable-next-line no-useless-escape - const pathRegex = /^(\$\(this-folder\)\/|)([^\/]+)\/[^\/]+\/(\d{4}-\d{2}-\d{2}(|-privatepreview))\/.*\.json$/i; + const pathRegex = /^(\$\(this-folder\)\/|)([^\/]+)\/[^\/]+\/(\d{4}-\d{2}-\d{2}(|-preview|-privatepreview))\/.*\.json$/i; const readmeContents = await readFile(readmePath, { encoding: 'utf8' }); const readmeMarkdown = markdown.parse(readmeContents); diff --git a/pkg/armrpc/api/v1/armrequestcontext_test.go b/pkg/armrpc/api/v1/armrequestcontext_test.go index 0c2c23d5eaf..9d899971145 100644 --- a/pkg/armrpc/api/v1/armrequestcontext_test.go +++ b/pkg/armrpc/api/v1/armrequestcontext_test.go @@ -36,7 +36,7 @@ func TestFromARMRequest(t *testing.T) { }{ { "With referer header", - "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-RG/providers/Applications.Core/environments/Env0?api-version=2022-03-15-privatepreview", + "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-RG/providers/Applications.Core/environments/Env0?api-version=2023-10-01-preview", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-RG/providers/Applications.Core/environments/Env0", }, { @@ -46,7 +46,7 @@ func TestFromARMRequest(t *testing.T) { }, { "With referer path base", - "https://radius.dev/apis/api.ucp.dev/v1alpha3/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-RG/providers/Applications.Core/environments/Env0?api-version=2022-03-15-privatepreview", + "https://radius.dev/apis/api.ucp.dev/v1alpha3/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-RG/providers/Applications.Core/environments/Env0?api-version=2023-10-01-preview", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-RG/providers/Applications.Core/environments/Env0", }, } @@ -67,7 +67,7 @@ func TestFromARMRequest(t *testing.T) { serviceCtx, err := FromARMRequest(req, "", LocationGlobal) require.NoError(t, err) - require.Equal(t, "2022-03-15-privatepreview", serviceCtx.APIVersion) + require.Equal(t, "2023-10-01-preview", serviceCtx.APIVersion) require.Equal(t, "00000000-0000-0000-0000-000000000001", serviceCtx.ClientTenantID) require.Equal(t, "00000000-0000-0000-0000-000000000002", serviceCtx.HomeTenantID) require.Equal(t, tt.resourceID, serviceCtx.ResourceID.String()) @@ -107,7 +107,7 @@ func TestFromContext(t *testing.T) { sCtx := ARMRequestContextFromContext(newCtx) require.NotNil(t, sCtx) - require.Equal(t, "2022-03-15-privatepreview", sCtx.APIVersion) + require.Equal(t, "2023-10-01-preview", sCtx.APIVersion) }) t.Run("ARMRequestContext is not injected", func(t *testing.T) { diff --git a/pkg/armrpc/api/v1/testdata/armrpcheaders.json b/pkg/armrpc/api/v1/testdata/armrpcheaders.json index ff9c86c616b..aaf8c686c57 100644 --- a/pkg/armrpc/api/v1/testdata/armrpcheaders.json +++ b/pkg/armrpc/api/v1/testdata/armrpcheaders.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-RG/providers/Applications.Core/environments/Env0?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-RG/providers/Applications.Core/environments/Env0?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-RG/providers/Applications.Core/environments/Env0?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-RG/providers/Applications.Core/environments/Env0?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/armrpc/frontend/defaultoperation/resource_test.go b/pkg/armrpc/frontend/defaultoperation/resource_test.go index c07d3057781..e14ecb7a747 100644 --- a/pkg/armrpc/frontend/defaultoperation/resource_test.go +++ b/pkg/armrpc/frontend/defaultoperation/resource_test.go @@ -38,7 +38,7 @@ import ( const ( resourceTestHeaderFile = "resource_requestheaders.json" operationStatusTestHeaderFile = "operationstatus_requestheaders.json" - testAPIVersion = "2022-03-15-privatepreview" + testAPIVersion = "2023-10-01-preview" ) // TestResourceDataModel represents test resource. diff --git a/pkg/armrpc/frontend/defaultoperation/testdata/resource-datamodel.json b/pkg/armrpc/frontend/defaultoperation/testdata/resource-datamodel.json index a9d36db4c19..d66ad78e5f3 100644 --- a/pkg/armrpc/frontend/defaultoperation/testdata/resource-datamodel.json +++ b/pkg/armrpc/frontend/defaultoperation/testdata/resource-datamodel.json @@ -28,6 +28,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/armrpc/frontend/defaultoperation/testdata/resource-sync-datamodel.json b/pkg/armrpc/frontend/defaultoperation/testdata/resource-sync-datamodel.json index b576aee4703..e829b149c9e 100644 --- a/pkg/armrpc/frontend/defaultoperation/testdata/resource-sync-datamodel.json +++ b/pkg/armrpc/frontend/defaultoperation/testdata/resource-sync-datamodel.json @@ -12,6 +12,6 @@ } }, "tenantId": "00000000-0000-0000-0000-000000000000", - "createdApiVersion": "2022-09-01-privatepreview", - "updatedApiVersion": "2022-09-01-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/armrpc/frontend/defaultoperation/testdata/resource_planescope_requestheaders.json b/pkg/armrpc/frontend/defaultoperation/testdata/resource_planescope_requestheaders.json index bfbc134df83..154a96f1d2d 100644 --- a/pkg/armrpc/frontend/defaultoperation/testdata/resource_planescope_requestheaders.json +++ b/pkg/armrpc/frontend/defaultoperation/testdata/resource_planescope_requestheaders.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/planes/radius/local/providers/applications.core/environments/env0?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/planes/radius/local/providers/applications.core/environments/env0?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/planes/radius/local/providers/Applications.Core/environments/env0?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/planes/radius/local/providers/Applications.Core/environments/env0?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/armrpc/frontend/defaultoperation/testdata/resource_requestheaders.json b/pkg/armrpc/frontend/defaultoperation/testdata/resource_requestheaders.json index 195144f1856..bb505ae353b 100644 --- a/pkg/armrpc/frontend/defaultoperation/testdata/resource_requestheaders.json +++ b/pkg/armrpc/frontend/defaultoperation/testdata/resource_requestheaders.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/env0?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/env0?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/env0?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/env0?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/armrpc/frontend/server/handler_test.go b/pkg/armrpc/frontend/server/handler_test.go index d052c0be400..17c2c9a1fa1 100644 --- a/pkg/armrpc/frontend/server/handler_test.go +++ b/pkg/armrpc/frontend/server/handler_test.go @@ -202,7 +202,7 @@ func Test_HandlerErrModelConversion(t *testing.T) { url string method string }{ - url: "/resourcegroups/testrg/providers/applications.core/environments?api-version=2022-03-15-privatepreview", + url: "/resourcegroups/testrg/providers/applications.core/environments?api-version=2023-10-01-preview", method: http.MethodGet, } @@ -225,7 +225,7 @@ func Test_HandlerErrInvalidModelConversion(t *testing.T) { url string method string }{ - url: "/resourcegroups/testrg/providers/applications.core/environments?api-version=2022-03-15-privatepreview", + url: "/resourcegroups/testrg/providers/applications.core/environments?api-version=2023-10-01-preview", method: http.MethodGet, } @@ -247,7 +247,7 @@ func Test_HandlerErrInternal(t *testing.T) { url string method string }{ - url: "/resourcegroups/testrg/providers/applications.core/environments?api-version=2022-03-15-privatepreview", + url: "/resourcegroups/testrg/providers/applications.core/environments?api-version=2023-10-01-preview", method: http.MethodGet, } diff --git a/pkg/armrpc/rest/results_test.go b/pkg/armrpc/rest/results_test.go index de9d80ab9b0..6e395a55de1 100644 --- a/pkg/armrpc/rest/results_test.go +++ b/pkg/armrpc/rest/results_test.go @@ -168,7 +168,7 @@ func TestGetAsyncLocationPath(t *testing.T) { "/planes/radius/local/resourceGroups/test-rg/providers/Applications.Core/containers/test-container-0", v1.LocationGlobal, operationID, - "2022-03-15-privatepreview", + "2023-10-01-preview", fmt.Sprintf("/planes/radius/local/providers/Applications.Core/locations/global/operationResults/%s", operationID.String()), fmt.Sprintf("/planes/radius/local/providers/Applications.Core/locations/global/operationStatuses/%s", operationID.String()), url.URL{ @@ -184,7 +184,7 @@ func TestGetAsyncLocationPath(t *testing.T) { "/planes/radius/local/resourceGroups/test-rg/providers/Applications.Core/containers/test-container-0", v1.LocationGlobal, operationID, - "2022-03-15-privatepreview", + "2023-10-01-preview", fmt.Sprintf("/planes/radius/local/providers/Applications.Core/locations/global/operationResults/%s", operationID.String()), fmt.Sprintf("/planes/radius/local/providers/Applications.Core/locations/global/operationStatuses/%s", operationID.String()), url.URL{ @@ -200,7 +200,7 @@ func TestGetAsyncLocationPath(t *testing.T) { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Applications.Core/containers/test-container-0", v1.LocationGlobal, operationID, - "2022-03-15-privatepreview", + "2023-10-01-preview", fmt.Sprintf("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Applications.Core/locations/global/operationResults/%s", operationID.String()), fmt.Sprintf("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Applications.Core/locations/global/operationStatuses/%s", operationID.String()), url.URL{ diff --git a/pkg/armrpc/rpctest/testdatamodel.go b/pkg/armrpc/rpctest/testdatamodel.go index bc6183bec06..158739cafde 100644 --- a/pkg/armrpc/rpctest/testdatamodel.go +++ b/pkg/armrpc/rpctest/testdatamodel.go @@ -24,7 +24,7 @@ import ( ) const ( - TestAPIVersion = "2022-03-15-privatepreview" + TestAPIVersion = "2023-10-01-preview" ) // TestResourceDataModel represents test resource. diff --git a/pkg/azure/clientv2/apiversion.go b/pkg/azure/clientv2/apiversion.go index 965f907d743..807830dbeba 100644 --- a/pkg/azure/clientv2/apiversion.go +++ b/pkg/azure/clientv2/apiversion.go @@ -17,10 +17,10 @@ limitations under the License. package clientv2 var ( - AccountsClientAPIVersion = "2022-09-01" - StateStoreClientAPIVersion = "2022-09-01" - ServiceBusClientAPIVersion = "2022-01-01-preview" - MSIClientAPIVersion = "2022-01-31-preview" + AccountsClientAPIVersion = "2023-10-01" + StateStoreClientAPIVersion = "2023-10-01" + ServiceBusClientAPIVersion = "2023-10-01-preview" + MSIClientAPIVersion = "2023-10-01-preview" RoleAssignmentClientAPIVersion = "2022-04-01" // https://github.com/Azure/azure-rest-api-specs/blob/main/specification/sql/resource-manager/readme.md diff --git a/pkg/cli/bicep/testdata/test-injectenvid.json b/pkg/cli/bicep/testdata/test-injectenvid.json index 2ff253ec5c4..28a4a5d865f 100644 --- a/pkg/cli/bicep/testdata/test-injectenvid.json +++ b/pkg/cli/bicep/testdata/test-injectenvid.json @@ -34,7 +34,7 @@ "resources": { "env": { "import": "radius", - "type": "Applications.Core/environments@2022-03-15-privatepreview", + "type": "Applications.Core/environments@2023-10-01-preview", "properties": { "name": "corerp-resources-application-env", "location": "[parameters('location')]", @@ -48,7 +48,7 @@ }, "app": { "import": "radius", - "type": "Applications.Core/applications@2022-03-15-privatepreview", + "type": "Applications.Core/applications@2023-10-01-preview", "properties": { "name": "corerp-resources-application-app", "location": "[parameters('location')]", diff --git a/pkg/cli/bicep/testdata/test-noenv.json b/pkg/cli/bicep/testdata/test-noenv.json index 6f1b8119539..d0cce18f210 100644 --- a/pkg/cli/bicep/testdata/test-noenv.json +++ b/pkg/cli/bicep/testdata/test-noenv.json @@ -28,7 +28,7 @@ "resources": { "env": { "import": "radius", - "type": "Applications.Core/environments@2022-03-15-privatepreview", + "type": "Applications.Core/environments@2023-10-01-preview", "properties": { "name": "corerp-resources-application-env", "location": "[parameters('location')]", @@ -42,7 +42,7 @@ }, "app": { "import": "radius", - "type": "Applications.Core/applications@2022-03-15-privatepreview", + "type": "Applications.Core/applications@2023-10-01-preview", "properties": { "name": "corerp-resources-application-app", "location": "[parameters('location')]", diff --git a/pkg/cli/clients/clients.go b/pkg/cli/clients/clients.go index 374c528ea51..01324665cb1 100644 --- a/pkg/cli/clients/clients.go +++ b/pkg/cli/clients/clients.go @@ -22,8 +22,8 @@ import ( "os" "github.com/radius-project/radius/pkg/cli/clients_new/generated" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" - ucp_v20220901privatepreview "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" + ucp_v20231001preview "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ucpresources "github.com/radius-project/radius/pkg/ucp/resources" ) @@ -163,10 +163,10 @@ type ApplicationsManagementClient interface { ListEnvironmentsAll(ctx context.Context) ([]corerp.EnvironmentResource, error) GetEnvDetails(ctx context.Context, envName string) (corerp.EnvironmentResource, error) DeleteEnv(ctx context.Context, envName string) (bool, error) - CreateUCPGroup(ctx context.Context, planeType string, planeName string, resourceGroupName string, resourceGroup ucp_v20220901privatepreview.ResourceGroupResource) error + CreateUCPGroup(ctx context.Context, planeType string, planeName string, resourceGroupName string, resourceGroup ucp_v20231001preview.ResourceGroupResource) error DeleteUCPGroup(ctx context.Context, planeType string, planeName string, resourceGroupName string) (bool, error) - ShowUCPGroup(ctx context.Context, planeType string, planeName string, resourceGroupName string) (ucp_v20220901privatepreview.ResourceGroupResource, error) - ListUCPGroup(ctx context.Context, planeType string, planeName string) ([]ucp_v20220901privatepreview.ResourceGroupResource, error) + ShowUCPGroup(ctx context.Context, planeType string, planeName string, resourceGroupName string) (ucp_v20231001preview.ResourceGroupResource, error) + ListUCPGroup(ctx context.Context, planeType string, planeName string) ([]ucp_v20231001preview.ResourceGroupResource, error) // ShowRecipe shows recipe details including list of all parameters for a given recipe registered to an environment ShowRecipe(ctx context.Context, environmentName string, recipe corerp.RecipeGetMetadata) (corerp.RecipeGetMetadataResponse, error) diff --git a/pkg/cli/clients/errors.go b/pkg/cli/clients/errors.go index aecd0be6277..d53f3da464c 100644 --- a/pkg/cli/clients/errors.go +++ b/pkg/cli/clients/errors.go @@ -22,7 +22,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" ) // Is404Error returns true if the error is a 404 payload from an autorest operation. @@ -44,7 +44,7 @@ func Is404Error(err error) bool { } // OK so it's not an ResponseError, can we turn it into an ErrorResponse? - errorResponse := v20220315privatepreview.ErrorResponse{} + errorResponse := v20231001preview.ErrorResponse{} marshallErr := json.Unmarshal([]byte(err.Error()), &errorResponse) if marshallErr != nil { return false diff --git a/pkg/cli/clients/management.go b/pkg/cli/clients/management.go index 25963b3b8bb..9ab8fd70240 100644 --- a/pkg/cli/clients/management.go +++ b/pkg/cli/clients/management.go @@ -28,9 +28,9 @@ import ( "github.com/radius-project/radius/pkg/azure/clientv2" aztoken "github.com/radius-project/radius/pkg/azure/tokencredentials" "github.com/radius-project/radius/pkg/cli/clients_new/generated" - corerpv20220315 "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerpv20220315 "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/portableresources" - ucpv20220901 "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucpv20220901 "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/resources" resources_radius "github.com/radius-project/radius/pkg/ucp/resources/radius" ) diff --git a/pkg/cli/clients/mock_applicationsclient.go b/pkg/cli/clients/mock_applicationsclient.go index 563fc52bc9a..aa586eb1f16 100644 --- a/pkg/cli/clients/mock_applicationsclient.go +++ b/pkg/cli/clients/mock_applicationsclient.go @@ -10,8 +10,8 @@ import ( gomock "github.com/golang/mock/gomock" generated "github.com/radius-project/radius/pkg/cli/clients_new/generated" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" - v20220901privatepreview "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" + v20231001preview0 "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ) // MockApplicationsManagementClient is a mock of ApplicationsManagementClient interface. @@ -38,7 +38,7 @@ func (m *MockApplicationsManagementClient) EXPECT() *MockApplicationsManagementC } // CreateApplicationIfNotFound mocks base method. -func (m *MockApplicationsManagementClient) CreateApplicationIfNotFound(arg0 context.Context, arg1 string, arg2 v20220315privatepreview.ApplicationResource) error { +func (m *MockApplicationsManagementClient) CreateApplicationIfNotFound(arg0 context.Context, arg1 string, arg2 v20231001preview.ApplicationResource) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateApplicationIfNotFound", arg0, arg1, arg2) ret0, _ := ret[0].(error) @@ -52,7 +52,7 @@ func (mr *MockApplicationsManagementClientMockRecorder) CreateApplicationIfNotFo } // CreateEnvironment mocks base method. -func (m *MockApplicationsManagementClient) CreateEnvironment(arg0 context.Context, arg1, arg2 string, arg3 *v20220315privatepreview.EnvironmentProperties) error { +func (m *MockApplicationsManagementClient) CreateEnvironment(arg0 context.Context, arg1, arg2 string, arg3 *v20231001preview.EnvironmentProperties) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateEnvironment", arg0, arg1, arg2, arg3) ret0, _ := ret[0].(error) @@ -66,7 +66,7 @@ func (mr *MockApplicationsManagementClientMockRecorder) CreateEnvironment(arg0, } // CreateOrUpdateApplication mocks base method. -func (m *MockApplicationsManagementClient) CreateOrUpdateApplication(arg0 context.Context, arg1 string, arg2 v20220315privatepreview.ApplicationResource) error { +func (m *MockApplicationsManagementClient) CreateOrUpdateApplication(arg0 context.Context, arg1 string, arg2 v20231001preview.ApplicationResource) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateOrUpdateApplication", arg0, arg1, arg2) ret0, _ := ret[0].(error) @@ -80,7 +80,7 @@ func (mr *MockApplicationsManagementClientMockRecorder) CreateOrUpdateApplicatio } // CreateUCPGroup mocks base method. -func (m *MockApplicationsManagementClient) CreateUCPGroup(arg0 context.Context, arg1, arg2, arg3 string, arg4 v20220901privatepreview.ResourceGroupResource) error { +func (m *MockApplicationsManagementClient) CreateUCPGroup(arg0 context.Context, arg1, arg2, arg3 string, arg4 v20231001preview0.ResourceGroupResource) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateUCPGroup", arg0, arg1, arg2, arg3, arg4) ret0, _ := ret[0].(error) @@ -154,10 +154,10 @@ func (mr *MockApplicationsManagementClientMockRecorder) DeleteUCPGroup(arg0, arg } // GetEnvDetails mocks base method. -func (m *MockApplicationsManagementClient) GetEnvDetails(arg0 context.Context, arg1 string) (v20220315privatepreview.EnvironmentResource, error) { +func (m *MockApplicationsManagementClient) GetEnvDetails(arg0 context.Context, arg1 string) (v20231001preview.EnvironmentResource, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetEnvDetails", arg0, arg1) - ret0, _ := ret[0].(v20220315privatepreview.EnvironmentResource) + ret0, _ := ret[0].(v20231001preview.EnvironmentResource) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -244,10 +244,10 @@ func (mr *MockApplicationsManagementClientMockRecorder) ListAllResourcesOfTypeIn } // ListApplications mocks base method. -func (m *MockApplicationsManagementClient) ListApplications(arg0 context.Context) ([]v20220315privatepreview.ApplicationResource, error) { +func (m *MockApplicationsManagementClient) ListApplications(arg0 context.Context) ([]v20231001preview.ApplicationResource, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListApplications", arg0) - ret0, _ := ret[0].([]v20220315privatepreview.ApplicationResource) + ret0, _ := ret[0].([]v20231001preview.ApplicationResource) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -259,10 +259,10 @@ func (mr *MockApplicationsManagementClientMockRecorder) ListApplications(arg0 in } // ListEnvironmentsAll mocks base method. -func (m *MockApplicationsManagementClient) ListEnvironmentsAll(arg0 context.Context) ([]v20220315privatepreview.EnvironmentResource, error) { +func (m *MockApplicationsManagementClient) ListEnvironmentsAll(arg0 context.Context) ([]v20231001preview.EnvironmentResource, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListEnvironmentsAll", arg0) - ret0, _ := ret[0].([]v20220315privatepreview.EnvironmentResource) + ret0, _ := ret[0].([]v20231001preview.EnvironmentResource) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -274,10 +274,10 @@ func (mr *MockApplicationsManagementClientMockRecorder) ListEnvironmentsAll(arg0 } // ListEnvironmentsInResourceGroup mocks base method. -func (m *MockApplicationsManagementClient) ListEnvironmentsInResourceGroup(arg0 context.Context) ([]v20220315privatepreview.EnvironmentResource, error) { +func (m *MockApplicationsManagementClient) ListEnvironmentsInResourceGroup(arg0 context.Context) ([]v20231001preview.EnvironmentResource, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListEnvironmentsInResourceGroup", arg0) - ret0, _ := ret[0].([]v20220315privatepreview.EnvironmentResource) + ret0, _ := ret[0].([]v20231001preview.EnvironmentResource) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -289,10 +289,10 @@ func (mr *MockApplicationsManagementClientMockRecorder) ListEnvironmentsInResour } // ListUCPGroup mocks base method. -func (m *MockApplicationsManagementClient) ListUCPGroup(arg0 context.Context, arg1, arg2 string) ([]v20220901privatepreview.ResourceGroupResource, error) { +func (m *MockApplicationsManagementClient) ListUCPGroup(arg0 context.Context, arg1, arg2 string) ([]v20231001preview0.ResourceGroupResource, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListUCPGroup", arg0, arg1, arg2) - ret0, _ := ret[0].([]v20220901privatepreview.ResourceGroupResource) + ret0, _ := ret[0].([]v20231001preview0.ResourceGroupResource) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -304,10 +304,10 @@ func (mr *MockApplicationsManagementClientMockRecorder) ListUCPGroup(arg0, arg1, } // ShowApplication mocks base method. -func (m *MockApplicationsManagementClient) ShowApplication(arg0 context.Context, arg1 string) (v20220315privatepreview.ApplicationResource, error) { +func (m *MockApplicationsManagementClient) ShowApplication(arg0 context.Context, arg1 string) (v20231001preview.ApplicationResource, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ShowApplication", arg0, arg1) - ret0, _ := ret[0].(v20220315privatepreview.ApplicationResource) + ret0, _ := ret[0].(v20231001preview.ApplicationResource) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -319,10 +319,10 @@ func (mr *MockApplicationsManagementClientMockRecorder) ShowApplication(arg0, ar } // ShowRecipe mocks base method. -func (m *MockApplicationsManagementClient) ShowRecipe(arg0 context.Context, arg1 string, arg2 v20220315privatepreview.RecipeGetMetadata) (v20220315privatepreview.RecipeGetMetadataResponse, error) { +func (m *MockApplicationsManagementClient) ShowRecipe(arg0 context.Context, arg1 string, arg2 v20231001preview.RecipeGetMetadata) (v20231001preview.RecipeGetMetadataResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ShowRecipe", arg0, arg1, arg2) - ret0, _ := ret[0].(v20220315privatepreview.RecipeGetMetadataResponse) + ret0, _ := ret[0].(v20231001preview.RecipeGetMetadataResponse) ret1, _ := ret[1].(error) return ret0, ret1 } @@ -349,10 +349,10 @@ func (mr *MockApplicationsManagementClientMockRecorder) ShowResource(arg0, arg1, } // ShowUCPGroup mocks base method. -func (m *MockApplicationsManagementClient) ShowUCPGroup(arg0 context.Context, arg1, arg2, arg3 string) (v20220901privatepreview.ResourceGroupResource, error) { +func (m *MockApplicationsManagementClient) ShowUCPGroup(arg0 context.Context, arg1, arg2, arg3 string) (v20231001preview0.ResourceGroupResource, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ShowUCPGroup", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(v20220901privatepreview.ResourceGroupResource) + ret0, _ := ret[0].(v20231001preview0.ResourceGroupResource) ret1, _ := ret[1].(error) return ret0, ret1 } diff --git a/pkg/cli/clients_new/README.md b/pkg/cli/clients_new/README.md index 57fd28d3d72..0321d42b921 100644 --- a/pkg/cli/clients_new/README.md +++ b/pkg/cli/clients_new/README.md @@ -12,11 +12,11 @@ The following are the settings for this using this API with AutoRest. ### Input OpenAPI specificiations -#### Tag: 2022-03-15-privatepreview +#### Tag: 2023-10-01-preview -These settings apply only when `--tag=2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=2023-10-01-preview` is specified on the command line. -```yaml $(tag) == '2022-03-15-privatepreview' +```yaml $(tag) == '2023-10-01-preview' input-file: - ../../../pkg/cli/swagger/genericResource.json modelerfour: @@ -38,11 +38,11 @@ azure-arm: true ### Output -#### Tag: 2022-03-15-privatepreview +#### Tag: 2023-10-01-preview -These settings apply only when `--tag=2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=2023-10-01-preview` is specified on the command line. -```yaml $(tag) == '2022-03-15-privatepreview' +```yaml $(tag) == '2023-10-01-preview' output-folder: ./generated ``` diff --git a/pkg/cli/clients_new/generated/zz_generated_genericresources_client.go b/pkg/cli/clients_new/generated/zz_generated_genericresources_client.go index 947fbeae4d3..3cdee937d40 100644 --- a/pkg/cli/clients_new/generated/zz_generated_genericresources_client.go +++ b/pkg/cli/clients_new/generated/zz_generated_genericresources_client.go @@ -59,7 +59,7 @@ pl: pl, // CreateOrUpdate - Creates or updates a Generic resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // resourceName - The name of the generic resource // genericResourceParameters - generic resource create parameters // options - GenericResourcesClientCreateOrUpdateOptions contains the optional parameters for the GenericResourcesClient.CreateOrUpdate @@ -93,7 +93,7 @@ func (client *GenericResourcesClient) createOrUpdateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, genericResourceParameters) @@ -110,7 +110,7 @@ func (client *GenericResourcesClient) createOrUpdateHandleResponse(resp *http.Re // BeginDelete - Deletes an existing Generic resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // resourceName - The name of the generic resource // options - GenericResourcesClientBeginDeleteOptions contains the optional parameters for the GenericResourcesClient.BeginDelete // method. @@ -130,7 +130,7 @@ func (client *GenericResourcesClient) BeginDelete(ctx context.Context, resourceN // Delete - Deletes an existing Generic resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *GenericResourcesClient) deleteOperation(ctx context.Context, resourceName string, options *GenericResourcesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceName, options) if err != nil { @@ -160,7 +160,7 @@ func (client *GenericResourcesClient) deleteCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -168,7 +168,7 @@ func (client *GenericResourcesClient) deleteCreateRequest(ctx context.Context, r // Get - Retrieves information about a generic resource with the name given of the type given within the root scope // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // resourceName - The name of the generic resource // options - GenericResourcesClientGetOptions contains the optional parameters for the GenericResourcesClient.Get method. func (client *GenericResourcesClient) Get(ctx context.Context, resourceName string, options *GenericResourcesClientGetOptions) (GenericResourcesClientGetResponse, error) { @@ -200,7 +200,7 @@ func (client *GenericResourcesClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -216,7 +216,7 @@ func (client *GenericResourcesClient) getHandleResponse(resp *http.Response) (Ge } // NewListByRootScopePager - Lists information about all resources of the given resource type in the given root scope -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // options - GenericResourcesClientListByRootScopeOptions contains the optional parameters for the GenericResourcesClient.ListByRootScope // method. func (client *GenericResourcesClient) NewListByRootScopePager(options *GenericResourcesClientListByRootScopeOptions) (*runtime.Pager[GenericResourcesClientListByRootScopeResponse]) { @@ -257,7 +257,7 @@ func (client *GenericResourcesClient) listByRootScopeCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/pkg/cli/cmd/app/appswitch/switch_test.go b/pkg/cli/cmd/app/appswitch/switch_test.go index fc371a7473d..708dafaf08e 100644 --- a/pkg/cli/cmd/app/appswitch/switch_test.go +++ b/pkg/cli/cmd/app/appswitch/switch_test.go @@ -25,7 +25,7 @@ import ( "github.com/radius-project/radius/pkg/cli/clients" "github.com/radius-project/radius/pkg/cli/config" "github.com/radius-project/radius/pkg/cli/framework" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/test/radcli" ) diff --git a/pkg/cli/cmd/app/connections/compute.go b/pkg/cli/cmd/app/connections/compute.go index 9ef8eed3f02..bd8c3c41815 100644 --- a/pkg/cli/cmd/app/connections/compute.go +++ b/pkg/cli/cmd/app/connections/compute.go @@ -22,7 +22,7 @@ import ( "github.com/go-openapi/jsonpointer" "github.com/radius-project/radius/pkg/cli/clients_new/generated" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/resourcemodel" "github.com/radius-project/radius/pkg/ucp/resources" ) @@ -326,7 +326,7 @@ func connectionsFromAPIData(resource generated.GenericResource) []connectionEntr entries := []connectionEntry{} for name, connection := range connections { - data := v20220315privatepreview.ConnectionProperties{} + data := v20231001preview.ConnectionProperties{} err := toStronglyTypedData(connection, &data) if err != nil { entries = append(entries, connectionEntry{ diff --git a/pkg/cli/cmd/app/connections/connections_test.go b/pkg/cli/cmd/app/connections/connections_test.go index 1927ec188a5..31f1f8802eb 100644 --- a/pkg/cli/cmd/app/connections/connections_test.go +++ b/pkg/cli/cmd/app/connections/connections_test.go @@ -18,7 +18,7 @@ import ( "github.com/radius-project/radius/pkg/cli/framework" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" @@ -29,11 +29,11 @@ func Test_CommandValidation(t *testing.T) { } func Test_Validate(t *testing.T) { - application := v20220315privatepreview.ApplicationResource{ + application := v20231001preview.ApplicationResource{ Name: to.Ptr("test-app"), ID: to.Ptr(applicationResourceID), Type: to.Ptr("Applications.Core/applications"), - Properties: &v20220315privatepreview.ApplicationProperties{ + Properties: &v20231001preview.ApplicationProperties{ Environment: to.Ptr(environmentResourceID), }, } @@ -93,7 +93,7 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). ShowApplication(gomock.Any(), "test-app"). - Return(v20220315privatepreview.ApplicationResource{}, &azcore.ResponseError{ErrorCode: v1.CodeNotFound}). + Return(v20231001preview.ApplicationResource{}, &azcore.ResponseError{ErrorCode: v1.CodeNotFound}). Times(1) }, }, diff --git a/pkg/cli/cmd/app/list/list_test.go b/pkg/cli/cmd/app/list/list_test.go index 6d13b4daec0..dd4e51e3060 100644 --- a/pkg/cli/cmd/app/list/list_test.go +++ b/pkg/cli/cmd/app/list/list_test.go @@ -27,7 +27,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" @@ -84,7 +84,7 @@ func Test_Run(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - applications := []v20220315privatepreview.ApplicationResource{ + applications := []v20231001preview.ApplicationResource{ { Name: to.Ptr("A"), }, diff --git a/pkg/cli/cmd/app/show/show_test.go b/pkg/cli/cmd/app/show/show_test.go index bdf645ca10b..59500712e40 100644 --- a/pkg/cli/cmd/app/show/show_test.go +++ b/pkg/cli/cmd/app/show/show_test.go @@ -28,7 +28,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" @@ -95,7 +95,7 @@ func Test_Run(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - application := v20220315privatepreview.ApplicationResource{ + application := v20231001preview.ApplicationResource{ Name: to.Ptr("test-app"), } @@ -143,7 +143,7 @@ func Test_Run(t *testing.T) { appManagementClient := clients.NewMockApplicationsManagementClient(ctrl) appManagementClient.EXPECT(). ShowApplication(gomock.Any(), "test-app"). - Return(v20220315privatepreview.ApplicationResource{}, radcli.Create404Error()). + Return(v20231001preview.ApplicationResource{}, radcli.Create404Error()). Times(1) workspace := &workspaces.Workspace{ diff --git a/pkg/cli/cmd/app/status/status_test.go b/pkg/cli/cmd/app/status/status_test.go index 075e9d51c78..5894d20a85b 100644 --- a/pkg/cli/cmd/app/status/status_test.go +++ b/pkg/cli/cmd/app/status/status_test.go @@ -29,7 +29,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/pkg/ucp/resources" "github.com/radius-project/radius/test/radcli" @@ -97,7 +97,7 @@ func Test_Run(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - application := v20220315privatepreview.ApplicationResource{ + application := v20231001preview.ApplicationResource{ Name: to.Ptr("test-app"), } @@ -203,7 +203,7 @@ func Test_Run(t *testing.T) { appManagementClient := clients.NewMockApplicationsManagementClient(ctrl) appManagementClient.EXPECT(). ShowApplication(gomock.Any(), "test-app"). - Return(v20220315privatepreview.ApplicationResource{}, radcli.Create404Error()). + Return(v20231001preview.ApplicationResource{}, radcli.Create404Error()). Times(1) workspace := &workspaces.Workspace{ diff --git a/pkg/cli/cmd/credential/register/aws/aws.go b/pkg/cli/cmd/credential/register/aws/aws.go index d2ee2cf37d1..244ab9fb678 100644 --- a/pkg/cli/cmd/credential/register/aws/aws.go +++ b/pkg/cli/cmd/credential/register/aws/aws.go @@ -30,7 +30,7 @@ import ( "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" "github.com/radius-project/radius/pkg/to" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/spf13/cobra" ) diff --git a/pkg/cli/cmd/credential/register/aws/aws_test.go b/pkg/cli/cmd/credential/register/aws/aws_test.go index b9ce45a16aa..e142e50c065 100644 --- a/pkg/cli/cmd/credential/register/aws/aws_test.go +++ b/pkg/cli/cmd/credential/register/aws/aws_test.go @@ -29,7 +29,7 @@ import ( "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" "github.com/radius-project/radius/pkg/to" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" ) diff --git a/pkg/cli/cmd/credential/register/azure/azure.go b/pkg/cli/cmd/credential/register/azure/azure.go index 986f9129c41..4d1d1e8bac8 100644 --- a/pkg/cli/cmd/credential/register/azure/azure.go +++ b/pkg/cli/cmd/credential/register/azure/azure.go @@ -31,7 +31,7 @@ import ( "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" "github.com/radius-project/radius/pkg/to" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/spf13/cobra" ) diff --git a/pkg/cli/cmd/credential/register/azure/azure_test.go b/pkg/cli/cmd/credential/register/azure/azure_test.go index 37ce67558ab..1ff1121b1f8 100644 --- a/pkg/cli/cmd/credential/register/azure/azure_test.go +++ b/pkg/cli/cmd/credential/register/azure/azure_test.go @@ -33,7 +33,7 @@ import ( "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" "github.com/radius-project/radius/pkg/to" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" diff --git a/pkg/cli/cmd/deploy/deploy.go b/pkg/cli/cmd/deploy/deploy.go index 60e50421b97..cb746e3d314 100644 --- a/pkg/cli/cmd/deploy/deploy.go +++ b/pkg/cli/cmd/deploy/deploy.go @@ -31,7 +31,7 @@ import ( "github.com/radius-project/radius/pkg/cli/framework" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/spf13/cobra" ) @@ -243,9 +243,9 @@ func (r *Runner) Run(ctx context.Context) error { return err } - err = client.CreateApplicationIfNotFound(ctx, r.ApplicationName, v20220315privatepreview.ApplicationResource{ + err = client.CreateApplicationIfNotFound(ctx, r.ApplicationName, v20231001preview.ApplicationResource{ Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220315privatepreview.ApplicationProperties{ + Properties: &v20231001preview.ApplicationProperties{ Environment: &r.Workspace.Environment, }, }) diff --git a/pkg/cli/cmd/deploy/deploy_test.go b/pkg/cli/cmd/deploy/deploy_test.go index cb4350a8652..43d6b9f0253 100644 --- a/pkg/cli/cmd/deploy/deploy_test.go +++ b/pkg/cli/cmd/deploy/deploy_test.go @@ -30,7 +30,7 @@ import ( "github.com/radius-project/radius/pkg/cli/framework" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" @@ -54,7 +54,7 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), radcli.TestEnvironmentName). - Return(v20220315privatepreview.EnvironmentResource{}, nil). + Return(v20231001preview.EnvironmentResource{}, nil). Times(1) }, }, @@ -69,7 +69,7 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), radcli.TestEnvironmentName). - Return(v20220315privatepreview.EnvironmentResource{}, nil). + Return(v20231001preview.EnvironmentResource{}, nil). Times(1) }, @@ -85,10 +85,10 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), "prod"). - Return(v20220315privatepreview.EnvironmentResource{ - Properties: &v20220315privatepreview.EnvironmentProperties{ - Providers: &v20220315privatepreview.Providers{ - Azure: &v20220315privatepreview.ProvidersAzure{ + Return(v20231001preview.EnvironmentResource{ + Properties: &v20231001preview.EnvironmentProperties{ + Providers: &v20231001preview.Providers{ + Azure: &v20231001preview.ProvidersAzure{ Scope: to.Ptr("/subscriptions/test-subId/resourceGroups/test-rg"), }, }, @@ -109,7 +109,7 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), "prod"). - Return(v20220315privatepreview.EnvironmentResource{}, radcli.Create404Error()). + Return(v20231001preview.EnvironmentResource{}, radcli.Create404Error()). Times(1) }, @@ -125,7 +125,7 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), "prod"). - Return(v20220315privatepreview.EnvironmentResource{}, nil). + Return(v20231001preview.EnvironmentResource{}, nil). Times(1) }, ValidateCallback: func(t *testing.T, obj framework.Runner) { @@ -154,7 +154,7 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), "prod"). - Return(v20220315privatepreview.EnvironmentResource{}, nil). + Return(v20231001preview.EnvironmentResource{}, nil). Times(1) }, }, @@ -169,7 +169,7 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), "prod"). - Return(v20220315privatepreview.EnvironmentResource{}, nil). + Return(v20231001preview.EnvironmentResource{}, nil). Times(1) }, }, diff --git a/pkg/cli/cmd/env/create/create.go b/pkg/cli/cmd/env/create/create.go index 2b6fb04641e..5853c019d35 100644 --- a/pkg/cli/cmd/env/create/create.go +++ b/pkg/cli/cmd/env/create/create.go @@ -19,7 +19,7 @@ package create import ( "context" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/spf13/cobra" diff --git a/pkg/cli/cmd/env/create/create_test.go b/pkg/cli/cmd/env/create/create_test.go index bb44cbc3835..87e9f25e063 100644 --- a/pkg/cli/cmd/env/create/create_test.go +++ b/pkg/cli/cmd/env/create/create_test.go @@ -31,9 +31,9 @@ import ( "github.com/radius-project/radius/pkg/cli/framework" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" ) @@ -44,7 +44,7 @@ func Test_CommandValidation(t *testing.T) { func Test_Validate(t *testing.T) { configWithWorkspace := radcli.LoadConfigWithWorkspace(t) - testResourceGroup := v20220901privatepreview.ResourceGroupResource{ + testResourceGroup := v20231001preview.ResourceGroupResource{ Name: to.Ptr("test-resource-group"), } @@ -259,12 +259,12 @@ func Test_Run(t *testing.T) { }) } -func createMocksWithValidCommand(namespaceClient *namespace.MockInterface, appManagementClient *clients.MockApplicationsManagementClient, testResourceGroup v20220901privatepreview.ResourceGroupResource) { +func createMocksWithValidCommand(namespaceClient *namespace.MockInterface, appManagementClient *clients.MockApplicationsManagementClient, testResourceGroup v20231001preview.ResourceGroupResource) { createShowUCPSuccess(appManagementClient, testResourceGroup) createValidateNamespaceSuccess(namespaceClient) } -func createMocksWithInvalidResourceGroup(namespaceClient *namespace.MockInterface, appManagementClient *clients.MockApplicationsManagementClient, testResourceGroup v20220901privatepreview.ResourceGroupResource) { +func createMocksWithInvalidResourceGroup(namespaceClient *namespace.MockInterface, appManagementClient *clients.MockApplicationsManagementClient, testResourceGroup v20231001preview.ResourceGroupResource) { createShowUCPSuccess(appManagementClient, testResourceGroup) createValidateNamespaceError(namespaceClient) } @@ -281,13 +281,13 @@ func createValidateNamespaceError(namespaceClient *namespace.MockInterface) { Return(fmt.Errorf("failed to create namespace")).Times(1) } -func createShowUCPSuccess(appManagementClient *clients.MockApplicationsManagementClient, testResourceGroup v20220901privatepreview.ResourceGroupResource) { +func createShowUCPSuccess(appManagementClient *clients.MockApplicationsManagementClient, testResourceGroup v20231001preview.ResourceGroupResource) { appManagementClient.EXPECT(). ShowUCPGroup(gomock.Any(), gomock.Any(), gomock.Any(), "test-resource-group"). Return(testResourceGroup, nil).Times(1) } -func createShowUCPError(appManagementClient *clients.MockApplicationsManagementClient, testResourceGroup v20220901privatepreview.ResourceGroupResource) { +func createShowUCPError(appManagementClient *clients.MockApplicationsManagementClient, testResourceGroup v20231001preview.ResourceGroupResource) { appManagementClient.EXPECT(). ShowUCPGroup(gomock.Any(), gomock.Any(), gomock.Any(), "invalidresourcegroup"). Return(testResourceGroup, clierrors.Message("The resource group %q could not be found.", "invalidresourcegroup")).Times(1) diff --git a/pkg/cli/cmd/env/envswitch/switch_test.go b/pkg/cli/cmd/env/envswitch/switch_test.go index f4b417dadfa..9d9f6ac63d5 100644 --- a/pkg/cli/cmd/env/envswitch/switch_test.go +++ b/pkg/cli/cmd/env/envswitch/switch_test.go @@ -24,7 +24,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" "github.com/radius-project/radius/pkg/cli/clients" "github.com/radius-project/radius/pkg/cli/framework" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/test/radcli" ) diff --git a/pkg/cli/cmd/env/list/list_test.go b/pkg/cli/cmd/env/list/list_test.go index 0317be4259e..5a0909d284d 100644 --- a/pkg/cli/cmd/env/list/list_test.go +++ b/pkg/cli/cmd/env/list/list_test.go @@ -29,7 +29,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/test/radcli" ) @@ -86,11 +86,11 @@ func Test_Run(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - environments := []v20220315privatepreview.EnvironmentResource{ - v20220315privatepreview.EnvironmentResource{ + environments := []v20231001preview.EnvironmentResource{ + v20231001preview.EnvironmentResource{ Name: to.Ptr("A"), }, - v20220315privatepreview.EnvironmentResource{ + v20231001preview.EnvironmentResource{ Name: to.Ptr("B"), }, } diff --git a/pkg/cli/cmd/env/show/show_test.go b/pkg/cli/cmd/env/show/show_test.go index 06670efa2ce..1c687d8fcf0 100644 --- a/pkg/cli/cmd/env/show/show_test.go +++ b/pkg/cli/cmd/env/show/show_test.go @@ -30,7 +30,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/test/radcli" ) @@ -97,7 +97,7 @@ func Test_Show(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - environment := v20220315privatepreview.EnvironmentResource{ + environment := v20231001preview.EnvironmentResource{ Name: to.Ptr("test-env"), } @@ -145,7 +145,7 @@ func Test_Show(t *testing.T) { appManagementClient := clients.NewMockApplicationsManagementClient(ctrl) appManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), "test-env"). - Return(v20220315privatepreview.EnvironmentResource{}, radcli.Create404Error()). + Return(v20231001preview.EnvironmentResource{}, radcli.Create404Error()). Times(1) workspace := &workspaces.Workspace{ diff --git a/pkg/cli/cmd/env/update/update.go b/pkg/cli/cmd/env/update/update.go index 4a1416776de..cfea46c676d 100644 --- a/pkg/cli/cmd/env/update/update.go +++ b/pkg/cli/cmd/env/update/update.go @@ -30,7 +30,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/spf13/cobra" ) diff --git a/pkg/cli/cmd/env/update/update_test.go b/pkg/cli/cmd/env/update/update_test.go index 8cff5dbf2e1..c32b908a711 100644 --- a/pkg/cli/cmd/env/update/update_test.go +++ b/pkg/cli/cmd/env/update/update_test.go @@ -32,7 +32,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" diff --git a/pkg/cli/cmd/group/create/create.go b/pkg/cli/cmd/group/create/create.go index 216ae87133b..36bcbb0273c 100644 --- a/pkg/cli/cmd/group/create/create.go +++ b/pkg/cli/cmd/group/create/create.go @@ -30,7 +30,7 @@ import ( "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ) // NewCommand creates an instance of the command and runner for the `rad group create` command. @@ -121,7 +121,7 @@ func (r *Runner) Run(ctx context.Context) error { r.Output.LogInfo("creating resource group %q in workspace %q...\n", r.UCPResourceGroupName, r.Workspace.Name) - err = client.CreateUCPGroup(ctx, "radius", "local", r.UCPResourceGroupName, v20220901privatepreview.ResourceGroupResource{ + err = client.CreateUCPGroup(ctx, "radius", "local", r.UCPResourceGroupName, v20231001preview.ResourceGroupResource{ Location: to.Ptr(v1.LocationGlobal), }) if err != nil { diff --git a/pkg/cli/cmd/group/groupswitch/switch_test.go b/pkg/cli/cmd/group/groupswitch/switch_test.go index fb124d43c2e..3a673a860ab 100644 --- a/pkg/cli/cmd/group/groupswitch/switch_test.go +++ b/pkg/cli/cmd/group/groupswitch/switch_test.go @@ -29,7 +29,7 @@ import ( "github.com/radius-project/radius/pkg/cli/connections" "github.com/radius-project/radius/pkg/cli/framework" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" @@ -131,7 +131,7 @@ func Test_Run(t *testing.T) { }, } - testResourceGroup := v20220901privatepreview.ResourceGroupResource{} + testResourceGroup := v20231001preview.ResourceGroupResource{} ctrl := gomock.NewController(t) defer ctrl.Finish() @@ -190,7 +190,7 @@ func Test_Run(t *testing.T) { config.SetConfigFile(configPath) require.NoError(t, err) - testResourceGroup := v20220901privatepreview.ResourceGroupResource{} + testResourceGroup := v20231001preview.ResourceGroupResource{} ctrl := gomock.NewController(t) defer ctrl.Finish() diff --git a/pkg/cli/cmd/group/list/list_test.go b/pkg/cli/cmd/group/list/list_test.go index fbb75f8793a..f79c1f299a4 100644 --- a/pkg/cli/cmd/group/list/list_test.go +++ b/pkg/cli/cmd/group/list/list_test.go @@ -26,7 +26,7 @@ import ( "github.com/radius-project/radius/pkg/cli/framework" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" ) @@ -86,7 +86,7 @@ func Test_Run(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - resourceGroups := []v20220901privatepreview.ResourceGroupResource{ + resourceGroups := []v20231001preview.ResourceGroupResource{ radcli.CreateResourceGroup("rg1"), radcli.CreateResourceGroup("rg2"), } diff --git a/pkg/cli/cmd/group/show/show_test.go b/pkg/cli/cmd/group/show/show_test.go index afed1409d41..c4064ca9147 100644 --- a/pkg/cli/cmd/group/show/show_test.go +++ b/pkg/cli/cmd/group/show/show_test.go @@ -28,7 +28,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" @@ -79,7 +79,7 @@ func Test_Run(t *testing.T) { id := "/planes/radius/local/resourceGroups/testrg" name := "testrg" - testResourceGroup := v20220901privatepreview.ResourceGroupResource{ + testResourceGroup := v20231001preview.ResourceGroupResource{ ID: &id, Name: &name, } @@ -110,7 +110,7 @@ func Test_Run(t *testing.T) { err := runner.Run(context.Background()) require.NoError(t, err) - resourceGroup := v20220901privatepreview.ResourceGroupResource{ + resourceGroup := v20231001preview.ResourceGroupResource{ ID: &id, Name: &runner.UCPResourceGroupName, } diff --git a/pkg/cli/cmd/radinit/environment.go b/pkg/cli/cmd/radinit/environment.go index 08ced4db854..3d7cf4638c5 100644 --- a/pkg/cli/cmd/radinit/environment.go +++ b/pkg/cli/cmd/radinit/environment.go @@ -23,7 +23,7 @@ import ( "github.com/radius-project/radius/pkg/cli/prompt" "github.com/radius-project/radius/pkg/cli/workspaces" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" ) const ( diff --git a/pkg/cli/cmd/radinit/environment_test.go b/pkg/cli/cmd/radinit/environment_test.go index 760aca9ba7f..d573633d9b1 100644 --- a/pkg/cli/cmd/radinit/environment_test.go +++ b/pkg/cli/cmd/radinit/environment_test.go @@ -25,7 +25,7 @@ import ( "github.com/radius-project/radius/pkg/cli/connections" "github.com/radius-project/radius/pkg/cli/prompt" "github.com/radius-project/radius/pkg/cli/workspaces" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/stretchr/testify/require" ) diff --git a/pkg/cli/cmd/radinit/init.go b/pkg/cli/cmd/radinit/init.go index dccff63d8d7..2ecc09c6d48 100644 --- a/pkg/cli/cmd/radinit/init.go +++ b/pkg/cli/cmd/radinit/init.go @@ -37,9 +37,9 @@ import ( "github.com/radius-project/radius/pkg/cli/prompt" "github.com/radius-project/radius/pkg/cli/setup" "github.com/radius-project/radius/pkg/cli/workspaces" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/spf13/cobra" ) diff --git a/pkg/cli/cmd/radinit/init_test.go b/pkg/cli/cmd/radinit/init_test.go index 609c58ec71e..42dd1e3a97a 100644 --- a/pkg/cli/cmd/radinit/init_test.go +++ b/pkg/cli/cmd/radinit/init_test.go @@ -44,12 +44,12 @@ import ( "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/prompt" "github.com/radius-project/radius/pkg/cli/workspaces" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/recipes" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/test/radcli" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ) func Test_CommandValidation(t *testing.T) { diff --git a/pkg/cli/cmd/radinit/mock_devrecipeclient.go b/pkg/cli/cmd/radinit/mock_devrecipeclient.go index f7ae50b1d1b..97972616f07 100644 --- a/pkg/cli/cmd/radinit/mock_devrecipeclient.go +++ b/pkg/cli/cmd/radinit/mock_devrecipeclient.go @@ -9,7 +9,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" ) // MockDevRecipeClient is a mock of DevRecipeClient interface. @@ -36,10 +36,10 @@ func (m *MockDevRecipeClient) EXPECT() *MockDevRecipeClientMockRecorder { } // GetDevRecipes mocks base method. -func (m *MockDevRecipeClient) GetDevRecipes(arg0 context.Context) (map[string]map[string]v20220315privatepreview.RecipePropertiesClassification, error) { +func (m *MockDevRecipeClient) GetDevRecipes(arg0 context.Context) (map[string]map[string]v20231001preview.RecipePropertiesClassification, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDevRecipes", arg0) - ret0, _ := ret[0].(map[string]map[string]v20220315privatepreview.RecipePropertiesClassification) + ret0, _ := ret[0].(map[string]map[string]v20231001preview.RecipePropertiesClassification) ret1, _ := ret[1].(error) return ret0, ret1 } diff --git a/pkg/cli/cmd/radinit/recipe.go b/pkg/cli/cmd/radinit/recipe.go index 822be224f78..e79c92d0bb4 100644 --- a/pkg/cli/cmd/radinit/recipe.go +++ b/pkg/cli/cmd/radinit/recipe.go @@ -21,7 +21,7 @@ import ( "fmt" "strings" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/portableresources" recipe_types "github.com/radius-project/radius/pkg/recipes" "github.com/radius-project/radius/pkg/to" diff --git a/pkg/cli/cmd/radinit/recipe_test.go b/pkg/cli/cmd/radinit/recipe_test.go index 0c65b43ea2e..63a327f23cc 100644 --- a/pkg/cli/cmd/radinit/recipe_test.go +++ b/pkg/cli/cmd/radinit/recipe_test.go @@ -21,7 +21,7 @@ import ( reflect "reflect" "testing" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/recipes" "github.com/radius-project/radius/pkg/to" "github.com/stretchr/testify/require" diff --git a/pkg/cli/cmd/recipe/list/list.go b/pkg/cli/cmd/recipe/list/list.go index fd5797c0c1c..9534790d7bc 100644 --- a/pkg/cli/cmd/recipe/list/list.go +++ b/pkg/cli/cmd/recipe/list/list.go @@ -28,7 +28,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/spf13/cobra" ) diff --git a/pkg/cli/cmd/recipe/list/list_test.go b/pkg/cli/cmd/recipe/list/list_test.go index 95da164d7c2..17a6e9172dd 100644 --- a/pkg/cli/cmd/recipe/list/list_test.go +++ b/pkg/cli/cmd/recipe/list/list_test.go @@ -29,7 +29,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/portableresources" "github.com/radius-project/radius/pkg/recipes" "github.com/radius-project/radius/pkg/to" @@ -79,19 +79,19 @@ func Test_Run(t *testing.T) { t.Run("List recipes linked to the environment - Success", func(t *testing.T) { ctrl := gomock.NewController(t) - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220315privatepreview.EnvironmentProperties{ - Recipes: map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + Properties: &v20231001preview.EnvironmentProperties{ + Recipes: map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "cosmosDB": &v20220315privatepreview.BicepRecipeProperties{ + "cosmosDB": &v20231001preview.BicepRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), }, - "cosmosDB-terraform": &v20220315privatepreview.TerraformRecipeProperties{ + "cosmosDB-terraform": &v20231001preview.TerraformRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindTerraform), TemplatePath: to.Ptr("Azure/cosmosdb/azurerm"), TemplateVersion: to.Ptr("1.1.0"), diff --git a/pkg/cli/cmd/recipe/register/register.go b/pkg/cli/cmd/recipe/register/register.go index cd49b946db6..02a2c5afafc 100644 --- a/pkg/cli/cmd/recipe/register/register.go +++ b/pkg/cli/cmd/recipe/register/register.go @@ -28,7 +28,7 @@ import ( "github.com/radius-project/radius/pkg/cli/framework" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/recipes" "github.com/spf13/cobra" ) diff --git a/pkg/cli/cmd/recipe/register/register_test.go b/pkg/cli/cmd/recipe/register/register_test.go index ac66ccf7bc9..7fee81f6c6f 100644 --- a/pkg/cli/cmd/recipe/register/register_test.go +++ b/pkg/cli/cmd/recipe/register/register_test.go @@ -31,7 +31,7 @@ import ( "github.com/radius-project/radius/pkg/cli/framework" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/portableresources" "github.com/radius-project/radius/pkg/recipes" "github.com/radius-project/radius/pkg/to" @@ -134,23 +134,23 @@ func Test_Run(t *testing.T) { t.Run("Register recipe Success", func(t *testing.T) { ctrl := gomock.NewController(t) - testRecipes := map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + testRecipes := map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "cosmosDB": &v20220315privatepreview.BicepRecipeProperties{ + "cosmosDB": &v20231001preview.BicepRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), }, }, } - testEnvProperties := &v20220315privatepreview.EnvironmentProperties{ + testEnvProperties := &v20231001preview.EnvironmentProperties{ Recipes: testRecipes, - Compute: &v20220315privatepreview.KubernetesCompute{ + Compute: &v20231001preview.KubernetesCompute{ Namespace: to.Ptr("default"), }, } - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), @@ -197,22 +197,22 @@ func Test_Run(t *testing.T) { t.Run("Register recipe Failure", func(t *testing.T) { ctrl := gomock.NewController(t) - testRecipes := map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + testRecipes := map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "cosmosDB": &v20220315privatepreview.BicepRecipeProperties{ + "cosmosDB": &v20231001preview.BicepRecipeProperties{ TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), }, }, } - testEnvProperties := &v20220315privatepreview.EnvironmentProperties{ + testEnvProperties := &v20231001preview.EnvironmentProperties{ Recipes: testRecipes, - Compute: &v20220315privatepreview.KubernetesCompute{ + Compute: &v20231001preview.KubernetesCompute{ Namespace: to.Ptr("default"), }, } - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), @@ -261,7 +261,7 @@ func Test_Run(t *testing.T) { appManagementClient := clients.NewMockApplicationsManagementClient(ctrl) appManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), gomock.Any()). - Return(v20220315privatepreview.EnvironmentResource{}, expectedError). + Return(v20231001preview.EnvironmentResource{}, expectedError). Times(1) outputSink := &output.MockOutput{} @@ -283,24 +283,24 @@ func Test_Run(t *testing.T) { t.Run("Register recipe with parameters", func(t *testing.T) { ctrl := gomock.NewController(t) - testEnvProperties := &v20220315privatepreview.EnvironmentProperties{ - Recipes: map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + testEnvProperties := &v20231001preview.EnvironmentProperties{ + Recipes: map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "cosmosDB": &v20220315privatepreview.BicepRecipeProperties{ + "cosmosDB": &v20231001preview.BicepRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), Parameters: map[string]any{"throughput": 400}, }, }, }, - Compute: &v20220315privatepreview.KubernetesCompute{ + Compute: &v20231001preview.KubernetesCompute{ Kind: to.Ptr("kubernetes"), Namespace: to.Ptr("default"), ResourceID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind/compute/kubernetes"), }, } - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), @@ -346,10 +346,10 @@ func Test_Run(t *testing.T) { t.Run("Register recipe with no namespace", func(t *testing.T) { ctrl := gomock.NewController(t) - testEnvProperties := &v20220315privatepreview.EnvironmentProperties{ - Recipes: map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + testEnvProperties := &v20231001preview.EnvironmentProperties{ + Recipes: map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "cosmosDB": &v20220315privatepreview.BicepRecipeProperties{ + "cosmosDB": &v20231001preview.BicepRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), }, @@ -357,7 +357,7 @@ func Test_Run(t *testing.T) { }, } - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), @@ -402,13 +402,13 @@ func Test_Run(t *testing.T) { t.Run("Register the first recipe", func(t *testing.T) { ctrl := gomock.NewController(t) - testEnvProperties := &v20220315privatepreview.EnvironmentProperties{ - Compute: &v20220315privatepreview.KubernetesCompute{ + testEnvProperties := &v20231001preview.EnvironmentProperties{ + Compute: &v20231001preview.KubernetesCompute{ Namespace: to.Ptr("default"), }, } - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), diff --git a/pkg/cli/cmd/recipe/show/show.go b/pkg/cli/cmd/recipe/show/show.go index b051cd00501..94946bcd1f2 100644 --- a/pkg/cli/cmd/recipe/show/show.go +++ b/pkg/cli/cmd/recipe/show/show.go @@ -29,7 +29,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/spf13/cobra" ) @@ -152,7 +152,7 @@ func (r *Runner) Run(ctx context.Context) error { return err } - recipeDetails, err := client.ShowRecipe(ctx, r.Workspace.Environment, v20220315privatepreview.RecipeGetMetadata{Name: &r.RecipeName, ResourceType: &r.ResourceType}) + recipeDetails, err := client.ShowRecipe(ctx, r.Workspace.Environment, v20231001preview.RecipeGetMetadata{Name: &r.RecipeName, ResourceType: &r.ResourceType}) if err != nil { return err } diff --git a/pkg/cli/cmd/recipe/show/show_test.go b/pkg/cli/cmd/recipe/show/show_test.go index 903ba993814..e1318e4649e 100644 --- a/pkg/cli/cmd/recipe/show/show_test.go +++ b/pkg/cli/cmd/recipe/show/show_test.go @@ -29,7 +29,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/portableresources" "github.com/radius-project/radius/pkg/recipes" "github.com/radius-project/radius/pkg/to" @@ -96,7 +96,7 @@ func Test_Validate(t *testing.T) { func Test_Run(t *testing.T) { t.Run("Show bicep recipe details - Success", func(t *testing.T) { ctrl := gomock.NewController(t) - envRecipe := v20220315privatepreview.RecipeGetMetadataResponse{ + envRecipe := v20231001preview.RecipeGetMetadataResponse{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), Parameters: map[string]any{ @@ -171,7 +171,7 @@ func Test_Run(t *testing.T) { t.Run("Show terraformn recipe details - Success", func(t *testing.T) { ctrl := gomock.NewController(t) - envRecipe := v20220315privatepreview.RecipeGetMetadataResponse{ + envRecipe := v20231001preview.RecipeGetMetadataResponse{ TemplateKind: to.Ptr(recipes.TemplateKindTerraform), TemplatePath: to.Ptr("Azure/cosmosdb/azurerm"), TemplateVersion: to.Ptr("1.1.0"), diff --git a/pkg/cli/cmd/recipe/unregister/unregister_test.go b/pkg/cli/cmd/recipe/unregister/unregister_test.go index e7b93022025..938fbcd4ca7 100644 --- a/pkg/cli/cmd/recipe/unregister/unregister_test.go +++ b/pkg/cli/cmd/recipe/unregister/unregister_test.go @@ -31,7 +31,7 @@ import ( "github.com/radius-project/radius/pkg/cli/framework" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/portableresources" "github.com/radius-project/radius/pkg/recipes" "github.com/radius-project/radius/pkg/to" @@ -99,21 +99,21 @@ func Test_Run(t *testing.T) { t.Run("Success", func(t *testing.T) { ctrl := gomock.NewController(t) - testEnvProperties := &v20220315privatepreview.EnvironmentProperties{ - Recipes: map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + testEnvProperties := &v20231001preview.EnvironmentProperties{ + Recipes: map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "cosmosDB": &v20220315privatepreview.BicepRecipeProperties{ + "cosmosDB": &v20231001preview.BicepRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), }, }, }, - Compute: &v20220315privatepreview.KubernetesCompute{ + Compute: &v20231001preview.KubernetesCompute{ Namespace: to.Ptr("default"), }, } - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), @@ -157,20 +157,20 @@ func Test_Run(t *testing.T) { t.Run("Failure", func(t *testing.T) { ctrl := gomock.NewController(t) - testEnvProperties := &v20220315privatepreview.EnvironmentProperties{ - Recipes: map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + testEnvProperties := &v20231001preview.EnvironmentProperties{ + Recipes: map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "cosmosDB": &v20220315privatepreview.BicepRecipeProperties{ + "cosmosDB": &v20231001preview.BicepRecipeProperties{ TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), }, }, }, - Compute: &v20220315privatepreview.KubernetesCompute{ + Compute: &v20231001preview.KubernetesCompute{ Namespace: to.Ptr("default"), }, } - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), @@ -213,10 +213,10 @@ func Test_Run(t *testing.T) { t.Run("No Namespace", func(t *testing.T) { ctrl := gomock.NewController(t) - testEnvProperties := &v20220315privatepreview.EnvironmentProperties{ - Recipes: map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + testEnvProperties := &v20231001preview.EnvironmentProperties{ + Recipes: map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "cosmosDB": &v20220315privatepreview.BicepRecipeProperties{ + "cosmosDB": &v20231001preview.BicepRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), }, @@ -224,7 +224,7 @@ func Test_Run(t *testing.T) { }, } - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), @@ -268,15 +268,15 @@ func Test_Run(t *testing.T) { t.Run("Unregister recipe that doesn't exist in the environment", func(t *testing.T) { ctrl := gomock.NewController(t) - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220315privatepreview.EnvironmentProperties{ - Recipes: map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + Properties: &v20231001preview.EnvironmentProperties{ + Recipes: map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "cosmosDB": &v20220315privatepreview.BicepRecipeProperties{ + "cosmosDB": &v20231001preview.BicepRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), }, @@ -306,15 +306,15 @@ func Test_Run(t *testing.T) { t.Run("Unregister recipe with resourceType doesn't exist in the environment", func(t *testing.T) { ctrl := gomock.NewController(t) - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220315privatepreview.EnvironmentProperties{ - Recipes: map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + Properties: &v20231001preview.EnvironmentProperties{ + Recipes: map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "testResource": &v20220315privatepreview.BicepRecipeProperties{ + "testResource": &v20231001preview.BicepRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), }, @@ -345,12 +345,12 @@ func Test_Run(t *testing.T) { t.Run("Unregister recipe with no recipes added to the environment", func(t *testing.T) { ctrl := gomock.NewController(t) - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220315privatepreview.EnvironmentProperties{}, + Properties: &v20231001preview.EnvironmentProperties{}, } appManagementClient := clients.NewMockApplicationsManagementClient(ctrl) @@ -375,27 +375,27 @@ func Test_Run(t *testing.T) { t.Run("Unregister recipe with same name for different resource types.", func(t *testing.T) { ctrl := gomock.NewController(t) - testEnvProperties := &v20220315privatepreview.EnvironmentProperties{ - Recipes: map[string]map[string]v20220315privatepreview.RecipePropertiesClassification{ + testEnvProperties := &v20231001preview.EnvironmentProperties{ + Recipes: map[string]map[string]v20231001preview.RecipePropertiesClassification{ portableresources.MongoDatabasesResourceType: { - "testResource": &v20220315privatepreview.BicepRecipeProperties{ + "testResource": &v20231001preview.BicepRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/mongodatabases:v1"), }, }, portableresources.RedisCachesResourceType: { - "testResource": &v20220315privatepreview.BicepRecipeProperties{ + "testResource": &v20231001preview.BicepRecipeProperties{ TemplateKind: to.Ptr(recipes.TemplateKindBicep), TemplatePath: to.Ptr("testpublicrecipe.azurecr.io/bicep/modules/rediscaches:v1"), }, }, }, - Compute: &v20220315privatepreview.KubernetesCompute{ + Compute: &v20231001preview.KubernetesCompute{ Namespace: to.Ptr("default"), }, } - envResource := v20220315privatepreview.EnvironmentResource{ + envResource := v20231001preview.EnvironmentResource{ ID: to.Ptr("/planes/radius/local/resourcegroups/kind-kind/providers/applications.core/environments/kind-kind"), Name: to.Ptr("kind-kind"), Type: to.Ptr("applications.core/environments"), diff --git a/pkg/cli/cmd/resource/list/list_test.go b/pkg/cli/cmd/resource/list/list_test.go index dba2e4822f6..4254c9ee617 100644 --- a/pkg/cli/cmd/resource/list/list_test.go +++ b/pkg/cli/cmd/resource/list/list_test.go @@ -29,7 +29,7 @@ import ( "github.com/radius-project/radius/pkg/cli/objectformats" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" ) @@ -107,7 +107,7 @@ func Test_Run(t *testing.T) { appManagementClient := clients.NewMockApplicationsManagementClient(ctrl) appManagementClient.EXPECT(). ShowApplication(gomock.Any(), "test-app"). - Return(v20220315privatepreview.ApplicationResource{}, radcli.Create404Error()).Times(1) + Return(v20231001preview.ApplicationResource{}, radcli.Create404Error()).Times(1) outputSink := &output.MockOutput{} @@ -136,7 +136,7 @@ func Test_Run(t *testing.T) { appManagementClient := clients.NewMockApplicationsManagementClient(ctrl) appManagementClient.EXPECT(). ShowApplication(gomock.Any(), "test-app"). - Return(v20220315privatepreview.ApplicationResource{}, nil).Times(1) + Return(v20231001preview.ApplicationResource{}, nil).Times(1) appManagementClient.EXPECT(). ListAllResourcesOfTypeInApplication(gomock.Any(), "test-app", "containers"). Return(resources, nil).Times(1) diff --git a/pkg/cli/cmd/run/run.go b/pkg/cli/cmd/run/run.go index f211628cf20..95ac9b2de91 100644 --- a/pkg/cli/cmd/run/run.go +++ b/pkg/cli/cmd/run/run.go @@ -29,7 +29,7 @@ import ( "github.com/radius-project/radius/pkg/cli/framework" "github.com/radius-project/radius/pkg/cli/kubernetes/logstream" "github.com/radius-project/radius/pkg/cli/kubernetes/portforward" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/spf13/cobra" "golang.org/x/sync/errgroup" @@ -149,7 +149,7 @@ func (r *Runner) Run(ctx context.Context) error { namespace := "" appStatus := app.Properties.Status if appStatus != nil && appStatus.Compute != nil { - kube, ok := appStatus.Compute.(*v20220315privatepreview.KubernetesCompute) + kube, ok := appStatus.Compute.(*v20231001preview.KubernetesCompute) if ok && kube.Namespace != nil { namespace = to.String(kube.Namespace) } diff --git a/pkg/cli/cmd/run/run_test.go b/pkg/cli/cmd/run/run_test.go index 9e537c388fc..38507681c1c 100644 --- a/pkg/cli/cmd/run/run_test.go +++ b/pkg/cli/cmd/run/run_test.go @@ -35,7 +35,7 @@ import ( "github.com/radius-project/radius/pkg/cli/kubernetes/portforward" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/test/radcli" "github.com/radius-project/radius/test/testcontext" @@ -65,7 +65,7 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), "prod"). - Return(v20220315privatepreview.EnvironmentResource{}, nil). + Return(v20231001preview.EnvironmentResource{}, nil). Times(1) }, }, @@ -85,7 +85,7 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), "prod"). - Return(v20220315privatepreview.EnvironmentResource{}, nil). + Return(v20231001preview.EnvironmentResource{}, nil). Times(1) }, }, @@ -100,7 +100,7 @@ func Test_Validate(t *testing.T) { ConfigureMocks: func(mocks radcli.ValidateMocks) { mocks.ApplicationManagementClient.EXPECT(). GetEnvDetails(gomock.Any(), radcli.TestEnvironmentName). - Return(v20220315privatepreview.EnvironmentResource{}, nil). + Return(v20231001preview.EnvironmentResource{}, nil). Times(1) }, }, @@ -188,10 +188,10 @@ func Test_Run(t *testing.T) { }). Times(1) - app := v20220315privatepreview.ApplicationResource{ - Properties: &v20220315privatepreview.ApplicationProperties{ - Status: &v20220315privatepreview.ResourceStatus{ - Compute: &v20220315privatepreview.KubernetesCompute{ + app := v20231001preview.ApplicationResource{ + Properties: &v20231001preview.ApplicationProperties{ + Status: &v20231001preview.ResourceStatus{ + Compute: &v20231001preview.KubernetesCompute{ Kind: to.Ptr("kubernetes"), Namespace: to.Ptr("test-namespace-app"), }, diff --git a/pkg/cli/cmd/utils.go b/pkg/cli/cmd/utils.go index 52637fbdffa..9e8834f15ad 100644 --- a/pkg/cli/cmd/utils.go +++ b/pkg/cli/cmd/utils.go @@ -24,7 +24,7 @@ import ( "github.com/radius-project/radius/pkg/cli/azure" "github.com/radius-project/radius/pkg/cli/clients" "github.com/radius-project/radius/pkg/cli/clierrors" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" ) diff --git a/pkg/cli/cmd/utils_test.go b/pkg/cli/cmd/utils_test.go index 91626abd9ca..8f1de51d446 100644 --- a/pkg/cli/cmd/utils_test.go +++ b/pkg/cli/cmd/utils_test.go @@ -23,7 +23,7 @@ import ( "github.com/radius-project/radius/pkg/cli/aws" "github.com/radius-project/radius/pkg/cli/azure" "github.com/radius-project/radius/pkg/cli/clierrors" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/stretchr/testify/require" ) diff --git a/pkg/cli/cmd/workspace/create/create_test.go b/pkg/cli/cmd/workspace/create/create_test.go index 0f66e55ba04..46938e279ff 100644 --- a/pkg/cli/cmd/workspace/create/create_test.go +++ b/pkg/cli/cmd/workspace/create/create_test.go @@ -26,8 +26,8 @@ import ( "github.com/radius-project/radius/pkg/cli/helm" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/workspaces" - corerp "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + corerp "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/test/radcli" "github.com/stretchr/testify/require" "k8s.io/client-go/tools/clientcmd/api" diff --git a/pkg/cli/connections/factory.go b/pkg/cli/connections/factory.go index afb24877b55..95fb1e45a68 100644 --- a/pkg/cli/connections/factory.go +++ b/pkg/cli/connections/factory.go @@ -32,7 +32,7 @@ import ( "github.com/radius-project/radius/pkg/cli/workspaces" "github.com/radius-project/radius/pkg/sdk" sdkclients "github.com/radius-project/radius/pkg/sdk/clients" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/resources" resources_radius "github.com/radius-project/radius/pkg/ucp/resources/radius" ) @@ -208,12 +208,12 @@ func (*impl) CreateCredentialManagementClient(ctx context.Context, workspace wor clientOptions := sdk.NewClientOptions(connection) - azureCredentialClient, err := v20220901privatepreview.NewAzureCredentialsClient(&aztoken.AnonymousCredential{}, clientOptions) + azureCredentialClient, err := v20231001preview.NewAzureCredentialsClient(&aztoken.AnonymousCredential{}, clientOptions) if err != nil { return nil, err } - awsCredentialClient, err := v20220901privatepreview.NewAwsCredentialsClient(&aztoken.AnonymousCredential{}, clientOptions) + awsCredentialClient, err := v20231001preview.NewAwsCredentialsClient(&aztoken.AnonymousCredential{}, clientOptions) if err != nil { return nil, err } diff --git a/pkg/cli/credential/aws_credential_management.go b/pkg/cli/credential/aws_credential_management.go index bec1bec6325..9ac48354b15 100644 --- a/pkg/cli/credential/aws_credential_management.go +++ b/pkg/cli/credential/aws_credential_management.go @@ -23,7 +23,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/radius-project/radius/pkg/cli/clierrors" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ) //go:generate mockgen -destination=./mock_aws_credential_management.go -package=credential -self_package github.com/radius-project/radius/pkg/cli/credential github.com/radius-project/radius/pkg/cli/credential AWSCredentialManagementClientInterface diff --git a/pkg/cli/credential/azure_credential_management.go b/pkg/cli/credential/azure_credential_management.go index f17c63a5593..0a31d79e3f8 100644 --- a/pkg/cli/credential/azure_credential_management.go +++ b/pkg/cli/credential/azure_credential_management.go @@ -23,7 +23,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/radius-project/radius/pkg/cli/clierrors" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ) //go:generate mockgen -destination=./mock_azure_credential_management.go -package=credential -self_package github.com/radius-project/radius/pkg/cli/credential github.com/radius-project/radius/pkg/cli/credential AzureCredentialManagementClientInterface diff --git a/pkg/cli/credential/credential_management.go b/pkg/cli/credential/credential_management.go index 5c53ab54183..66d03ff08f6 100644 --- a/pkg/cli/credential/credential_management.go +++ b/pkg/cli/credential/credential_management.go @@ -21,7 +21,7 @@ import ( "strings" "github.com/radius-project/radius/pkg/cli/clients" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ) const ( diff --git a/pkg/cli/credential/credential_management_test.go b/pkg/cli/credential/credential_management_test.go index 894094a9153..a396886c863 100644 --- a/pkg/cli/credential/credential_management_test.go +++ b/pkg/cli/credential/credential_management_test.go @@ -26,7 +26,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" "github.com/radius-project/radius/pkg/to" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/test/testcontext" ) diff --git a/pkg/cli/credential/mock_aws_credential_management.go b/pkg/cli/credential/mock_aws_credential_management.go index bdb3993892b..711c0333f9e 100644 --- a/pkg/cli/credential/mock_aws_credential_management.go +++ b/pkg/cli/credential/mock_aws_credential_management.go @@ -9,7 +9,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - v20220901privatepreview "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ) // MockAWSCredentialManagementClientInterface is a mock of AWSCredentialManagementClientInterface interface. @@ -81,7 +81,7 @@ func (mr *MockAWSCredentialManagementClientInterfaceMockRecorder) List(arg0 inte } // Put mocks base method. -func (m *MockAWSCredentialManagementClientInterface) Put(arg0 context.Context, arg1 v20220901privatepreview.AwsCredentialResource) error { +func (m *MockAWSCredentialManagementClientInterface) Put(arg0 context.Context, arg1 v20231001preview.AwsCredentialResource) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Put", arg0, arg1) ret0, _ := ret[0].(error) diff --git a/pkg/cli/credential/mock_azure_credential_management.go b/pkg/cli/credential/mock_azure_credential_management.go index 55f15185f13..7b08c71f6b2 100644 --- a/pkg/cli/credential/mock_azure_credential_management.go +++ b/pkg/cli/credential/mock_azure_credential_management.go @@ -9,7 +9,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - v20220901privatepreview "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ) // MockAzureCredentialManagementClientInterface is a mock of AzureCredentialManagementClientInterface interface. @@ -81,7 +81,7 @@ func (mr *MockAzureCredentialManagementClientInterfaceMockRecorder) List(arg0 in } // Put mocks base method. -func (m *MockAzureCredentialManagementClientInterface) Put(arg0 context.Context, arg1 v20220901privatepreview.AzureCredentialResource) error { +func (m *MockAzureCredentialManagementClientInterface) Put(arg0 context.Context, arg1 v20231001preview.AzureCredentialResource) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Put", arg0, arg1) ret0, _ := ret[0].(error) diff --git a/pkg/cli/credential/mock_credentialmanagementclient.go b/pkg/cli/credential/mock_credentialmanagementclient.go index cb0dd27f703..c3dc5f63f6f 100644 --- a/pkg/cli/credential/mock_credentialmanagementclient.go +++ b/pkg/cli/credential/mock_credentialmanagementclient.go @@ -9,7 +9,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - v20220901privatepreview "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ) // MockCredentialManagementClient is a mock of CredentialManagementClient interface. @@ -81,7 +81,7 @@ func (mr *MockCredentialManagementClientMockRecorder) List(arg0 interface{}) *go } // PutAWS mocks base method. -func (m *MockCredentialManagementClient) PutAWS(arg0 context.Context, arg1 v20220901privatepreview.AwsCredentialResource) error { +func (m *MockCredentialManagementClient) PutAWS(arg0 context.Context, arg1 v20231001preview.AwsCredentialResource) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PutAWS", arg0, arg1) ret0, _ := ret[0].(error) @@ -95,7 +95,7 @@ func (mr *MockCredentialManagementClientMockRecorder) PutAWS(arg0, arg1 interfac } // PutAzure mocks base method. -func (m *MockCredentialManagementClient) PutAzure(arg0 context.Context, arg1 v20220901privatepreview.AzureCredentialResource) error { +func (m *MockCredentialManagementClient) PutAzure(arg0 context.Context, arg1 v20231001preview.AzureCredentialResource) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PutAzure", arg0, arg1) ret0, _ := ret[0].(error) diff --git a/pkg/cli/objectformats/objectformats_test.go b/pkg/cli/objectformats/objectformats_test.go index c210affd98a..fcac1342100 100644 --- a/pkg/cli/objectformats/objectformats_test.go +++ b/pkg/cli/objectformats/objectformats_test.go @@ -21,13 +21,13 @@ import ( "testing" "github.com/radius-project/radius/pkg/cli/output" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/to" "github.com/stretchr/testify/require" ) func Test_GenericEnvTableFormat(t *testing.T) { - obj := v20220315privatepreview.EnvironmentResource{ + obj := v20231001preview.EnvironmentResource{ Name: to.Ptr("test_env_resource"), } diff --git a/pkg/cli/setup/application.go b/pkg/cli/setup/application.go index ca8919f0d49..89e050a61ea 100644 --- a/pkg/cli/setup/application.go +++ b/pkg/cli/setup/application.go @@ -26,7 +26,7 @@ const ( appBicepTemplate = `import radius as radius param application string -resource demo 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource demo 'Applications.Core/containers@2023-10-01-preview' = { name: 'demo' properties: { application: application diff --git a/pkg/cli/swagger/genericResource.json b/pkg/cli/swagger/genericResource.json index c47786d5232..8a5e69f7a4f 100644 --- a/pkg/cli/swagger/genericResource.json +++ b/pkg/cli/swagger/genericResource.json @@ -3,7 +3,7 @@ "info": { "title": "Generic Resource Management APIs", "description": "REST APIs for Generic Resource", - "version": "2022-03-15-privatepreview" + "version": "2023-10-01-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/pkg/corerp/README.md b/pkg/corerp/README.md index 2389c31e395..91fbb677b5d 100644 --- a/pkg/corerp/README.md +++ b/pkg/corerp/README.md @@ -30,7 +30,7 @@ 1. To create or update an environment, here is an example curl command: ``` - curl --location --request PUT 'http://localhost:8080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/env0?api-version=2022-03-15-privatepreview' \ + curl --location --request PUT 'http://localhost:8080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/env0?api-version=2023-10-01-preview' \ --header 'X-Ms-Arm-Resource-System-Data: {"lastModifiedBy":"fake@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T18:54:52.6857175Z"}' \ --header 'Content-Type: application/json' \ --data-raw '{ @@ -46,7 +46,7 @@ 1. To get information about an environment, here is an example curl command: ``` - curl --location --request GET 'http://localhost:8080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/?api-version=2022-03-15-privatepreview' + curl --location --request GET 'http://localhost:8080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/?api-version=2023-10-01-preview' ``` 1. You should also be able to see all changes in Cosmos DB diff --git a/pkg/corerp/api/README.md b/pkg/corerp/api/README.md index f0899717bbc..153e8f557bb 100644 --- a/pkg/corerp/api/README.md +++ b/pkg/corerp/api/README.md @@ -15,7 +15,7 @@ npm install -g autorest 1. Add api version tags and openapi file below in this README.md 2. Run autorest. ```bash -autorest README.md --tag=core-2022-03-15-privatepreview +autorest README.md --tag=core-2023-10-01-preview ``` 3. Create or modify the corresponding datamodels in [datamodel](../datamodel/) 4. Add the converter between versioned model and datamodel in [converter](../datamodel/converter/) @@ -28,13 +28,13 @@ The following are the settings for this using this API with AutoRest. ### Input OpenAPI specificiations -#### Tag: core-2022-03-15-privatepreview +#### Tag: core-2023-10-01-preview -These settings apply only when `--tag=core-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=core-2023-10-01-preview` is specified on the command line. -```yaml $(tag) == 'core-2022-03-15-privatepreview' +```yaml $(tag) == 'core-2023-10-01-preview' input-file: - - ../../../swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/openapi.json + - ../../../swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/openapi.json modelerfour: treat-type-object-as-anything: false @@ -55,10 +55,10 @@ azure-arm: true ### Output -#### Tag: core-2022-03-15-privatepreview +#### Tag: core-2023-10-01-preview -These settings apply only when `--tag=core-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=core-2023-10-01-preview` is specified on the command line. -```yaml $(tag) == 'core-2022-03-15-privatepreview' -output-folder: ./v20220315privatepreview +```yaml $(tag) == 'core-2023-10-01-preview' +output-folder: ./v20231001preview ``` diff --git a/pkg/corerp/api/v20220315privatepreview/application_conversion.go b/pkg/corerp/api/v20231001preview/application_conversion.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/application_conversion.go rename to pkg/corerp/api/v20231001preview/application_conversion.go index 704b255de01..9c6a0be9a9c 100644 --- a/pkg/corerp/api/v20220315privatepreview/application_conversion.go +++ b/pkg/corerp/api/v20231001preview/application_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/corerp/api/v20220315privatepreview/application_conversion_test.go b/pkg/corerp/api/v20231001preview/application_conversion_test.go similarity index 97% rename from pkg/corerp/api/v20220315privatepreview/application_conversion_test.go rename to pkg/corerp/api/v20231001preview/application_conversion_test.go index 5c1f0073fe1..96e0fd60ebe 100644 --- a/pkg/corerp/api/v20220315privatepreview/application_conversion_test.go +++ b/pkg/corerp/api/v20231001preview/application_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -70,7 +70,7 @@ func TestApplicationConvertVersionedToDataModel(t *testing.T) { require.Equal(t, "app0", ct.Name) require.Equal(t, "Applications.Core/applications", ct.Type) require.Equal(t, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup/providers/Applications.Core/environments/env0", ct.Properties.Environment) - require.Equal(t, "2022-03-15-privatepreview", ct.InternalMetadata.UpdatedAPIVersion) + require.Equal(t, "2023-10-01-preview", ct.InternalMetadata.UpdatedAPIVersion) if tt.emptyExt { require.Equal(t, getTestKubernetesEmptyMetadataExtensions(t), ct.Properties.Extensions) } else { diff --git a/pkg/corerp/api/v20220315privatepreview/container_conversion.go b/pkg/corerp/api/v20231001preview/container_conversion.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/container_conversion.go rename to pkg/corerp/api/v20231001preview/container_conversion.go index c1c7fcf993d..a4c5938cc67 100644 --- a/pkg/corerp/api/v20220315privatepreview/container_conversion.go +++ b/pkg/corerp/api/v20231001preview/container_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/corerp/api/v20220315privatepreview/container_conversion_test.go b/pkg/corerp/api/v20231001preview/container_conversion_test.go similarity index 98% rename from pkg/corerp/api/v20220315privatepreview/container_conversion_test.go rename to pkg/corerp/api/v20231001preview/container_conversion_test.go index 207f0e53991..955a2cad177 100644 --- a/pkg/corerp/api/v20220315privatepreview/container_conversion_test.go +++ b/pkg/corerp/api/v20231001preview/container_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -91,7 +91,7 @@ func TestContainerConvertVersionedToDataModel(t *testing.T) { require.Equal(t, to.Ptr[float32](5), tcpProbe.TCP.InitialDelaySeconds) require.Equal(t, int32(8080), tcpProbe.TCP.ContainerPort) require.Equal(t, []rpv1.OutputResource(nil), ct.Properties.Status.OutputResources) - require.Equal(t, "2022-03-15-privatepreview", ct.InternalMetadata.UpdatedAPIVersion) + require.Equal(t, "2023-10-01-preview", ct.InternalMetadata.UpdatedAPIVersion) require.Equal(t, 3, len(ct.Properties.Extensions)) require.Equal(t, []string{"/bin/sh"}, ct.Properties.Container.Command) @@ -214,7 +214,7 @@ func TestContainerConvertVersionedToDataModelEmptyProtocol(t *testing.T) { require.Equal(t, "read", val.IAM.Roles[0]) require.Equal(t, "radius.azurecr.io/webapptutorial-todoapp", ct.Properties.Container.Image) require.Equal(t, []rpv1.OutputResource(nil), ct.Properties.Status.OutputResources) - require.Equal(t, "2022-03-15-privatepreview", ct.InternalMetadata.UpdatedAPIVersion) + require.Equal(t, "2023-10-01-preview", ct.InternalMetadata.UpdatedAPIVersion) var commands []string var args []string diff --git a/pkg/corerp/api/v20220315privatepreview/environment_conversion.go b/pkg/corerp/api/v20231001preview/environment_conversion.go similarity index 98% rename from pkg/corerp/api/v20220315privatepreview/environment_conversion.go rename to pkg/corerp/api/v20231001preview/environment_conversion.go index 51101bb4a9c..b11418af1b1 100644 --- a/pkg/corerp/api/v20220315privatepreview/environment_conversion.go +++ b/pkg/corerp/api/v20231001preview/environment_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "fmt" @@ -249,7 +249,7 @@ func fromEnvironmentComputeKind(kind rpv1.EnvironmentComputeKind) *string { case rpv1.KubernetesComputeKind: k = EnvironmentComputeKindKubernetes default: - k = EnvironmentComputeKindKubernetes // 2022-03-15-privatepreview supports only kubernetes. + k = EnvironmentComputeKindKubernetes // 2023-10-01-preview supports only kubernetes. } return &k diff --git a/pkg/corerp/api/v20220315privatepreview/environment_conversion_test.go b/pkg/corerp/api/v20231001preview/environment_conversion_test.go similarity index 97% rename from pkg/corerp/api/v20220315privatepreview/environment_conversion_test.go rename to pkg/corerp/api/v20231001preview/environment_conversion_test.go index 42545b43f9d..64b9ca7d62c 100644 --- a/pkg/corerp/api/v20220315privatepreview/environment_conversion_test.go +++ b/pkg/corerp/api/v20231001preview/environment_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -50,8 +50,8 @@ func TestConvertVersionedToDataModel(t *testing.T) { Tags: map[string]string{}, }, InternalMetadata: v1.InternalMetadata{ - CreatedAPIVersion: "2022-03-15-privatepreview", - UpdatedAPIVersion: "2022-03-15-privatepreview", + CreatedAPIVersion: "2023-10-01-preview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, }, @@ -96,8 +96,8 @@ func TestConvertVersionedToDataModel(t *testing.T) { Tags: map[string]string{}, }, InternalMetadata: v1.InternalMetadata{ - CreatedAPIVersion: "2022-03-15-privatepreview", - UpdatedAPIVersion: "2022-03-15-privatepreview", + CreatedAPIVersion: "2023-10-01-preview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, }, @@ -166,8 +166,8 @@ func TestConvertVersionedToDataModel(t *testing.T) { Tags: map[string]string{}, }, InternalMetadata: v1.InternalMetadata{ - CreatedAPIVersion: "2022-03-15-privatepreview", - UpdatedAPIVersion: "2022-03-15-privatepreview", + CreatedAPIVersion: "2023-10-01-preview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, }, @@ -208,8 +208,8 @@ func TestConvertVersionedToDataModel(t *testing.T) { Tags: map[string]string{}, }, InternalMetadata: v1.InternalMetadata{ - CreatedAPIVersion: "2022-03-15-privatepreview", - UpdatedAPIVersion: "2022-03-15-privatepreview", + CreatedAPIVersion: "2023-10-01-preview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, }, diff --git a/pkg/corerp/api/v20220315privatepreview/environmentrecipeproperties_conversion.go b/pkg/corerp/api/v20231001preview/environmentrecipeproperties_conversion.go similarity index 98% rename from pkg/corerp/api/v20220315privatepreview/environmentrecipeproperties_conversion.go rename to pkg/corerp/api/v20231001preview/environmentrecipeproperties_conversion.go index e2dd4c990f7..dcd9f7920e5 100644 --- a/pkg/corerp/api/v20220315privatepreview/environmentrecipeproperties_conversion.go +++ b/pkg/corerp/api/v20231001preview/environmentrecipeproperties_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/corerp/api/v20220315privatepreview/environmentrecipeproperties_conversion_test.go b/pkg/corerp/api/v20231001preview/environmentrecipeproperties_conversion_test.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/environmentrecipeproperties_conversion_test.go rename to pkg/corerp/api/v20231001preview/environmentrecipeproperties_conversion_test.go index 6f9fa96f6d0..fe8f616755f 100644 --- a/pkg/corerp/api/v20220315privatepreview/environmentrecipeproperties_conversion_test.go +++ b/pkg/corerp/api/v20231001preview/environmentrecipeproperties_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/corerp/api/v20220315privatepreview/extender_conversion.go b/pkg/corerp/api/v20231001preview/extender_conversion.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/extender_conversion.go rename to pkg/corerp/api/v20231001preview/extender_conversion.go index f5153f9b918..e1429f559ac 100644 --- a/pkg/corerp/api/v20220315privatepreview/extender_conversion.go +++ b/pkg/corerp/api/v20231001preview/extender_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/corerp/api/v20220315privatepreview/extender_conversion_test.go b/pkg/corerp/api/v20231001preview/extender_conversion_test.go similarity index 97% rename from pkg/corerp/api/v20220315privatepreview/extender_conversion_test.go rename to pkg/corerp/api/v20231001preview/extender_conversion_test.go index e308f266fe1..c426b0aeebe 100644 --- a/pkg/corerp/api/v20220315privatepreview/extender_conversion_test.go +++ b/pkg/corerp/api/v20231001preview/extender_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -49,7 +49,7 @@ func TestExtender_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, @@ -79,7 +79,7 @@ func TestExtender_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, @@ -108,7 +108,7 @@ func TestExtender_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, diff --git a/pkg/corerp/api/v20220315privatepreview/gateway_conversion.go b/pkg/corerp/api/v20231001preview/gateway_conversion.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/gateway_conversion.go rename to pkg/corerp/api/v20231001preview/gateway_conversion.go index 237c3f63003..ef22dd7d40f 100644 --- a/pkg/corerp/api/v20220315privatepreview/gateway_conversion.go +++ b/pkg/corerp/api/v20231001preview/gateway_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/corerp/api/v20220315privatepreview/gateway_conversion_test.go b/pkg/corerp/api/v20231001preview/gateway_conversion_test.go similarity index 97% rename from pkg/corerp/api/v20220315privatepreview/gateway_conversion_test.go rename to pkg/corerp/api/v20231001preview/gateway_conversion_test.go index 521df4a3704..bdbc3bccd1a 100644 --- a/pkg/corerp/api/v20220315privatepreview/gateway_conversion_test.go +++ b/pkg/corerp/api/v20231001preview/gateway_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -53,7 +53,7 @@ func TestGatewayConvertVersionedToDataModel(t *testing.T) { require.Equal(t, "myreplaceprefix", gw.Properties.Routes[0].ReplacePrefix) require.Equal(t, "http://myprefix.myapp.mydomain.com", gw.Properties.URL) require.Equal(t, []rpv1.OutputResource(nil), gw.Properties.Status.OutputResources) - require.Equal(t, "2022-03-15-privatepreview", gw.InternalMetadata.UpdatedAPIVersion) + require.Equal(t, "2023-10-01-preview", gw.InternalMetadata.UpdatedAPIVersion) } func TestGatewayConvertDataModelToVersioned(t *testing.T) { @@ -105,7 +105,7 @@ func TestGatewaySSLPassthroughConvertVersionedToDataModel(t *testing.T) { require.Equal(t, "myreplaceprefix", gw.Properties.Routes[0].ReplacePrefix) require.Equal(t, "http://myprefix.myapp.mydomain.com", gw.Properties.URL) require.Equal(t, []rpv1.OutputResource(nil), gw.Properties.Status.OutputResources) - require.Equal(t, "2022-03-15-privatepreview", gw.InternalMetadata.UpdatedAPIVersion) + require.Equal(t, "2023-10-01-preview", gw.InternalMetadata.UpdatedAPIVersion) require.Equal(t, true, gw.Properties.TLS.SSLPassthrough) } @@ -160,7 +160,7 @@ func TestGatewayTLSTerminationConvertVersionedToDataModel(t *testing.T) { require.Equal(t, "myreplaceprefix", gw.Properties.Routes[0].ReplacePrefix) require.Equal(t, "http://myprefix.myapp.mydomain.com", gw.Properties.URL) require.Equal(t, []rpv1.OutputResource(nil), gw.Properties.Status.OutputResources) - require.Equal(t, "2022-03-15-privatepreview", gw.InternalMetadata.UpdatedAPIVersion) + require.Equal(t, "2023-10-01-preview", gw.InternalMetadata.UpdatedAPIVersion) require.Equal(t, "secretname", gw.Properties.TLS.CertificateFrom) require.Equal(t, datamodel.TLSMinVersion13, gw.Properties.TLS.MinimumProtocolVersion) } @@ -217,7 +217,7 @@ func TestGatewayTLSTerminationConvertVersionedToDataModel_NoMinProtocolVersion(t require.Equal(t, "myreplaceprefix", gw.Properties.Routes[0].ReplacePrefix) require.Equal(t, "http://myprefix.myapp.mydomain.com", gw.Properties.URL) require.Equal(t, []rpv1.OutputResource(nil), gw.Properties.Status.OutputResources) - require.Equal(t, "2022-03-15-privatepreview", gw.InternalMetadata.UpdatedAPIVersion) + require.Equal(t, "2023-10-01-preview", gw.InternalMetadata.UpdatedAPIVersion) require.Equal(t, "secretname", gw.Properties.TLS.CertificateFrom) require.Equal(t, datamodel.DefaultTLSMinVersion, gw.Properties.TLS.MinimumProtocolVersion) } diff --git a/pkg/corerp/api/v20220315privatepreview/httproute_conversion.go b/pkg/corerp/api/v20231001preview/httproute_conversion.go similarity index 98% rename from pkg/corerp/api/v20220315privatepreview/httproute_conversion.go rename to pkg/corerp/api/v20231001preview/httproute_conversion.go index cd3c935f6d2..b237945fc45 100644 --- a/pkg/corerp/api/v20220315privatepreview/httproute_conversion.go +++ b/pkg/corerp/api/v20231001preview/httproute_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/corerp/api/v20220315privatepreview/httproute_conversion_test.go b/pkg/corerp/api/v20231001preview/httproute_conversion_test.go similarity index 96% rename from pkg/corerp/api/v20220315privatepreview/httproute_conversion_test.go rename to pkg/corerp/api/v20231001preview/httproute_conversion_test.go index bd75d6ea9be..00fb40c6908 100644 --- a/pkg/corerp/api/v20220315privatepreview/httproute_conversion_test.go +++ b/pkg/corerp/api/v20231001preview/httproute_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -51,7 +51,7 @@ func TestHTTPRouteConvertVersionedToDataModel(t *testing.T) { require.Equal(t, "http", ct.Properties.Scheme) require.Equal(t, "http://testapplications.com/httproute/", ct.Properties.URL) require.Equal(t, []rpv1.OutputResource(nil), ct.Properties.Status.OutputResources) - require.Equal(t, "2022-03-15-privatepreview", ct.InternalMetadata.UpdatedAPIVersion) + require.Equal(t, "2023-10-01-preview", ct.InternalMetadata.UpdatedAPIVersion) } func TestHTTPRouteConvertDataModelToVersioned(t *testing.T) { diff --git a/pkg/corerp/api/v20220315privatepreview/secretstore_conversion.go b/pkg/corerp/api/v20231001preview/secretstore_conversion.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/secretstore_conversion.go rename to pkg/corerp/api/v20231001preview/secretstore_conversion.go index a150a115a01..662085de381 100644 --- a/pkg/corerp/api/v20220315privatepreview/secretstore_conversion.go +++ b/pkg/corerp/api/v20231001preview/secretstore_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/corerp/api/v20220315privatepreview/secretstore_conversion_test.go b/pkg/corerp/api/v20231001preview/secretstore_conversion_test.go similarity index 98% rename from pkg/corerp/api/v20220315privatepreview/secretstore_conversion_test.go rename to pkg/corerp/api/v20231001preview/secretstore_conversion_test.go index 27f5dd0babf..e1024ac0869 100644 --- a/pkg/corerp/api/v20220315privatepreview/secretstore_conversion_test.go +++ b/pkg/corerp/api/v20231001preview/secretstore_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -51,7 +51,7 @@ func TestSecretStoreConvertVersionedToDataModel(t *testing.T) { require.Equal(t, "dev", ct.Tags["env"]) require.Equal(t, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup/providers/Applications.Core/applications/app0", ct.Properties.Application) require.Equal(t, []rpv1.OutputResource(nil), ct.Properties.Status.OutputResources) - require.Equal(t, "2022-03-15-privatepreview", ct.InternalMetadata.UpdatedAPIVersion) + require.Equal(t, "2023-10-01-preview", ct.InternalMetadata.UpdatedAPIVersion) require.Equal(t, "certificate", string(ct.Properties.Type)) require.Equal(t, datamodel.SecretValueEncodingBase64, ct.Properties.Data["tls.crt"].Encoding) require.Equal(t, "-----BEGIN CERT---- ...", to.String(ct.Properties.Data["tls.crt"].Value)) diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/applicationresource.json b/pkg/corerp/api/v20231001preview/testdata/applicationresource.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/applicationresource.json rename to pkg/corerp/api/v20231001preview/testdata/applicationresource.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/applicationresourcedatamodel.json b/pkg/corerp/api/v20231001preview/testdata/applicationresourcedatamodel.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/applicationresourcedatamodel.json rename to pkg/corerp/api/v20231001preview/testdata/applicationresourcedatamodel.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/applicationresourcedatamodelemptyext.json b/pkg/corerp/api/v20231001preview/testdata/applicationresourcedatamodelemptyext.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/applicationresourcedatamodelemptyext.json rename to pkg/corerp/api/v20231001preview/testdata/applicationresourcedatamodelemptyext.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/applicationresourceemptyext.json b/pkg/corerp/api/v20231001preview/testdata/applicationresourceemptyext.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/applicationresourceemptyext.json rename to pkg/corerp/api/v20231001preview/testdata/applicationresourceemptyext.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/applicationresourceemptyext2.json b/pkg/corerp/api/v20231001preview/testdata/applicationresourceemptyext2.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/applicationresourceemptyext2.json rename to pkg/corerp/api/v20231001preview/testdata/applicationresourceemptyext2.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/containerresource-runtimes.json b/pkg/corerp/api/v20231001preview/testdata/containerresource-runtimes.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/containerresource-runtimes.json rename to pkg/corerp/api/v20231001preview/testdata/containerresource-runtimes.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/containerresource.json b/pkg/corerp/api/v20231001preview/testdata/containerresource.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/containerresource.json rename to pkg/corerp/api/v20231001preview/testdata/containerresource.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/containerresourcedatamodel-runtime.json b/pkg/corerp/api/v20231001preview/testdata/containerresourcedatamodel-runtime.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/containerresourcedatamodel-runtime.json rename to pkg/corerp/api/v20231001preview/testdata/containerresourcedatamodel-runtime.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/containerresourcedatamodel.json b/pkg/corerp/api/v20231001preview/testdata/containerresourcedatamodel.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/containerresourcedatamodel.json rename to pkg/corerp/api/v20231001preview/testdata/containerresourcedatamodel.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/containerresourcedatamodelemptyext.json b/pkg/corerp/api/v20231001preview/testdata/containerresourcedatamodelemptyext.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/containerresourcedatamodelemptyext.json rename to pkg/corerp/api/v20231001preview/testdata/containerresourcedatamodelemptyext.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/containerresourceemptyext.json b/pkg/corerp/api/v20231001preview/testdata/containerresourceemptyext.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/containerresourceemptyext.json rename to pkg/corerp/api/v20231001preview/testdata/containerresourceemptyext.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/containerresourceemptyext2.json b/pkg/corerp/api/v20231001preview/testdata/containerresourceemptyext2.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/containerresourceemptyext2.json rename to pkg/corerp/api/v20231001preview/testdata/containerresourceemptyext2.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/containerresourcenegativetest.json b/pkg/corerp/api/v20231001preview/testdata/containerresourcenegativetest.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/containerresourcenegativetest.json rename to pkg/corerp/api/v20231001preview/testdata/containerresourcenegativetest.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentrecipepropertiesdatamodel-missingtemplatekind.json b/pkg/corerp/api/v20231001preview/testdata/environmentrecipepropertiesdatamodel-missingtemplatekind.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentrecipepropertiesdatamodel-missingtemplatekind.json rename to pkg/corerp/api/v20231001preview/testdata/environmentrecipepropertiesdatamodel-missingtemplatekind.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentrecipepropertiesdatamodel-terraform.json b/pkg/corerp/api/v20231001preview/testdata/environmentrecipepropertiesdatamodel-terraform.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentrecipepropertiesdatamodel-terraform.json rename to pkg/corerp/api/v20231001preview/testdata/environmentrecipepropertiesdatamodel-terraform.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentrecipepropertiesdatamodel.json b/pkg/corerp/api/v20231001preview/testdata/environmentrecipepropertiesdatamodel.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentrecipepropertiesdatamodel.json rename to pkg/corerp/api/v20231001preview/testdata/environmentrecipepropertiesdatamodel.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-invalid-missing-namespace.json b/pkg/corerp/api/v20231001preview/testdata/environmentresource-invalid-missing-namespace.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-invalid-missing-namespace.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresource-invalid-missing-namespace.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-invalid-namespace.json b/pkg/corerp/api/v20231001preview/testdata/environmentresource-invalid-namespace.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-invalid-namespace.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresource-invalid-namespace.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-invalid-resourcetype.json b/pkg/corerp/api/v20231001preview/testdata/environmentresource-invalid-resourcetype.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-invalid-resourcetype.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresource-invalid-resourcetype.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-invalid-templatekind.json b/pkg/corerp/api/v20231001preview/testdata/environmentresource-invalid-templatekind.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-invalid-templatekind.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresource-invalid-templatekind.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-missing-templatekind.json b/pkg/corerp/api/v20231001preview/testdata/environmentresource-missing-templatekind.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-missing-templatekind.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresource-missing-templatekind.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-terraformrecipe-localpath.json b/pkg/corerp/api/v20231001preview/testdata/environmentresource-terraformrecipe-localpath.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-terraformrecipe-localpath.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresource-terraformrecipe-localpath.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-with-workload-identity.json b/pkg/corerp/api/v20231001preview/testdata/environmentresource-with-workload-identity.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresource-with-workload-identity.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresource-with-workload-identity.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresource.json b/pkg/corerp/api/v20231001preview/testdata/environmentresource.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresource.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresource.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresourcedatamodel-with-workload-identity.json b/pkg/corerp/api/v20231001preview/testdata/environmentresourcedatamodel-with-workload-identity.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresourcedatamodel-with-workload-identity.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresourcedatamodel-with-workload-identity.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresourcedatamodel.json b/pkg/corerp/api/v20231001preview/testdata/environmentresourcedatamodel.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresourcedatamodel.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresourcedatamodel.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresourcedatamodelemptyext.json b/pkg/corerp/api/v20231001preview/testdata/environmentresourcedatamodelemptyext.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresourcedatamodelemptyext.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresourcedatamodelemptyext.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresourcedatamodelemptytemplatekind.json b/pkg/corerp/api/v20231001preview/testdata/environmentresourcedatamodelemptytemplatekind.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresourcedatamodelemptytemplatekind.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresourcedatamodelemptytemplatekind.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresourceemptyext.json b/pkg/corerp/api/v20231001preview/testdata/environmentresourceemptyext.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresourceemptyext.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresourceemptyext.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/environmentresourceemptyext2.json b/pkg/corerp/api/v20231001preview/testdata/environmentresourceemptyext2.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/environmentresourceemptyext2.json rename to pkg/corerp/api/v20231001preview/testdata/environmentresourceemptyext2.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/extender_manual.json b/pkg/corerp/api/v20231001preview/testdata/extender_manual.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/extender_manual.json rename to pkg/corerp/api/v20231001preview/testdata/extender_manual.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/extender_manual_nosecrets.json b/pkg/corerp/api/v20231001preview/testdata/extender_manual_nosecrets.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/extender_manual_nosecrets.json rename to pkg/corerp/api/v20231001preview/testdata/extender_manual_nosecrets.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/extender_recipe.json b/pkg/corerp/api/v20231001preview/testdata/extender_recipe.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/extender_recipe.json rename to pkg/corerp/api/v20231001preview/testdata/extender_recipe.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/extenderdatamodel_manual.json b/pkg/corerp/api/v20231001preview/testdata/extenderdatamodel_manual.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/extenderdatamodel_manual.json rename to pkg/corerp/api/v20231001preview/testdata/extenderdatamodel_manual.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/extenderdatamodel_manual_nosecrets.json b/pkg/corerp/api/v20231001preview/testdata/extenderdatamodel_manual_nosecrets.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/extenderdatamodel_manual_nosecrets.json rename to pkg/corerp/api/v20231001preview/testdata/extenderdatamodel_manual_nosecrets.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/extenderdatamodel_recipe.json b/pkg/corerp/api/v20231001preview/testdata/extenderdatamodel_recipe.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/extenderdatamodel_recipe.json rename to pkg/corerp/api/v20231001preview/testdata/extenderdatamodel_recipe.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/extenderresource-invalid.json b/pkg/corerp/api/v20231001preview/testdata/extenderresource-invalid.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/extenderresource-invalid.json rename to pkg/corerp/api/v20231001preview/testdata/extenderresource-invalid.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/extenderresponseresourcedatamodel.json b/pkg/corerp/api/v20231001preview/testdata/extenderresponseresourcedatamodel.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/extenderresponseresourcedatamodel.json rename to pkg/corerp/api/v20231001preview/testdata/extenderresponseresourcedatamodel.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/gatewayresource-with-sslpassthrough.json b/pkg/corerp/api/v20231001preview/testdata/gatewayresource-with-sslpassthrough.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/gatewayresource-with-sslpassthrough.json rename to pkg/corerp/api/v20231001preview/testdata/gatewayresource-with-sslpassthrough.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/gatewayresource-with-tlstermination-nominprotocolversion.json b/pkg/corerp/api/v20231001preview/testdata/gatewayresource-with-tlstermination-nominprotocolversion.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/gatewayresource-with-tlstermination-nominprotocolversion.json rename to pkg/corerp/api/v20231001preview/testdata/gatewayresource-with-tlstermination-nominprotocolversion.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/gatewayresource-with-tlstermination.json b/pkg/corerp/api/v20231001preview/testdata/gatewayresource-with-tlstermination.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/gatewayresource-with-tlstermination.json rename to pkg/corerp/api/v20231001preview/testdata/gatewayresource-with-tlstermination.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/gatewayresource.json b/pkg/corerp/api/v20231001preview/testdata/gatewayresource.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/gatewayresource.json rename to pkg/corerp/api/v20231001preview/testdata/gatewayresource.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/gatewayresourcedatamodel-with-sslpassthrough.json b/pkg/corerp/api/v20231001preview/testdata/gatewayresourcedatamodel-with-sslpassthrough.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/gatewayresourcedatamodel-with-sslpassthrough.json rename to pkg/corerp/api/v20231001preview/testdata/gatewayresourcedatamodel-with-sslpassthrough.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/gatewayresourcedatamodel-with-tlstermination-nominprotocolversion.json b/pkg/corerp/api/v20231001preview/testdata/gatewayresourcedatamodel-with-tlstermination-nominprotocolversion.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/gatewayresourcedatamodel-with-tlstermination-nominprotocolversion.json rename to pkg/corerp/api/v20231001preview/testdata/gatewayresourcedatamodel-with-tlstermination-nominprotocolversion.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/gatewayresourcedatamodel-with-tlstermination.json b/pkg/corerp/api/v20231001preview/testdata/gatewayresourcedatamodel-with-tlstermination.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/gatewayresourcedatamodel-with-tlstermination.json rename to pkg/corerp/api/v20231001preview/testdata/gatewayresourcedatamodel-with-tlstermination.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/gatewayresourcedatamodel.json b/pkg/corerp/api/v20231001preview/testdata/gatewayresourcedatamodel.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/gatewayresourcedatamodel.json rename to pkg/corerp/api/v20231001preview/testdata/gatewayresourcedatamodel.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/httprouteresource.json b/pkg/corerp/api/v20231001preview/testdata/httprouteresource.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/httprouteresource.json rename to pkg/corerp/api/v20231001preview/testdata/httprouteresource.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/httprouteresourcedatamodel.json b/pkg/corerp/api/v20231001preview/testdata/httprouteresourcedatamodel.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/httprouteresourcedatamodel.json rename to pkg/corerp/api/v20231001preview/testdata/httprouteresourcedatamodel.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/reciperesource.json b/pkg/corerp/api/v20231001preview/testdata/reciperesource.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/reciperesource.json rename to pkg/corerp/api/v20231001preview/testdata/reciperesource.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/secretstore-datamodel-resource.json b/pkg/corerp/api/v20231001preview/testdata/secretstore-datamodel-resource.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/secretstore-datamodel-resource.json rename to pkg/corerp/api/v20231001preview/testdata/secretstore-datamodel-resource.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/secretstore-datamodel.json b/pkg/corerp/api/v20231001preview/testdata/secretstore-datamodel.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/secretstore-datamodel.json rename to pkg/corerp/api/v20231001preview/testdata/secretstore-datamodel.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/secretstore-versioned-resource.json b/pkg/corerp/api/v20231001preview/testdata/secretstore-versioned-resource.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/secretstore-versioned-resource.json rename to pkg/corerp/api/v20231001preview/testdata/secretstore-versioned-resource.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/secretstore-versioned.json b/pkg/corerp/api/v20231001preview/testdata/secretstore-versioned.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/secretstore-versioned.json rename to pkg/corerp/api/v20231001preview/testdata/secretstore-versioned.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/volume-az-kv-datamodel.json b/pkg/corerp/api/v20231001preview/testdata/volume-az-kv-datamodel.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/volume-az-kv-datamodel.json rename to pkg/corerp/api/v20231001preview/testdata/volume-az-kv-datamodel.json diff --git a/pkg/corerp/api/v20220315privatepreview/testdata/volume-az-kv.json b/pkg/corerp/api/v20231001preview/testdata/volume-az-kv.json similarity index 100% rename from pkg/corerp/api/v20220315privatepreview/testdata/volume-az-kv.json rename to pkg/corerp/api/v20231001preview/testdata/volume-az-kv.json diff --git a/pkg/corerp/api/v20220315privatepreview/util.go b/pkg/corerp/api/v20231001preview/util.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/util.go rename to pkg/corerp/api/v20231001preview/util.go index d4f0eaf58de..09873c98a24 100644 --- a/pkg/corerp/api/v20220315privatepreview/util.go +++ b/pkg/corerp/api/v20231001preview/util.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/corerp/api/v20220315privatepreview/util_test.go b/pkg/corerp/api/v20231001preview/util_test.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/util_test.go rename to pkg/corerp/api/v20231001preview/util_test.go index 14b1bd97f9c..eb84029c8d2 100644 --- a/pkg/corerp/api/v20220315privatepreview/util_test.go +++ b/pkg/corerp/api/v20231001preview/util_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "testing" diff --git a/pkg/corerp/api/v20220315privatepreview/version.go b/pkg/corerp/api/v20231001preview/version.go similarity index 89% rename from pkg/corerp/api/v20220315privatepreview/version.go rename to pkg/corerp/api/v20231001preview/version.go index 3a97781966a..632c27dda69 100644 --- a/pkg/corerp/api/v20220315privatepreview/version.go +++ b/pkg/corerp/api/v20231001preview/version.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview // Version represents the api version in this package. -const Version = "2022-03-15-privatepreview" +const Version = "2023-10-01-preview" diff --git a/pkg/corerp/api/v20220315privatepreview/volume_conversion.go b/pkg/corerp/api/v20231001preview/volume_conversion.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/volume_conversion.go rename to pkg/corerp/api/v20231001preview/volume_conversion.go index d7b13011b9d..aa5354c0e75 100644 --- a/pkg/corerp/api/v20220315privatepreview/volume_conversion.go +++ b/pkg/corerp/api/v20231001preview/volume_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/corerp/api/v20220315privatepreview/volume_conversion_test.go b/pkg/corerp/api/v20231001preview/volume_conversion_test.go similarity index 96% rename from pkg/corerp/api/v20220315privatepreview/volume_conversion_test.go rename to pkg/corerp/api/v20231001preview/volume_conversion_test.go index f0b62227811..04610cff15c 100644 --- a/pkg/corerp/api/v20220315privatepreview/volume_conversion_test.go +++ b/pkg/corerp/api/v20231001preview/volume_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -50,7 +50,7 @@ func TestVolumeConvertVersionedToDataModel(t *testing.T) { require.Equal(t, "Applications.Core/volumes", ct.Type) require.Equal(t, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup/providers/Applications.Core/applications/app0", ct.Properties.Application) require.Equal(t, []rpv1.OutputResource(nil), ct.Properties.Status.OutputResources) - require.Equal(t, "2022-03-15-privatepreview", ct.InternalMetadata.UpdatedAPIVersion) + require.Equal(t, "2023-10-01-preview", ct.InternalMetadata.UpdatedAPIVersion) require.Equal(t, expected.Properties.AzureKeyVault, ct.Properties.AzureKeyVault) } diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_applications_client.go b/pkg/corerp/api/v20231001preview/zz_generated_applications_client.go similarity index 95% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_applications_client.go rename to pkg/corerp/api/v20231001preview/zz_generated_applications_client.go index df7731ffad6..abb4e867f20 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_applications_client.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_applications_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewApplicationsClient(rootScope string, credential azcore.TokenCredential, // CreateOrUpdate - Create a ApplicationResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - applicationName - The application name // - resource - Resource create parameters. // - options - ApplicationsClientCreateOrUpdateOptions contains the optional parameters for the ApplicationsClient.CreateOrUpdate @@ -83,7 +83,7 @@ func (client *ApplicationsClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -104,7 +104,7 @@ func (client *ApplicationsClient) createOrUpdateHandleResponse(resp *http.Respon // Delete - Delete a ApplicationResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - applicationName - The application name // - options - ApplicationsClientDeleteOptions contains the optional parameters for the ApplicationsClient.Delete method. func (client *ApplicationsClient) Delete(ctx context.Context, applicationName string, options *ApplicationsClientDeleteOptions) (ApplicationsClientDeleteResponse, error) { @@ -137,7 +137,7 @@ func (client *ApplicationsClient) deleteCreateRequest(ctx context.Context, appli return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -146,7 +146,7 @@ func (client *ApplicationsClient) deleteCreateRequest(ctx context.Context, appli // Get - Get a ApplicationResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - applicationName - The application name // - options - ApplicationsClientGetOptions contains the optional parameters for the ApplicationsClient.Get method. func (client *ApplicationsClient) Get(ctx context.Context, applicationName string, options *ApplicationsClientGetOptions) (ApplicationsClientGetResponse, error) { @@ -180,7 +180,7 @@ func (client *ApplicationsClient) getCreateRequest(ctx context.Context, applicat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -197,7 +197,7 @@ func (client *ApplicationsClient) getHandleResponse(resp *http.Response) (Applic // NewListByScopePager - List ApplicationResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - ApplicationsClientListByScopeOptions contains the optional parameters for the ApplicationsClient.NewListByScopePager // method. func (client *ApplicationsClient) NewListByScopePager(options *ApplicationsClientListByScopeOptions) (*runtime.Pager[ApplicationsClientListByScopeResponse]) { @@ -237,7 +237,7 @@ func (client *ApplicationsClient) listByScopeCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -255,7 +255,7 @@ func (client *ApplicationsClient) listByScopeHandleResponse(resp *http.Response) // Update - Update a ApplicationResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - applicationName - The application name // - properties - The resource properties to be updated. // - options - ApplicationsClientUpdateOptions contains the optional parameters for the ApplicationsClient.Update method. @@ -290,7 +290,7 @@ func (client *ApplicationsClient) updateCreateRequest(ctx context.Context, appli return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_client_factory.go b/pkg/corerp/api/v20231001preview/zz_generated_client_factory.go similarity index 98% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_client_factory.go rename to pkg/corerp/api/v20231001preview/zz_generated_client_factory.go index c47bbe49a70..9a00d152bb9 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_client_factory.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_client_factory.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_constants.go b/pkg/corerp/api/v20231001preview/zz_generated_constants.go similarity index 97% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_constants.go rename to pkg/corerp/api/v20231001preview/zz_generated_constants.go index de80b303239..f43027a15e4 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_constants.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_constants.go @@ -5,10 +5,10 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview const ( - moduleName = "v20220315privatepreview" + moduleName = "v20231001preview" moduleVersion = "v0.0.1" ) @@ -323,14 +323,14 @@ func PossibleTLSMinVersionValues() []TLSMinVersion { type Versions string const ( - // VersionsV20220315Privatepreview - 2022-03-15-privatepreview - VersionsV20220315Privatepreview Versions = "2022-03-15-privatepreview" + // VersionsV20231001Preview - 2023-10-01-preview + VersionsV20231001Preview Versions = "2023-10-01-preview" ) // PossibleVersionsValues returns the possible values for the Versions const type. func PossibleVersionsValues() []Versions { return []Versions{ - VersionsV20220315Privatepreview, + VersionsV20231001Preview, } } diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_containers_client.go b/pkg/corerp/api/v20231001preview/zz_generated_containers_client.go similarity index 94% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_containers_client.go rename to pkg/corerp/api/v20231001preview/zz_generated_containers_client.go index 48d784f8a97..a31e1f316b5 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_containers_client.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_containers_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewContainersClient(rootScope string, credential azcore.TokenCredential, op // BeginCreateOrUpdate - Create a ContainerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - containerName - Container name // - resource - Resource create parameters. // - options - ContainersClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainersClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *ContainersClient) BeginCreateOrUpdate(ctx context.Context, contain // CreateOrUpdate - Create a ContainerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *ContainersClient) createOrUpdate(ctx context.Context, containerName string, resource ContainerResource, options *ContainersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, containerName, resource, options) @@ -101,7 +101,7 @@ func (client *ContainersClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *ContainersClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete a ContainerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - containerName - Container name // - options - ContainersClientBeginDeleteOptions contains the optional parameters for the ContainersClient.BeginDelete method. func (client *ContainersClient) BeginDelete(ctx context.Context, containerName string, options *ContainersClientBeginDeleteOptions) (*runtime.Poller[ContainersClientDeleteResponse], error) { @@ -134,7 +134,7 @@ func (client *ContainersClient) BeginDelete(ctx context.Context, containerName s // Delete - Delete a ContainerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *ContainersClient) deleteOperation(ctx context.Context, containerName string, options *ContainersClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, containerName, options) @@ -165,7 +165,7 @@ func (client *ContainersClient) deleteCreateRequest(ctx context.Context, contain return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -174,7 +174,7 @@ func (client *ContainersClient) deleteCreateRequest(ctx context.Context, contain // Get - Get a ContainerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - containerName - Container name // - options - ContainersClientGetOptions contains the optional parameters for the ContainersClient.Get method. func (client *ContainersClient) Get(ctx context.Context, containerName string, options *ContainersClientGetOptions) (ContainersClientGetResponse, error) { @@ -208,7 +208,7 @@ func (client *ContainersClient) getCreateRequest(ctx context.Context, containerN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -225,7 +225,7 @@ func (client *ContainersClient) getHandleResponse(resp *http.Response) (Containe // NewListByScopePager - List ContainerResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - ContainersClientListByScopeOptions contains the optional parameters for the ContainersClient.NewListByScopePager // method. func (client *ContainersClient) NewListByScopePager(options *ContainersClientListByScopeOptions) (*runtime.Pager[ContainersClientListByScopeResponse]) { @@ -265,7 +265,7 @@ func (client *ContainersClient) listByScopeCreateRequest(ctx context.Context, op return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -283,7 +283,7 @@ func (client *ContainersClient) listByScopeHandleResponse(resp *http.Response) ( // BeginUpdate - Update a ContainerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - containerName - Container name // - properties - The resource properties to be updated. // - options - ContainersClientBeginUpdateOptions contains the optional parameters for the ContainersClient.BeginUpdate method. @@ -305,7 +305,7 @@ func (client *ContainersClient) BeginUpdate(ctx context.Context, containerName s // Update - Update a ContainerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *ContainersClient) update(ctx context.Context, containerName string, properties ContainerResourceUpdate, options *ContainersClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, containerName, properties, options) @@ -336,7 +336,7 @@ func (client *ContainersClient) updateCreateRequest(ctx context.Context, contain return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_environments_client.go b/pkg/corerp/api/v20231001preview/zz_generated_environments_client.go similarity index 95% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_environments_client.go rename to pkg/corerp/api/v20231001preview/zz_generated_environments_client.go index e04f55a18c9..6a943000ed4 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_environments_client.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_environments_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewEnvironmentsClient(rootScope string, credential azcore.TokenCredential, // CreateOrUpdate - Create a EnvironmentResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - environmentName - environment name // - resource - Resource create parameters. // - options - EnvironmentsClientCreateOrUpdateOptions contains the optional parameters for the EnvironmentsClient.CreateOrUpdate @@ -83,7 +83,7 @@ func (client *EnvironmentsClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -104,7 +104,7 @@ func (client *EnvironmentsClient) createOrUpdateHandleResponse(resp *http.Respon // Delete - Delete a EnvironmentResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - environmentName - environment name // - options - EnvironmentsClientDeleteOptions contains the optional parameters for the EnvironmentsClient.Delete method. func (client *EnvironmentsClient) Delete(ctx context.Context, environmentName string, options *EnvironmentsClientDeleteOptions) (EnvironmentsClientDeleteResponse, error) { @@ -137,7 +137,7 @@ func (client *EnvironmentsClient) deleteCreateRequest(ctx context.Context, envir return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -146,7 +146,7 @@ func (client *EnvironmentsClient) deleteCreateRequest(ctx context.Context, envir // Get - Get a EnvironmentResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - environmentName - environment name // - options - EnvironmentsClientGetOptions contains the optional parameters for the EnvironmentsClient.Get method. func (client *EnvironmentsClient) Get(ctx context.Context, environmentName string, options *EnvironmentsClientGetOptions) (EnvironmentsClientGetResponse, error) { @@ -180,7 +180,7 @@ func (client *EnvironmentsClient) getCreateRequest(ctx context.Context, environm return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -198,7 +198,7 @@ func (client *EnvironmentsClient) getHandleResponse(resp *http.Response) (Enviro // GetMetadata - Gets recipe metadata including parameters and any constraints on the parameters. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - environmentName - environment name // - body - The content of the action request // - options - EnvironmentsClientGetMetadataOptions contains the optional parameters for the EnvironmentsClient.GetMetadata @@ -234,7 +234,7 @@ func (client *EnvironmentsClient) getMetadataCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -254,7 +254,7 @@ func (client *EnvironmentsClient) getMetadataHandleResponse(resp *http.Response) // NewListByScopePager - List EnvironmentResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - EnvironmentsClientListByScopeOptions contains the optional parameters for the EnvironmentsClient.NewListByScopePager // method. func (client *EnvironmentsClient) NewListByScopePager(options *EnvironmentsClientListByScopeOptions) (*runtime.Pager[EnvironmentsClientListByScopeResponse]) { @@ -294,7 +294,7 @@ func (client *EnvironmentsClient) listByScopeCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -312,7 +312,7 @@ func (client *EnvironmentsClient) listByScopeHandleResponse(resp *http.Response) // Update - Update a EnvironmentResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - environmentName - environment name // - properties - The resource properties to be updated. // - options - EnvironmentsClientUpdateOptions contains the optional parameters for the EnvironmentsClient.Update method. @@ -347,7 +347,7 @@ func (client *EnvironmentsClient) updateCreateRequest(ctx context.Context, envir return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_extenders_client.go b/pkg/corerp/api/v20231001preview/zz_generated_extenders_client.go similarity index 95% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_extenders_client.go rename to pkg/corerp/api/v20231001preview/zz_generated_extenders_client.go index 35d2424f583..2ce262bee51 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_extenders_client.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_extenders_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewExtendersClient(rootScope string, credential azcore.TokenCredential, opt // BeginCreateOrUpdate - Create a ExtenderResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - extenderName - The name of the ExtenderResource portable resource // - resource - Resource create parameters. // - options - ExtendersClientBeginCreateOrUpdateOptions contains the optional parameters for the ExtendersClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *ExtendersClient) BeginCreateOrUpdate(ctx context.Context, extender // CreateOrUpdate - Create a ExtenderResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *ExtendersClient) createOrUpdate(ctx context.Context, extenderName string, resource ExtenderResource, options *ExtendersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, extenderName, resource, options) @@ -101,7 +101,7 @@ func (client *ExtendersClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *ExtendersClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete a ExtenderResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - extenderName - The name of the ExtenderResource portable resource // - options - ExtendersClientBeginDeleteOptions contains the optional parameters for the ExtendersClient.BeginDelete method. func (client *ExtendersClient) BeginDelete(ctx context.Context, extenderName string, options *ExtendersClientBeginDeleteOptions) (*runtime.Poller[ExtendersClientDeleteResponse], error) { @@ -134,7 +134,7 @@ func (client *ExtendersClient) BeginDelete(ctx context.Context, extenderName str // Delete - Delete a ExtenderResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *ExtendersClient) deleteOperation(ctx context.Context, extenderName string, options *ExtendersClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, extenderName, options) @@ -165,7 +165,7 @@ func (client *ExtendersClient) deleteCreateRequest(ctx context.Context, extender return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -174,7 +174,7 @@ func (client *ExtendersClient) deleteCreateRequest(ctx context.Context, extender // Get - Get a ExtenderResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - extenderName - The name of the ExtenderResource portable resource // - options - ExtendersClientGetOptions contains the optional parameters for the ExtendersClient.Get method. func (client *ExtendersClient) Get(ctx context.Context, extenderName string, options *ExtendersClientGetOptions) (ExtendersClientGetResponse, error) { @@ -208,7 +208,7 @@ func (client *ExtendersClient) getCreateRequest(ctx context.Context, extenderNam return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -225,7 +225,7 @@ func (client *ExtendersClient) getHandleResponse(resp *http.Response) (Extenders // NewListByScopePager - List ExtenderResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - ExtendersClientListByScopeOptions contains the optional parameters for the ExtendersClient.NewListByScopePager // method. func (client *ExtendersClient) NewListByScopePager(options *ExtendersClientListByScopeOptions) (*runtime.Pager[ExtendersClientListByScopeResponse]) { @@ -265,7 +265,7 @@ func (client *ExtendersClient) listByScopeCreateRequest(ctx context.Context, opt return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -283,7 +283,7 @@ func (client *ExtendersClient) listByScopeHandleResponse(resp *http.Response) (E // ListSecrets - Lists secrets values for the specified Extender resource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - extenderName - The name of the ExtenderResource portable resource // - body - The content of the action request // - options - ExtendersClientListSecretsOptions contains the optional parameters for the ExtendersClient.ListSecrets method. @@ -318,7 +318,7 @@ func (client *ExtendersClient) listSecretsCreateRequest(ctx context.Context, ext return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -339,7 +339,7 @@ func (client *ExtendersClient) listSecretsHandleResponse(resp *http.Response) (E // BeginUpdate - Update a ExtenderResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - extenderName - The name of the ExtenderResource portable resource // - properties - The resource properties to be updated. // - options - ExtendersClientBeginUpdateOptions contains the optional parameters for the ExtendersClient.BeginUpdate method. @@ -361,7 +361,7 @@ func (client *ExtendersClient) BeginUpdate(ctx context.Context, extenderName str // Update - Update a ExtenderResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *ExtendersClient) update(ctx context.Context, extenderName string, properties ExtenderResourceUpdate, options *ExtendersClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, extenderName, properties, options) @@ -392,7 +392,7 @@ func (client *ExtendersClient) updateCreateRequest(ctx context.Context, extender return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_gateways_client.go b/pkg/corerp/api/v20231001preview/zz_generated_gateways_client.go similarity index 94% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_gateways_client.go rename to pkg/corerp/api/v20231001preview/zz_generated_gateways_client.go index 07f36a63645..3db7e727b6f 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_gateways_client.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_gateways_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewGatewaysClient(rootScope string, credential azcore.TokenCredential, opti // BeginCreate - Create a GatewayResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - gatewayName - Gateway name // - resource - Resource create parameters. // - options - GatewaysClientBeginCreateOptions contains the optional parameters for the GatewaysClient.BeginCreate method. @@ -69,7 +69,7 @@ func (client *GatewaysClient) BeginCreate(ctx context.Context, gatewayName strin // Create - Create a GatewayResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *GatewaysClient) create(ctx context.Context, gatewayName string, resource GatewayResource, options *GatewaysClientBeginCreateOptions) (*http.Response, error) { var err error req, err := client.createCreateRequest(ctx, gatewayName, resource, options) @@ -100,7 +100,7 @@ func (client *GatewaysClient) createCreateRequest(ctx context.Context, gatewayNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -112,7 +112,7 @@ func (client *GatewaysClient) createCreateRequest(ctx context.Context, gatewayNa // BeginCreateOrUpdate - Update a GatewayResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - gatewayName - Gateway name // - properties - The resource properties to be updated. // - options - GatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewaysClient.BeginCreateOrUpdate @@ -135,7 +135,7 @@ func (client *GatewaysClient) BeginCreateOrUpdate(ctx context.Context, gatewayNa // CreateOrUpdate - Update a GatewayResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *GatewaysClient) createOrUpdate(ctx context.Context, gatewayName string, properties GatewayResourceUpdate, options *GatewaysClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, gatewayName, properties, options) @@ -166,7 +166,7 @@ func (client *GatewaysClient) createOrUpdateCreateRequest(ctx context.Context, g return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { @@ -178,7 +178,7 @@ func (client *GatewaysClient) createOrUpdateCreateRequest(ctx context.Context, g // BeginDelete - Delete a GatewayResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - gatewayName - Gateway name // - options - GatewaysClientBeginDeleteOptions contains the optional parameters for the GatewaysClient.BeginDelete method. func (client *GatewaysClient) BeginDelete(ctx context.Context, gatewayName string, options *GatewaysClientBeginDeleteOptions) (*runtime.Poller[GatewaysClientDeleteResponse], error) { @@ -199,7 +199,7 @@ func (client *GatewaysClient) BeginDelete(ctx context.Context, gatewayName strin // Delete - Delete a GatewayResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *GatewaysClient) deleteOperation(ctx context.Context, gatewayName string, options *GatewaysClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, gatewayName, options) @@ -230,7 +230,7 @@ func (client *GatewaysClient) deleteCreateRequest(ctx context.Context, gatewayNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -239,7 +239,7 @@ func (client *GatewaysClient) deleteCreateRequest(ctx context.Context, gatewayNa // Get - Get a GatewayResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - gatewayName - Gateway name // - options - GatewaysClientGetOptions contains the optional parameters for the GatewaysClient.Get method. func (client *GatewaysClient) Get(ctx context.Context, gatewayName string, options *GatewaysClientGetOptions) (GatewaysClientGetResponse, error) { @@ -273,7 +273,7 @@ func (client *GatewaysClient) getCreateRequest(ctx context.Context, gatewayName return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -290,7 +290,7 @@ func (client *GatewaysClient) getHandleResponse(resp *http.Response) (GatewaysCl // NewListByScopePager - List GatewayResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - GatewaysClientListByScopeOptions contains the optional parameters for the GatewaysClient.NewListByScopePager // method. func (client *GatewaysClient) NewListByScopePager(options *GatewaysClientListByScopeOptions) (*runtime.Pager[GatewaysClientListByScopeResponse]) { @@ -330,7 +330,7 @@ func (client *GatewaysClient) listByScopeCreateRequest(ctx context.Context, opti return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_httproutes_client.go b/pkg/corerp/api/v20231001preview/zz_generated_httproutes_client.go similarity index 94% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_httproutes_client.go rename to pkg/corerp/api/v20231001preview/zz_generated_httproutes_client.go index 490655e8d36..c070d49c52d 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_httproutes_client.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_httproutes_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewHTTPRoutesClient(rootScope string, credential azcore.TokenCredential, op // BeginCreateOrUpdate - Create a HttpRouteResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - httpRouteName - HTTPRoute name // - resource - Resource create parameters. // - options - HTTPRoutesClientBeginCreateOrUpdateOptions contains the optional parameters for the HTTPRoutesClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *HTTPRoutesClient) BeginCreateOrUpdate(ctx context.Context, httpRou // CreateOrUpdate - Create a HttpRouteResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *HTTPRoutesClient) createOrUpdate(ctx context.Context, httpRouteName string, resource HTTPRouteResource, options *HTTPRoutesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, httpRouteName, resource, options) @@ -101,7 +101,7 @@ func (client *HTTPRoutesClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *HTTPRoutesClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete a HttpRouteResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - httpRouteName - HTTPRoute name // - options - HTTPRoutesClientBeginDeleteOptions contains the optional parameters for the HTTPRoutesClient.BeginDelete method. func (client *HTTPRoutesClient) BeginDelete(ctx context.Context, httpRouteName string, options *HTTPRoutesClientBeginDeleteOptions) (*runtime.Poller[HTTPRoutesClientDeleteResponse], error) { @@ -134,7 +134,7 @@ func (client *HTTPRoutesClient) BeginDelete(ctx context.Context, httpRouteName s // Delete - Delete a HttpRouteResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *HTTPRoutesClient) deleteOperation(ctx context.Context, httpRouteName string, options *HTTPRoutesClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, httpRouteName, options) @@ -165,7 +165,7 @@ func (client *HTTPRoutesClient) deleteCreateRequest(ctx context.Context, httpRou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -174,7 +174,7 @@ func (client *HTTPRoutesClient) deleteCreateRequest(ctx context.Context, httpRou // Get - Get a HttpRouteResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - httpRouteName - HTTPRoute name // - options - HTTPRoutesClientGetOptions contains the optional parameters for the HTTPRoutesClient.Get method. func (client *HTTPRoutesClient) Get(ctx context.Context, httpRouteName string, options *HTTPRoutesClientGetOptions) (HTTPRoutesClientGetResponse, error) { @@ -208,7 +208,7 @@ func (client *HTTPRoutesClient) getCreateRequest(ctx context.Context, httpRouteN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -225,7 +225,7 @@ func (client *HTTPRoutesClient) getHandleResponse(resp *http.Response) (HTTPRout // NewListByScopePager - List HttpRouteResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - HTTPRoutesClientListByScopeOptions contains the optional parameters for the HTTPRoutesClient.NewListByScopePager // method. func (client *HTTPRoutesClient) NewListByScopePager(options *HTTPRoutesClientListByScopeOptions) (*runtime.Pager[HTTPRoutesClientListByScopeResponse]) { @@ -265,7 +265,7 @@ func (client *HTTPRoutesClient) listByScopeCreateRequest(ctx context.Context, op return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -283,7 +283,7 @@ func (client *HTTPRoutesClient) listByScopeHandleResponse(resp *http.Response) ( // BeginUpdate - Update a HttpRouteResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - httpRouteName - HTTPRoute name // - properties - The resource properties to be updated. // - options - HTTPRoutesClientBeginUpdateOptions contains the optional parameters for the HTTPRoutesClient.BeginUpdate method. @@ -305,7 +305,7 @@ func (client *HTTPRoutesClient) BeginUpdate(ctx context.Context, httpRouteName s // Update - Update a HttpRouteResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *HTTPRoutesClient) update(ctx context.Context, httpRouteName string, properties HTTPRouteResourceUpdate, options *HTTPRoutesClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, httpRouteName, properties, options) @@ -336,7 +336,7 @@ func (client *HTTPRoutesClient) updateCreateRequest(ctx context.Context, httpRou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_interfaces.go b/pkg/corerp/api/v20231001preview/zz_generated_interfaces.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_interfaces.go rename to pkg/corerp/api/v20231001preview/zz_generated_interfaces.go index ebed5bd3aca..6c2db3e710e 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_interfaces.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_interfaces.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // EnvironmentComputeClassification provides polymorphic access to related types. // Call the interface's GetEnvironmentCompute() method to access the common type. diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_models.go b/pkg/corerp/api/v20231001preview/zz_generated_models.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_models.go rename to pkg/corerp/api/v20231001preview/zz_generated_models.go index 707d39a8452..f1ba3d213df 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_models.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_models.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import "time" diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_models_serde.go b/pkg/corerp/api/v20231001preview/zz_generated_models_serde.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_models_serde.go rename to pkg/corerp/api/v20231001preview/zz_generated_models_serde.go index f56e2e99347..de8b186349f 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_models_serde.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_models_serde.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_operations_client.go b/pkg/corerp/api/v20231001preview/zz_generated_operations_client.go similarity index 95% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_operations_client.go rename to pkg/corerp/api/v20231001preview/zz_generated_operations_client.go index 45332310abf..98a01b0f365 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_operations_client.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_operations_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -38,7 +38,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - List the operations for the provider // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) (*runtime.Pager[OperationsClientListResponse]) { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -76,7 +76,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_options.go b/pkg/corerp/api/v20231001preview/zz_generated_options.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_options.go rename to pkg/corerp/api/v20231001preview/zz_generated_options.go index fe4b6ee5dfa..5e0bc713dc9 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_options.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_options.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // ApplicationsClientCreateOrUpdateOptions contains the optional parameters for the ApplicationsClient.CreateOrUpdate method. type ApplicationsClientCreateOrUpdateOptions struct { diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go b/pkg/corerp/api/v20231001preview/zz_generated_polymorphic_helpers.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go rename to pkg/corerp/api/v20231001preview/zz_generated_polymorphic_helpers.go index 748d969c67b..543b2e01c90 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_polymorphic_helpers.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import "encoding/json" diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_response_types.go b/pkg/corerp/api/v20231001preview/zz_generated_response_types.go similarity index 99% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_response_types.go rename to pkg/corerp/api/v20231001preview/zz_generated_response_types.go index ed14cb1dc7b..acba44febab 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_response_types.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_response_types.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // ApplicationsClientCreateOrUpdateResponse contains the response from method ApplicationsClient.CreateOrUpdate. type ApplicationsClientCreateOrUpdateResponse struct { diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_secretstores_client.go b/pkg/corerp/api/v20231001preview/zz_generated_secretstores_client.go similarity index 95% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_secretstores_client.go rename to pkg/corerp/api/v20231001preview/zz_generated_secretstores_client.go index 6131dcbcdcb..2486c3dc7cf 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_secretstores_client.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_secretstores_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewSecretStoresClient(rootScope string, credential azcore.TokenCredential, // BeginCreateOrUpdate - Create a SecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - secretStoreName - SecretStore name // - resource - Resource create parameters. // - options - SecretStoresClientBeginCreateOrUpdateOptions contains the optional parameters for the SecretStoresClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *SecretStoresClient) BeginCreateOrUpdate(ctx context.Context, secre // CreateOrUpdate - Create a SecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *SecretStoresClient) createOrUpdate(ctx context.Context, secretStoreName string, resource SecretStoreResource, options *SecretStoresClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, secretStoreName, resource, options) @@ -101,7 +101,7 @@ func (client *SecretStoresClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *SecretStoresClient) createOrUpdateCreateRequest(ctx context.Contex // BeginDelete - Delete a SecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - secretStoreName - SecretStore name // - options - SecretStoresClientBeginDeleteOptions contains the optional parameters for the SecretStoresClient.BeginDelete // method. @@ -135,7 +135,7 @@ func (client *SecretStoresClient) BeginDelete(ctx context.Context, secretStoreNa // Delete - Delete a SecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *SecretStoresClient) deleteOperation(ctx context.Context, secretStoreName string, options *SecretStoresClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, secretStoreName, options) @@ -166,7 +166,7 @@ func (client *SecretStoresClient) deleteCreateRequest(ctx context.Context, secre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -175,7 +175,7 @@ func (client *SecretStoresClient) deleteCreateRequest(ctx context.Context, secre // Get - Get a SecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - secretStoreName - SecretStore name // - options - SecretStoresClientGetOptions contains the optional parameters for the SecretStoresClient.Get method. func (client *SecretStoresClient) Get(ctx context.Context, secretStoreName string, options *SecretStoresClientGetOptions) (SecretStoresClientGetResponse, error) { @@ -209,7 +209,7 @@ func (client *SecretStoresClient) getCreateRequest(ctx context.Context, secretSt return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -226,7 +226,7 @@ func (client *SecretStoresClient) getHandleResponse(resp *http.Response) (Secret // NewListByScopePager - List SecretStoreResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - SecretStoresClientListByScopeOptions contains the optional parameters for the SecretStoresClient.NewListByScopePager // method. func (client *SecretStoresClient) NewListByScopePager(options *SecretStoresClientListByScopeOptions) (*runtime.Pager[SecretStoresClientListByScopeResponse]) { @@ -266,7 +266,7 @@ func (client *SecretStoresClient) listByScopeCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -284,7 +284,7 @@ func (client *SecretStoresClient) listByScopeHandleResponse(resp *http.Response) // ListSecrets - List the secrets of a secret stores. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - secretStoreName - SecretStore name // - body - The content of the action request // - options - SecretStoresClientListSecretsOptions contains the optional parameters for the SecretStoresClient.ListSecrets @@ -320,7 +320,7 @@ func (client *SecretStoresClient) listSecretsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -341,7 +341,7 @@ func (client *SecretStoresClient) listSecretsHandleResponse(resp *http.Response) // BeginUpdate - Update a SecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - secretStoreName - SecretStore name // - properties - The resource properties to be updated. // - options - SecretStoresClientBeginUpdateOptions contains the optional parameters for the SecretStoresClient.BeginUpdate @@ -364,7 +364,7 @@ func (client *SecretStoresClient) BeginUpdate(ctx context.Context, secretStoreNa // Update - Update a SecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *SecretStoresClient) update(ctx context.Context, secretStoreName string, properties SecretStoreResourceUpdate, options *SecretStoresClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, secretStoreName, properties, options) @@ -395,7 +395,7 @@ func (client *SecretStoresClient) updateCreateRequest(ctx context.Context, secre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_time_rfc3339.go b/pkg/corerp/api/v20231001preview/zz_generated_time_rfc3339.go similarity index 98% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_time_rfc3339.go rename to pkg/corerp/api/v20231001preview/zz_generated_time_rfc3339.go index 30ea6fa1d04..948a6660cdc 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_time_rfc3339.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_time_rfc3339.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_volumes_client.go b/pkg/corerp/api/v20231001preview/zz_generated_volumes_client.go similarity index 94% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_volumes_client.go rename to pkg/corerp/api/v20231001preview/zz_generated_volumes_client.go index 77c0c7ba687..5b6a16773ed 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_volumes_client.go +++ b/pkg/corerp/api/v20231001preview/zz_generated_volumes_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewVolumesClient(rootScope string, credential azcore.TokenCredential, optio // BeginCreateOrUpdate - Create a VolumeResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - volumeName - Volume name // - resource - Resource create parameters. // - options - VolumesClientBeginCreateOrUpdateOptions contains the optional parameters for the VolumesClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *VolumesClient) BeginCreateOrUpdate(ctx context.Context, volumeName // CreateOrUpdate - Create a VolumeResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *VolumesClient) createOrUpdate(ctx context.Context, volumeName string, resource VolumeResource, options *VolumesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, volumeName, resource, options) @@ -101,7 +101,7 @@ func (client *VolumesClient) createOrUpdateCreateRequest(ctx context.Context, vo return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *VolumesClient) createOrUpdateCreateRequest(ctx context.Context, vo // BeginDelete - Delete a VolumeResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - volumeName - Volume name // - options - VolumesClientBeginDeleteOptions contains the optional parameters for the VolumesClient.BeginDelete method. func (client *VolumesClient) BeginDelete(ctx context.Context, volumeName string, options *VolumesClientBeginDeleteOptions) (*runtime.Poller[VolumesClientDeleteResponse], error) { @@ -134,7 +134,7 @@ func (client *VolumesClient) BeginDelete(ctx context.Context, volumeName string, // Delete - Delete a VolumeResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *VolumesClient) deleteOperation(ctx context.Context, volumeName string, options *VolumesClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, volumeName, options) @@ -165,7 +165,7 @@ func (client *VolumesClient) deleteCreateRequest(ctx context.Context, volumeName return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -174,7 +174,7 @@ func (client *VolumesClient) deleteCreateRequest(ctx context.Context, volumeName // Get - Get a VolumeResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - volumeName - Volume name // - options - VolumesClientGetOptions contains the optional parameters for the VolumesClient.Get method. func (client *VolumesClient) Get(ctx context.Context, volumeName string, options *VolumesClientGetOptions) (VolumesClientGetResponse, error) { @@ -208,7 +208,7 @@ func (client *VolumesClient) getCreateRequest(ctx context.Context, volumeName st return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -225,7 +225,7 @@ func (client *VolumesClient) getHandleResponse(resp *http.Response) (VolumesClie // NewListByScopePager - List VolumeResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - VolumesClientListByScopeOptions contains the optional parameters for the VolumesClient.NewListByScopePager method. func (client *VolumesClient) NewListByScopePager(options *VolumesClientListByScopeOptions) (*runtime.Pager[VolumesClientListByScopeResponse]) { return runtime.NewPager(runtime.PagingHandler[VolumesClientListByScopeResponse]{ @@ -264,7 +264,7 @@ func (client *VolumesClient) listByScopeCreateRequest(ctx context.Context, optio return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -282,7 +282,7 @@ func (client *VolumesClient) listByScopeHandleResponse(resp *http.Response) (Vol // BeginUpdate - Update a VolumeResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - volumeName - Volume name // - properties - The resource properties to be updated. // - options - VolumesClientBeginUpdateOptions contains the optional parameters for the VolumesClient.BeginUpdate method. @@ -304,7 +304,7 @@ func (client *VolumesClient) BeginUpdate(ctx context.Context, volumeName string, // Update - Update a VolumeResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *VolumesClient) update(ctx context.Context, volumeName string, properties VolumeResourceUpdate, options *VolumesClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, volumeName, properties, options) @@ -335,7 +335,7 @@ func (client *VolumesClient) updateCreateRequest(ctx context.Context, volumeName return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/corerp/backend/controller/createorupdateresource_test.go b/pkg/corerp/backend/controller/createorupdateresource_test.go index 51107f2dde0..2bffb02279c 100644 --- a/pkg/corerp/backend/controller/createorupdateresource_test.go +++ b/pkg/corerp/backend/controller/createorupdateresource_test.go @@ -39,7 +39,7 @@ import ( "github.com/radius-project/radius/pkg/ucp/store" ) -func TestCreateOrUpdateResourceRun_20220315PrivatePreview(t *testing.T) { +func TestCreateOrUpdateResourceRun_20231001Preview(t *testing.T) { setupTest := func(tb testing.TB) (func(tb testing.TB), *store.MockStorageClient, *deployment.MockDeploymentProcessor) { mctrl := gomock.NewController(t) diff --git a/pkg/corerp/backend/controller/deleteresource_test.go b/pkg/corerp/backend/controller/deleteresource_test.go index 03a9e87c35b..cfff7053f24 100644 --- a/pkg/corerp/backend/controller/deleteresource_test.go +++ b/pkg/corerp/backend/controller/deleteresource_test.go @@ -30,7 +30,7 @@ import ( "github.com/stretchr/testify/require" ) -func TestDeleteResourceRun_20220315PrivatePreview(t *testing.T) { +func TestDeleteResourceRun_20231001Preview(t *testing.T) { setupTest := func(tb testing.TB) (func(tb testing.TB), *store.MockStorageClient, *deployment.MockDeploymentProcessor, *ctrl.Request) { mctrl := gomock.NewController(t) diff --git a/pkg/corerp/datamodel/converter/application_converter.go b/pkg/corerp/datamodel/converter/application_converter.go index d55534c7f8f..759781e91ee 100644 --- a/pkg/corerp/datamodel/converter/application_converter.go +++ b/pkg/corerp/datamodel/converter/application_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" ) // ApplicationDataModelToVersioned converts version agnostic application datamodel to versioned model. func ApplicationDataModelToVersioned(model *datamodel.Application, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.ApplicationResource{} + case v20231001preview.Version: + versioned := &v20231001preview.ApplicationResource{} err := versioned.ConvertFrom(model) return versioned, err @@ -40,8 +40,8 @@ func ApplicationDataModelToVersioned(model *datamodel.Application, version strin // ApplicationDataModelFromVersioned converts versioned application model to datamodel. func ApplicationDataModelFromVersioned(content []byte, version string) (*datamodel.Application, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.ApplicationResource{} + case v20231001preview.Version: + am := &v20231001preview.ApplicationResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/corerp/datamodel/converter/application_converter_test.go b/pkg/corerp/datamodel/converter/application_converter_test.go index b8848348685..613c1b40f74 100644 --- a/pkg/corerp/datamodel/converter/application_converter_test.go +++ b/pkg/corerp/datamodel/converter/application_converter_test.go @@ -21,7 +21,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/stretchr/testify/require" ) @@ -37,9 +37,9 @@ func TestApplicationDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/applicationresourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.ApplicationResource{}, + "../../api/v20231001preview/testdata/applicationresourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.ApplicationResource{}, nil, }, // TODO: add new conversion tests. @@ -74,8 +74,8 @@ func TestApplicationDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/applicationresource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/applicationresource.json", + "2023-10-01-preview", nil, }, // TODO: add new conversion tests. diff --git a/pkg/corerp/datamodel/converter/container_converter.go b/pkg/corerp/datamodel/converter/container_converter.go index 42a5506966b..8443b651671 100644 --- a/pkg/corerp/datamodel/converter/container_converter.go +++ b/pkg/corerp/datamodel/converter/container_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" ) // ContainerDataModelToVersioned converts version agnostic Container datamodel to versioned model. func ContainerDataModelToVersioned(model *datamodel.ContainerResource, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.ContainerResource{} + case v20231001preview.Version: + versioned := &v20231001preview.ContainerResource{} err := versioned.ConvertFrom(model) return versioned, err @@ -40,8 +40,8 @@ func ContainerDataModelToVersioned(model *datamodel.ContainerResource, version s // ContainerDataModelFromVersioned converts versioned Container model to datamodel. func ContainerDataModelFromVersioned(content []byte, version string) (*datamodel.ContainerResource, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.ContainerResource{} + case v20231001preview.Version: + am := &v20231001preview.ContainerResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/corerp/datamodel/converter/container_converter_test.go b/pkg/corerp/datamodel/converter/container_converter_test.go index 046c9dbaa1a..542724d81da 100644 --- a/pkg/corerp/datamodel/converter/container_converter_test.go +++ b/pkg/corerp/datamodel/converter/container_converter_test.go @@ -21,7 +21,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/stretchr/testify/require" ) @@ -37,9 +37,9 @@ func TestContainerDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/containerresourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.ContainerResource{}, + "../../api/v20231001preview/testdata/containerresourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.ContainerResource{}, nil, }, { @@ -73,8 +73,8 @@ func TestContainerDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/containerresource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/containerresource.json", + "2023-10-01-preview", nil, }, { diff --git a/pkg/corerp/datamodel/converter/environment_converter.go b/pkg/corerp/datamodel/converter/environment_converter.go index 9858949ff43..1002ede1b10 100644 --- a/pkg/corerp/datamodel/converter/environment_converter.go +++ b/pkg/corerp/datamodel/converter/environment_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" ) // EnvironmentDataModelToVersioned converts version agnostic environment datamodel to versioned model. func EnvironmentDataModelToVersioned(model *datamodel.Environment, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.EnvironmentResource{} + case v20231001preview.Version: + versioned := &v20231001preview.EnvironmentResource{} if err := versioned.ConvertFrom(model); err != nil { return nil, err } @@ -42,8 +42,8 @@ func EnvironmentDataModelToVersioned(model *datamodel.Environment, version strin // EnvironmentDataModelFromVersioned converts versioned environment model to datamodel. func EnvironmentDataModelFromVersioned(content []byte, version string) (*datamodel.Environment, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.EnvironmentResource{} + case v20231001preview.Version: + am := &v20231001preview.EnvironmentResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/corerp/datamodel/converter/environment_converter_test.go b/pkg/corerp/datamodel/converter/environment_converter_test.go index dc9ceb76cb9..6a1ac4d854d 100644 --- a/pkg/corerp/datamodel/converter/environment_converter_test.go +++ b/pkg/corerp/datamodel/converter/environment_converter_test.go @@ -22,7 +22,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/stretchr/testify/require" ) @@ -46,9 +46,9 @@ func TestEnvironmentDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/environmentresourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.EnvironmentResource{}, + "../../api/v20231001preview/testdata/environmentresourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.EnvironmentResource{}, nil, }, // TODO: add new conversion tests. @@ -83,8 +83,8 @@ func TestEnvironmentDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/environmentresource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/environmentresource.json", + "2023-10-01-preview", nil, }, // TODO: add new conversion tests. diff --git a/pkg/corerp/datamodel/converter/environmentrecipeproperties_converter.go b/pkg/corerp/datamodel/converter/environmentrecipeproperties_converter.go index 6076e294d76..4ad5b2d5106 100644 --- a/pkg/corerp/datamodel/converter/environmentrecipeproperties_converter.go +++ b/pkg/corerp/datamodel/converter/environmentrecipeproperties_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" ) // EnvironmentRecipePropertiesDataModelToVersioned converts version agnostic environment recipe properties datamodel to versioned model. func EnvironmentRecipePropertiesDataModelToVersioned(model *datamodel.EnvironmentRecipeProperties, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.RecipeGetMetadataResponse{} + case v20231001preview.Version: + versioned := &v20231001preview.RecipeGetMetadataResponse{} if err := versioned.ConvertFrom(model); err != nil { return nil, err } @@ -42,8 +42,8 @@ func EnvironmentRecipePropertiesDataModelToVersioned(model *datamodel.Environmen // RecipeDataModelFromVersioned converts versioned recipe model to datamodel. func RecipeDataModelFromVersioned(content []byte, version string) (*datamodel.Recipe, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.RecipeGetMetadata{} + case v20231001preview.Version: + am := &v20231001preview.RecipeGetMetadata{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/corerp/datamodel/converter/environmentrecipeproperties_converter_test.go b/pkg/corerp/datamodel/converter/environmentrecipeproperties_converter_test.go index 5178154a193..eb79e1bfdc7 100644 --- a/pkg/corerp/datamodel/converter/environmentrecipeproperties_converter_test.go +++ b/pkg/corerp/datamodel/converter/environmentrecipeproperties_converter_test.go @@ -21,7 +21,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/stretchr/testify/require" ) @@ -37,9 +37,9 @@ func TestEnvironmentRecipePropertiesDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/environmentrecipepropertiesdatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.RecipeGetMetadataResponse{}, + "../../api/v20231001preview/testdata/environmentrecipepropertiesdatamodel.json", + "2023-10-01-preview", + &v20231001preview.RecipeGetMetadataResponse{}, nil, }, // TODO: add new conversion tests. @@ -74,8 +74,8 @@ func TestRecipeDatamodelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/reciperesource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/reciperesource.json", + "2023-10-01-preview", nil, }, // TODO: add new conversion tests. diff --git a/pkg/corerp/datamodel/converter/extender_converter.go b/pkg/corerp/datamodel/converter/extender_converter.go index 11904f44afb..fdd16a5cee9 100644 --- a/pkg/corerp/datamodel/converter/extender_converter.go +++ b/pkg/corerp/datamodel/converter/extender_converter.go @@ -20,7 +20,7 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" ) @@ -28,8 +28,8 @@ import ( // string, returning an error if the conversion fails. func ExtenderDataModelToVersioned(model *datamodel.Extender, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.ExtenderResource{} + case v20231001preview.Version: + versioned := &v20231001preview.ExtenderResource{} err := versioned.ConvertFrom(model) if err != nil { return nil, err @@ -46,8 +46,8 @@ func ExtenderDataModelToVersioned(model *datamodel.Extender, version string) (v1 // converts it to a datamodel.Extender struct and returns it, or returns an error if the unmarshal or conversion fails. func ExtenderDataModelFromVersioned(content []byte, version string) (*datamodel.Extender, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.ExtenderResource{} + case v20231001preview.Version: + am := &v20231001preview.ExtenderResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/corerp/datamodel/converter/extender_converter_test.go b/pkg/corerp/datamodel/converter/extender_converter_test.go index 45b02def983..dc720963963 100644 --- a/pkg/corerp/datamodel/converter/extender_converter_test.go +++ b/pkg/corerp/datamodel/converter/extender_converter_test.go @@ -22,7 +22,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/stretchr/testify/require" ) @@ -36,9 +36,9 @@ func TestExtenderDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/extenderresourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.ExtenderResource{}, + "../../api/v20231001preview/testdata/extenderresourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.ExtenderResource{}, nil, }, { @@ -72,13 +72,13 @@ func TestExtenderDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/extender_manual.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/extender_manual.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/extenderresource-invalid.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/extenderresource-invalid.json", + "2023-10-01-preview", errors.New("json: cannot unmarshal number into Go struct field ExtenderProperties.properties.resource of type string"), }, { diff --git a/pkg/corerp/datamodel/converter/gateway_converter.go b/pkg/corerp/datamodel/converter/gateway_converter.go index 9e3d34c392e..b5a7d989850 100644 --- a/pkg/corerp/datamodel/converter/gateway_converter.go +++ b/pkg/corerp/datamodel/converter/gateway_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" ) // GatewayDataModelToVersioned converts version agnostic Gateway datamodel to versioned model. func GatewayDataModelToVersioned(model *datamodel.Gateway, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.GatewayResource{} + case v20231001preview.Version: + versioned := &v20231001preview.GatewayResource{} err := versioned.ConvertFrom(model) return versioned, err @@ -40,8 +40,8 @@ func GatewayDataModelToVersioned(model *datamodel.Gateway, version string) (v1.V // GatewayDataModelFromVersioned converts versioned Gateway model to datamodel. func GatewayDataModelFromVersioned(content []byte, version string) (*datamodel.Gateway, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.GatewayResource{} + case v20231001preview.Version: + am := &v20231001preview.GatewayResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/corerp/datamodel/converter/gateway_converter_test.go b/pkg/corerp/datamodel/converter/gateway_converter_test.go index b61b1602cab..7b5699379de 100644 --- a/pkg/corerp/datamodel/converter/gateway_converter_test.go +++ b/pkg/corerp/datamodel/converter/gateway_converter_test.go @@ -21,7 +21,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/stretchr/testify/require" ) @@ -37,9 +37,9 @@ func TestGatewayDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/gatewayresourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.GatewayResource{}, + "../../api/v20231001preview/testdata/gatewayresourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.GatewayResource{}, nil, }, { @@ -73,8 +73,8 @@ func TestGatewayDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/gatewayresource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/gatewayresource.json", + "2023-10-01-preview", nil, }, { diff --git a/pkg/corerp/datamodel/converter/httproute_converter.go b/pkg/corerp/datamodel/converter/httproute_converter.go index e38d4ef8d87..35917980e57 100644 --- a/pkg/corerp/datamodel/converter/httproute_converter.go +++ b/pkg/corerp/datamodel/converter/httproute_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" ) // HTTPRouteDataModelToVersioned converts version agnostic HTTPRoute datamodel to versioned model. func HTTPRouteDataModelToVersioned(model *datamodel.HTTPRoute, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.HTTPRouteResource{} + case v20231001preview.Version: + versioned := &v20231001preview.HTTPRouteResource{} err := versioned.ConvertFrom(model) return versioned, err @@ -40,8 +40,8 @@ func HTTPRouteDataModelToVersioned(model *datamodel.HTTPRoute, version string) ( // HTTPRouteDataModelFromVersioned converts versioned HTTPRoute model to datamodel. func HTTPRouteDataModelFromVersioned(content []byte, version string) (*datamodel.HTTPRoute, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.HTTPRouteResource{} + case v20231001preview.Version: + am := &v20231001preview.HTTPRouteResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/corerp/datamodel/converter/httproute_converter_test.go b/pkg/corerp/datamodel/converter/httproute_converter_test.go index 014b96cd79c..c91cb8a9aa8 100644 --- a/pkg/corerp/datamodel/converter/httproute_converter_test.go +++ b/pkg/corerp/datamodel/converter/httproute_converter_test.go @@ -21,7 +21,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/stretchr/testify/require" ) @@ -37,9 +37,9 @@ func TestHTTPRouteDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/httprouteresourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.HTTPRouteResource{}, + "../../api/v20231001preview/testdata/httprouteresourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.HTTPRouteResource{}, nil, }, { @@ -73,8 +73,8 @@ func TestHTTPRouteDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/httprouteresource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/httprouteresource.json", + "2023-10-01-preview", nil, }, { diff --git a/pkg/corerp/datamodel/converter/secretstore_converter.go b/pkg/corerp/datamodel/converter/secretstore_converter.go index f51ed9a4195..c758b048a4b 100644 --- a/pkg/corerp/datamodel/converter/secretstore_converter.go +++ b/pkg/corerp/datamodel/converter/secretstore_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" ) // SecretStoreModelToVersioned converts version agnostic SecretStore datamodel to versioned model. func SecretStoreModelToVersioned(model *datamodel.SecretStore, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.SecretStoreResource{} + case v20231001preview.Version: + versioned := &v20231001preview.SecretStoreResource{} err := versioned.ConvertFrom(model) return versioned, err @@ -40,8 +40,8 @@ func SecretStoreModelToVersioned(model *datamodel.SecretStore, version string) ( // ListSecretsToVersioned converts version agnostic SecretStoreListSecrets datamodel to versioned model. func ListSecretsToVersioned(model *datamodel.SecretStoreListSecrets, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.SecretStoresClientListSecretsResponse{} + case v20231001preview.Version: + versioned := &v20231001preview.SecretStoresClientListSecretsResponse{} err := versioned.ConvertFrom(model) return versioned, err @@ -53,8 +53,8 @@ func ListSecretsToVersioned(model *datamodel.SecretStoreListSecrets, version str // SecretStoreModelFromVersioned converts versioned SecretStore model to datamodel. func SecretStoreModelFromVersioned(content []byte, version string) (*datamodel.SecretStore, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.SecretStoreResource{} + case v20231001preview.Version: + am := &v20231001preview.SecretStoreResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/corerp/datamodel/converter/secretstore_converter_test.go b/pkg/corerp/datamodel/converter/secretstore_converter_test.go index 8d4fe5a53f8..4976d9336b3 100644 --- a/pkg/corerp/datamodel/converter/secretstore_converter_test.go +++ b/pkg/corerp/datamodel/converter/secretstore_converter_test.go @@ -21,7 +21,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/stretchr/testify/require" ) @@ -37,9 +37,9 @@ func TestSecretStoreModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/secretstore-datamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.SecretStoreResource{}, + "../../api/v20231001preview/testdata/secretstore-datamodel.json", + "2023-10-01-preview", + &v20231001preview.SecretStoreResource{}, nil, }, { @@ -73,8 +73,8 @@ func TestSecretStoreModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/secretstore-versioned.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/secretstore-versioned.json", + "2023-10-01-preview", nil, }, { diff --git a/pkg/corerp/datamodel/converter/volume_converter.go b/pkg/corerp/datamodel/converter/volume_converter.go index 19bc6e53cc6..523215be0a6 100644 --- a/pkg/corerp/datamodel/converter/volume_converter.go +++ b/pkg/corerp/datamodel/converter/volume_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" ) // VolumeResourceModelToVersioned converts version agnostic Volume datamodel to versioned model. func VolumeResourceModelToVersioned(model *datamodel.VolumeResource, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.VolumeResource{} + case v20231001preview.Version: + versioned := &v20231001preview.VolumeResource{} err := versioned.ConvertFrom(model) return versioned, err @@ -40,8 +40,8 @@ func VolumeResourceModelToVersioned(model *datamodel.VolumeResource, version str // VolumeResourceModelFromVersioned converts versioned Volume model to datamodel. func VolumeResourceModelFromVersioned(content []byte, version string) (*datamodel.VolumeResource, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.VolumeResource{} + case v20231001preview.Version: + am := &v20231001preview.VolumeResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/corerp/datamodel/converter/volume_converter_test.go b/pkg/corerp/datamodel/converter/volume_converter_test.go index e0895dc04b8..4ed11f9125a 100644 --- a/pkg/corerp/datamodel/converter/volume_converter_test.go +++ b/pkg/corerp/datamodel/converter/volume_converter_test.go @@ -21,7 +21,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/stretchr/testify/require" ) @@ -37,9 +37,9 @@ func TestVolumeResourceModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/volume-az-kv-datamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.VolumeResource{}, + "../../api/v20231001preview/testdata/volume-az-kv-datamodel.json", + "2023-10-01-preview", + &v20231001preview.VolumeResource{}, nil, }, { @@ -73,8 +73,8 @@ func TestVolumeResourceModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/volume-az-kv.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/volume-az-kv.json", + "2023-10-01-preview", nil, }, { diff --git a/pkg/corerp/frontend/controller/applications/testdata/application20220315privatepreview_datamodel.json b/pkg/corerp/frontend/controller/applications/testdata/application20231001preview_datamodel.json similarity index 92% rename from pkg/corerp/frontend/controller/applications/testdata/application20220315privatepreview_datamodel.json rename to pkg/corerp/frontend/controller/applications/testdata/application20231001preview_datamodel.json index cab895f8c45..d039409f594 100644 --- a/pkg/corerp/frontend/controller/applications/testdata/application20220315privatepreview_datamodel.json +++ b/pkg/corerp/frontend/controller/applications/testdata/application20231001preview_datamodel.json @@ -35,6 +35,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/frontend/controller/applications/testdata/application20220315privatepreview_input.json b/pkg/corerp/frontend/controller/applications/testdata/application20231001preview_input.json similarity index 100% rename from pkg/corerp/frontend/controller/applications/testdata/application20220315privatepreview_input.json rename to pkg/corerp/frontend/controller/applications/testdata/application20231001preview_input.json diff --git a/pkg/corerp/frontend/controller/applications/testdata/application20220315privatepreview_input_diff_env.json b/pkg/corerp/frontend/controller/applications/testdata/application20231001preview_input_diff_env.json similarity index 100% rename from pkg/corerp/frontend/controller/applications/testdata/application20220315privatepreview_input_diff_env.json rename to pkg/corerp/frontend/controller/applications/testdata/application20231001preview_input_diff_env.json diff --git a/pkg/corerp/frontend/controller/applications/testdata/application20220315privatepreview_output.json b/pkg/corerp/frontend/controller/applications/testdata/application20231001preview_output.json similarity index 100% rename from pkg/corerp/frontend/controller/applications/testdata/application20220315privatepreview_output.json rename to pkg/corerp/frontend/controller/applications/testdata/application20231001preview_output.json diff --git a/pkg/corerp/frontend/controller/containers/testdata/container20220315privatepreview_datamodel.json b/pkg/corerp/frontend/controller/containers/testdata/container20231001preview_datamodel.json similarity index 94% rename from pkg/corerp/frontend/controller/containers/testdata/container20220315privatepreview_datamodel.json rename to pkg/corerp/frontend/controller/containers/testdata/container20231001preview_datamodel.json index ee20dc9fd24..1cefabea284 100644 --- a/pkg/corerp/frontend/controller/containers/testdata/container20220315privatepreview_datamodel.json +++ b/pkg/corerp/frontend/controller/containers/testdata/container20231001preview_datamodel.json @@ -6,8 +6,8 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview", + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview", "systemData": { "createdAt": "2022-03-22T18:54:52.6857175Z", "createdBy": "test@microsoft.com", diff --git a/pkg/corerp/frontend/controller/containers/testdata/container20220315privatepreview_input.json b/pkg/corerp/frontend/controller/containers/testdata/container20231001preview_input.json similarity index 100% rename from pkg/corerp/frontend/controller/containers/testdata/container20220315privatepreview_input.json rename to pkg/corerp/frontend/controller/containers/testdata/container20231001preview_input.json diff --git a/pkg/corerp/frontend/controller/containers/testdata/container20220315privatepreview_input_appid.json b/pkg/corerp/frontend/controller/containers/testdata/container20231001preview_input_appid.json similarity index 100% rename from pkg/corerp/frontend/controller/containers/testdata/container20220315privatepreview_input_appid.json rename to pkg/corerp/frontend/controller/containers/testdata/container20231001preview_input_appid.json diff --git a/pkg/corerp/frontend/controller/containers/testdata/container20220315privatepreview_output.json b/pkg/corerp/frontend/controller/containers/testdata/container20231001preview_output.json similarity index 100% rename from pkg/corerp/frontend/controller/containers/testdata/container20220315privatepreview_output.json rename to pkg/corerp/frontend/controller/containers/testdata/container20231001preview_output.json diff --git a/pkg/corerp/frontend/controller/containers/testdata/requestheaders20220315privatepreview.json b/pkg/corerp/frontend/controller/containers/testdata/requestheaders20231001preview.json similarity index 96% rename from pkg/corerp/frontend/controller/containers/testdata/requestheaders20220315privatepreview.json rename to pkg/corerp/frontend/controller/containers/testdata/requestheaders20231001preview.json index 291802bab1a..33bde64985c 100644 --- a/pkg/corerp/frontend/controller/containers/testdata/requestheaders20220315privatepreview.json +++ b/pkg/corerp/frontend/controller/containers/testdata/requestheaders20231001preview.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/containers/test-container-0?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/containers/test-container-0?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/containers/test-container-0?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/containers/test-container-0?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/corerp/frontend/controller/environments/createorupdateenvironment_test.go b/pkg/corerp/frontend/controller/environments/createorupdateenvironment_test.go index 869ea008b81..9e26d91a88d 100644 --- a/pkg/corerp/frontend/controller/environments/createorupdateenvironment_test.go +++ b/pkg/corerp/frontend/controller/environments/createorupdateenvironment_test.go @@ -26,7 +26,7 @@ import ( ctrl "github.com/radius-project/radius/pkg/armrpc/frontend/controller" "github.com/radius-project/radius/pkg/armrpc/rpctest" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/store" "github.com/golang/mock/gomock" @@ -34,7 +34,7 @@ import ( "github.com/stretchr/testify/require" ) -func TestCreateOrUpdateEnvironmentRun_20220315PrivatePreview(t *testing.T) { +func TestCreateOrUpdateEnvironmentRun_20231001Preview(t *testing.T) { mctrl := gomock.NewController(t) defer mctrl.Finish() @@ -57,7 +57,7 @@ func TestCreateOrUpdateEnvironmentRun_20220315PrivatePreview(t *testing.T) { for _, tt := range createNewResourceCases { t.Run(tt.desc, func(t *testing.T) { - envInput, envDataModel, expectedOutput := getTestModels20220315privatepreview() + envInput, envDataModel, expectedOutput := getTestModels20231001preview() w := httptest.NewRecorder() req, err := rpctest.NewHTTPRequestFromJSON(ctx, http.MethodGet, testHeaderfile, envInput) require.NoError(t, err) @@ -109,7 +109,7 @@ func TestCreateOrUpdateEnvironmentRun_20220315PrivatePreview(t *testing.T) { require.Equal(t, tt.expectedStatusCode, w.Result().StatusCode) if !tt.shouldFail { - actualOutput := &v20220315privatepreview.EnvironmentResource{} + actualOutput := &v20231001preview.EnvironmentResource{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedOutput, actualOutput) @@ -135,7 +135,7 @@ func TestCreateOrUpdateEnvironmentRun_20220315PrivatePreview(t *testing.T) { for _, tt := range updateExistingResourceCases { t.Run(tt.desc, func(t *testing.T) { - envInput, envDataModel, expectedOutput := getTestModels20220315privatepreview() + envInput, envDataModel, expectedOutput := getTestModels20231001preview() w := httptest.NewRecorder() req, err := rpctest.NewHTTPRequestFromJSON(ctx, http.MethodGet, testHeaderfile, envInput) require.NoError(t, err) @@ -188,7 +188,7 @@ func TestCreateOrUpdateEnvironmentRun_20220315PrivatePreview(t *testing.T) { require.Equal(t, tt.expectedStatusCode, w.Result().StatusCode) if !tt.shouldFail { - actualOutput := &v20220315privatepreview.EnvironmentResource{} + actualOutput := &v20231001preview.EnvironmentResource{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedOutput, actualOutput) @@ -212,7 +212,7 @@ func TestCreateOrUpdateEnvironmentRun_20220315PrivatePreview(t *testing.T) { for _, tt := range patchNonExistingResourceCases { t.Run(fmt.Sprint(tt.desc), func(t *testing.T) { - envInput, _, _ := getTestModels20220315privatepreview() + envInput, _, _ := getTestModels20231001preview() w := httptest.NewRecorder() req, err := rpctest.NewHTTPRequestFromJSON(ctx, http.MethodPatch, testHeaderfile, envInput) require.NoError(t, err) @@ -266,7 +266,7 @@ func TestCreateOrUpdateEnvironmentRun_20220315PrivatePreview(t *testing.T) { for _, tt := range patchExistingResourceCases { t.Run(fmt.Sprint(tt.desc), func(t *testing.T) { - envInput, envDataModel, expectedOutput := getTestModels20220315privatepreview() + envInput, envDataModel, expectedOutput := getTestModels20231001preview() w := httptest.NewRecorder() req, err := rpctest.NewHTTPRequestFromJSON(ctx, http.MethodPatch, testHeaderfile, envInput) require.NoError(t, err) @@ -319,7 +319,7 @@ func TestCreateOrUpdateEnvironmentRun_20220315PrivatePreview(t *testing.T) { require.Equal(t, tt.expectedStatusCode, w.Result().StatusCode) if !tt.shouldFail { - actualOutput := &v20220315privatepreview.EnvironmentResource{} + actualOutput := &v20231001preview.EnvironmentResource{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedOutput, actualOutput) } @@ -341,8 +341,8 @@ func TestCreateOrUpdateEnvironmentRun_20220315PrivatePreview(t *testing.T) { for _, tt := range existingResourceNamespaceCases { t.Run(fmt.Sprint(tt.desc), func(t *testing.T) { - envInput, envDataModel, _ := getTestModels20220315privatepreview() - _, conflictDataModel, _ := getTestModels20220315privatepreview() + envInput, envDataModel, _ := getTestModels20231001preview() + _, conflictDataModel, _ := getTestModels20231001preview() conflictDataModel.Name = "existing" conflictDataModel.ID = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/" + tt.existingResourceName diff --git a/pkg/corerp/frontend/controller/environments/getrecipemetadata_test.go b/pkg/corerp/frontend/controller/environments/getrecipemetadata_test.go index ce1c3259e31..68a52773475 100644 --- a/pkg/corerp/frontend/controller/environments/getrecipemetadata_test.go +++ b/pkg/corerp/frontend/controller/environments/getrecipemetadata_test.go @@ -28,7 +28,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" ctrl "github.com/radius-project/radius/pkg/armrpc/frontend/controller" "github.com/radius-project/radius/pkg/armrpc/rpctest" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/recipes" "github.com/radius-project/radius/pkg/recipes/engine" "github.com/radius-project/radius/pkg/ucp/store" @@ -36,7 +36,7 @@ import ( "github.com/stretchr/testify/require" ) -func TestGetRecipeMetadataRun_20220315PrivatePreview(t *testing.T) { +func TestGetRecipeMetadataRun_20231001Preview(t *testing.T) { mctrl := gomock.NewController(t) defer mctrl.Finish() mStorageClient := store.NewMockStorageClient(mctrl) @@ -44,7 +44,7 @@ func TestGetRecipeMetadataRun_20220315PrivatePreview(t *testing.T) { ctx := context.Background() t.Parallel() t.Run("get recipe metadata run", func(t *testing.T) { - envInput, envDataModel, expectedOutput := getTestModelsGetRecipeMetadata20220315privatepreview() + envInput, envDataModel, expectedOutput := getTestModelsGetRecipeMetadata20231001preview() w := httptest.NewRecorder() req, err := rpctest.NewHTTPRequestFromJSON(ctx, v1.OperationPost.HTTPMethod(), testHeaderfilegetrecipemetadata, envInput) require.NoError(t, err) @@ -86,13 +86,13 @@ func TestGetRecipeMetadataRun_20220315PrivatePreview(t *testing.T) { _ = resp.Apply(ctx, w, req) require.Equal(t, 200, w.Result().StatusCode) - actualOutput := &v20220315privatepreview.RecipeGetMetadataResponse{} + actualOutput := &v20231001preview.RecipeGetMetadataResponse{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedOutput, actualOutput) }) t.Run("get recipe metadata run -- terraform", func(t *testing.T) { - envInput, envDataModel, expectedOutput := getTestModelsGetTFRecipeMetadata20220315privatepreview() + envInput, envDataModel, expectedOutput := getTestModelsGetTFRecipeMetadata20231001preview() w := httptest.NewRecorder() req, err := rpctest.NewHTTPRequestFromJSON(ctx, v1.OperationPost.HTTPMethod(), testHeaderfilegetrecipemetadata, envInput) require.NoError(t, err) @@ -134,7 +134,7 @@ func TestGetRecipeMetadataRun_20220315PrivatePreview(t *testing.T) { _ = resp.Apply(ctx, w, req) require.Equal(t, 200, w.Result().StatusCode) - actualOutput := &v20220315privatepreview.RecipeGetMetadataResponse{} + actualOutput := &v20231001preview.RecipeGetMetadataResponse{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedOutput, actualOutput) }) @@ -176,7 +176,7 @@ func TestGetRecipeMetadataRun_20220315PrivatePreview(t *testing.T) { }) t.Run("get recipe metadata non existing recipe", func(t *testing.T) { - envInput, envDataModel := getTestModelsGetRecipeMetadataForNonExistingRecipe20220315privatepreview() + envInput, envDataModel := getTestModelsGetRecipeMetadataForNonExistingRecipe20231001preview() w := httptest.NewRecorder() req, err := rpctest.NewHTTPRequestFromJSON(ctx, v1.OperationPost.HTTPMethod(), testHeaderfilegetrecipemetadatanotexisting, envInput) require.NoError(t, err) @@ -216,7 +216,7 @@ func TestGetRecipeMetadataRun_20220315PrivatePreview(t *testing.T) { }) t.Run("get recipe metadata engine failure", func(t *testing.T) { - envInput, envDataModel, _ := getTestModelsGetRecipeMetadata20220315privatepreview() + envInput, envDataModel, _ := getTestModelsGetRecipeMetadata20231001preview() w := httptest.NewRecorder() req, err := rpctest.NewHTTPRequestFromJSON(ctx, v1.OperationPost.HTTPMethod(), testHeaderfilegetrecipemetadata, envInput) require.NoError(t, err) diff --git a/pkg/corerp/frontend/controller/environments/testdata/environment20220315privatepreview_datamodel.json b/pkg/corerp/frontend/controller/environments/testdata/environment20231001preview_datamodel.json similarity index 93% rename from pkg/corerp/frontend/controller/environments/testdata/environment20220315privatepreview_datamodel.json rename to pkg/corerp/frontend/controller/environments/testdata/environment20231001preview_datamodel.json index 06af66d5270..db3fcb5f4a9 100644 --- a/pkg/corerp/frontend/controller/environments/testdata/environment20220315privatepreview_datamodel.json +++ b/pkg/corerp/frontend/controller/environments/testdata/environment20231001preview_datamodel.json @@ -40,6 +40,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/frontend/controller/environments/testdata/environment20220315privatepreview_input.json b/pkg/corerp/frontend/controller/environments/testdata/environment20231001preview_input.json similarity index 100% rename from pkg/corerp/frontend/controller/environments/testdata/environment20220315privatepreview_input.json rename to pkg/corerp/frontend/controller/environments/testdata/environment20231001preview_input.json diff --git a/pkg/corerp/frontend/controller/environments/testdata/environment20220315privatepreview_output.json b/pkg/corerp/frontend/controller/environments/testdata/environment20231001preview_output.json similarity index 100% rename from pkg/corerp/frontend/controller/environments/testdata/environment20220315privatepreview_output.json rename to pkg/corerp/frontend/controller/environments/testdata/environment20231001preview_output.json diff --git a/pkg/corerp/frontend/controller/environments/testdata/environmentgetmetadatanonexistingrecipe20220315privatepreview_input.json b/pkg/corerp/frontend/controller/environments/testdata/environmentgetmetadatanonexistingrecipe20231001preview_input.json similarity index 100% rename from pkg/corerp/frontend/controller/environments/testdata/environmentgetmetadatanonexistingrecipe20220315privatepreview_input.json rename to pkg/corerp/frontend/controller/environments/testdata/environmentgetmetadatanonexistingrecipe20231001preview_input.json diff --git a/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_datamodel.json b/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_datamodel.json similarity index 94% rename from pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_datamodel.json rename to pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_datamodel.json index 8fddd740f6f..3e5273cc464 100644 --- a/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_datamodel.json +++ b/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_datamodel.json @@ -48,6 +48,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_input.json b/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_input.json similarity index 100% rename from pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_input.json rename to pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_input.json diff --git a/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_input_terraform.json b/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_input_terraform.json similarity index 100% rename from pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_input_terraform.json rename to pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_input_terraform.json diff --git a/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_output.json b/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_output.json similarity index 100% rename from pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_output.json rename to pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_output.json diff --git a/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_output_terraform.json b/pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_output_terraform.json similarity index 100% rename from pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20220315privatepreview_output_terraform.json rename to pkg/corerp/frontend/controller/environments/testdata/environmentgetrecipemetadata20231001preview_output_terraform.json diff --git a/pkg/corerp/frontend/controller/environments/testdata/requestheaders20220315privatepreview.json b/pkg/corerp/frontend/controller/environments/testdata/requestheaders20231001preview.json similarity index 95% rename from pkg/corerp/frontend/controller/environments/testdata/requestheaders20220315privatepreview.json rename to pkg/corerp/frontend/controller/environments/testdata/requestheaders20231001preview.json index 195144f1856..bb505ae353b 100644 --- a/pkg/corerp/frontend/controller/environments/testdata/requestheaders20220315privatepreview.json +++ b/pkg/corerp/frontend/controller/environments/testdata/requestheaders20231001preview.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/env0?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/env0?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/env0?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/env0?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadata20220315privatepreview.json b/pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadata20231001preview.json similarity index 96% rename from pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadata20220315privatepreview.json rename to pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadata20231001preview.json index fd93f83224d..d8ff4a9cda3 100644 --- a/pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadata20220315privatepreview.json +++ b/pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadata20231001preview.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/env0/getmetadata?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/env0/getmetadata?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/env0/getmetadata?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/env0/getmetadata?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadatanotexisting20220315privatepreview.json b/pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadatanotexisting20231001preview.json similarity index 98% rename from pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadatanotexisting20220315privatepreview.json rename to pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadatanotexisting20231001preview.json index 38c362f086f..ee07d475f9e 100644 --- a/pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadatanotexisting20220315privatepreview.json +++ b/pkg/corerp/frontend/controller/environments/testdata/requestheadersgetrecipemetadatanotexisting20231001preview.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/env0/mongodb/getmetadata?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/env0/mongodb/getmetadata?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/env0/mongodb/getmetadata?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/env0/mongodb/getmetadata?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/corerp/frontend/controller/environments/v20220315privatepreview_test.go b/pkg/corerp/frontend/controller/environments/v20231001preview_test.go similarity index 53% rename from pkg/corerp/frontend/controller/environments/v20220315privatepreview_test.go rename to pkg/corerp/frontend/controller/environments/v20231001preview_test.go index 8cfc30b3a50..a3d5dd2dfc4 100644 --- a/pkg/corerp/frontend/controller/environments/v20220315privatepreview_test.go +++ b/pkg/corerp/frontend/controller/environments/v20231001preview_test.go @@ -19,69 +19,69 @@ package environments import ( "encoding/json" - v20220315privatepreview "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/radius-project/radius/test/testutil" ) -const testHeaderfile = "requestheaders20220315privatepreview.json" -const testHeaderfilegetrecipemetadata = "requestheadersgetrecipemetadata20220315privatepreview.json" -const testHeaderfilegetrecipemetadatanotexisting = "requestheadersgetrecipemetadatanotexisting20220315privatepreview.json" +const testHeaderfile = "requestheaders20231001preview.json" +const testHeaderfilegetrecipemetadata = "requestheadersgetrecipemetadata20231001preview.json" +const testHeaderfilegetrecipemetadatanotexisting = "requestheadersgetrecipemetadatanotexisting20231001preview.json" -func getTestModels20220315privatepreview() (*v20220315privatepreview.EnvironmentResource, *datamodel.Environment, *v20220315privatepreview.EnvironmentResource) { - rawInput := testutil.ReadFixture("environment20220315privatepreview_input.json") - envInput := &v20220315privatepreview.EnvironmentResource{} +func getTestModels20231001preview() (*v20231001preview.EnvironmentResource, *datamodel.Environment, *v20231001preview.EnvironmentResource) { + rawInput := testutil.ReadFixture("environment20231001preview_input.json") + envInput := &v20231001preview.EnvironmentResource{} _ = json.Unmarshal(rawInput, envInput) - rawDataModel := testutil.ReadFixture("environment20220315privatepreview_datamodel.json") + rawDataModel := testutil.ReadFixture("environment20231001preview_datamodel.json") envDataModel := &datamodel.Environment{} _ = json.Unmarshal(rawDataModel, envDataModel) - rawExpectedOutput := testutil.ReadFixture("environment20220315privatepreview_output.json") - expectedOutput := &v20220315privatepreview.EnvironmentResource{} + rawExpectedOutput := testutil.ReadFixture("environment20231001preview_output.json") + expectedOutput := &v20231001preview.EnvironmentResource{} _ = json.Unmarshal(rawExpectedOutput, expectedOutput) return envInput, envDataModel, expectedOutput } -func getTestModelsGetRecipeMetadata20220315privatepreview() (*v20220315privatepreview.RecipeGetMetadata, *datamodel.Environment, *v20220315privatepreview.RecipeGetMetadataResponse) { - rawInput := testutil.ReadFixture("environmentgetrecipemetadata20220315privatepreview_input.json") - envInput := &v20220315privatepreview.RecipeGetMetadata{} +func getTestModelsGetRecipeMetadata20231001preview() (*v20231001preview.RecipeGetMetadata, *datamodel.Environment, *v20231001preview.RecipeGetMetadataResponse) { + rawInput := testutil.ReadFixture("environmentgetrecipemetadata20231001preview_input.json") + envInput := &v20231001preview.RecipeGetMetadata{} _ = json.Unmarshal(rawInput, envInput) - rawExistingDataModel := testutil.ReadFixture("environmentgetrecipemetadata20220315privatepreview_datamodel.json") + rawExistingDataModel := testutil.ReadFixture("environmentgetrecipemetadata20231001preview_datamodel.json") envExistingDataModel := &datamodel.Environment{} _ = json.Unmarshal(rawExistingDataModel, envExistingDataModel) - rawExpectedOutput := testutil.ReadFixture("environmentgetrecipemetadata20220315privatepreview_output.json") - expectedOutput := &v20220315privatepreview.RecipeGetMetadataResponse{} + rawExpectedOutput := testutil.ReadFixture("environmentgetrecipemetadata20231001preview_output.json") + expectedOutput := &v20231001preview.RecipeGetMetadataResponse{} _ = json.Unmarshal(rawExpectedOutput, expectedOutput) return envInput, envExistingDataModel, expectedOutput } -func getTestModelsGetTFRecipeMetadata20220315privatepreview() (*v20220315privatepreview.RecipeGetMetadata, *datamodel.Environment, *v20220315privatepreview.RecipeGetMetadataResponse) { - rawInput := testutil.ReadFixture("environmentgetrecipemetadata20220315privatepreview_input_terraform.json") - envInput := &v20220315privatepreview.RecipeGetMetadata{} +func getTestModelsGetTFRecipeMetadata20231001preview() (*v20231001preview.RecipeGetMetadata, *datamodel.Environment, *v20231001preview.RecipeGetMetadataResponse) { + rawInput := testutil.ReadFixture("environmentgetrecipemetadata20231001preview_input_terraform.json") + envInput := &v20231001preview.RecipeGetMetadata{} _ = json.Unmarshal(rawInput, envInput) - rawExistingDataModel := testutil.ReadFixture("environmentgetrecipemetadata20220315privatepreview_datamodel.json") + rawExistingDataModel := testutil.ReadFixture("environmentgetrecipemetadata20231001preview_datamodel.json") envExistingDataModel := &datamodel.Environment{} _ = json.Unmarshal(rawExistingDataModel, envExistingDataModel) - rawExpectedOutput := testutil.ReadFixture("environmentgetrecipemetadata20220315privatepreview_output_terraform.json") - expectedOutput := &v20220315privatepreview.RecipeGetMetadataResponse{} + rawExpectedOutput := testutil.ReadFixture("environmentgetrecipemetadata20231001preview_output_terraform.json") + expectedOutput := &v20231001preview.RecipeGetMetadataResponse{} _ = json.Unmarshal(rawExpectedOutput, expectedOutput) return envInput, envExistingDataModel, expectedOutput } -func getTestModelsGetRecipeMetadataForNonExistingRecipe20220315privatepreview() (*v20220315privatepreview.RecipeGetMetadata, *datamodel.Environment) { - rawInput := testutil.ReadFixture("environmentgetmetadatanonexistingrecipe20220315privatepreview_input.json") - envInput := &v20220315privatepreview.RecipeGetMetadata{} +func getTestModelsGetRecipeMetadataForNonExistingRecipe20231001preview() (*v20231001preview.RecipeGetMetadata, *datamodel.Environment) { + rawInput := testutil.ReadFixture("environmentgetmetadatanonexistingrecipe20231001preview_input.json") + envInput := &v20231001preview.RecipeGetMetadata{} _ = json.Unmarshal(rawInput, envInput) - rawExistingDataModel := testutil.ReadFixture("environmentgetrecipemetadata20220315privatepreview_datamodel.json") + rawExistingDataModel := testutil.ReadFixture("environmentgetrecipemetadata20231001preview_datamodel.json") envExistingDataModel := &datamodel.Environment{} _ = json.Unmarshal(rawExistingDataModel, envExistingDataModel) diff --git a/pkg/corerp/frontend/controller/extenders/listsecretsextender_test.go b/pkg/corerp/frontend/controller/extenders/listsecretsextender_test.go index d18a5ea924d..35ec6181202 100644 --- a/pkg/corerp/frontend/controller/extenders/listsecretsextender_test.go +++ b/pkg/corerp/frontend/controller/extenders/listsecretsextender_test.go @@ -33,7 +33,7 @@ import ( "github.com/stretchr/testify/require" ) -func TestListSecrets_20220315PrivatePreview(t *testing.T) { +func TestListSecrets_20231001Preview(t *testing.T) { setupTest := func(tb testing.TB) (func(tb testing.TB), *store.MockStorageClient, *statusmanager.MockStatusManager) { mctrl := gomock.NewController(t) mds := store.NewMockStorageClient(mctrl) @@ -45,7 +45,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { } ctx := context.Background() - _, extenderDataModel, _ := getTestModels20220315privatepreview() + _, extenderDataModel, _ := getTestModels20231001preview() expectedSecrets := map[string]any{ "accountSid": "sid", "authToken:": "token", diff --git a/pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_datamodel.json b/pkg/corerp/frontend/controller/extenders/testdata/20231001preview_datamodel.json similarity index 93% rename from pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_datamodel.json rename to pkg/corerp/frontend/controller/extenders/testdata/20231001preview_datamodel.json index 3d8c7ff21ad..8909ef50c00 100644 --- a/pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_datamodel.json +++ b/pkg/corerp/frontend/controller/extenders/testdata/20231001preview_datamodel.json @@ -38,6 +38,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_input.json b/pkg/corerp/frontend/controller/extenders/testdata/20231001preview_input.json similarity index 100% rename from pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_input.json rename to pkg/corerp/frontend/controller/extenders/testdata/20231001preview_input.json diff --git a/pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_input_diff_env.json b/pkg/corerp/frontend/controller/extenders/testdata/20231001preview_input_diff_env.json similarity index 100% rename from pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_input_diff_env.json rename to pkg/corerp/frontend/controller/extenders/testdata/20231001preview_input_diff_env.json diff --git a/pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_output.json b/pkg/corerp/frontend/controller/extenders/testdata/20231001preview_output.json similarity index 100% rename from pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_output.json rename to pkg/corerp/frontend/controller/extenders/testdata/20231001preview_output.json diff --git a/pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_requestheaders.json b/pkg/corerp/frontend/controller/extenders/testdata/20231001preview_requestheaders.json similarity index 97% rename from pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_requestheaders.json rename to pkg/corerp/frontend/controller/extenders/testdata/20231001preview_requestheaders.json index fd60d69ffe8..2ac57434ab9 100644 --- a/pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreview_requestheaders.json +++ b/pkg/corerp/frontend/controller/extenders/testdata/20231001preview_requestheaders.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/extenders/extender0?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/extenders/extender0?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/extenders/extender0?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/extenders/extender0?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreviewgetandlist_output.json b/pkg/corerp/frontend/controller/extenders/testdata/20231001previewgetandlist_output.json similarity index 100% rename from pkg/corerp/frontend/controller/extenders/testdata/20220315privatepreviewgetandlist_output.json rename to pkg/corerp/frontend/controller/extenders/testdata/20231001previewgetandlist_output.json diff --git a/pkg/corerp/frontend/controller/extenders/v20220315privatepreview_test.go b/pkg/corerp/frontend/controller/extenders/v20231001preview_test.go similarity index 61% rename from pkg/corerp/frontend/controller/extenders/v20220315privatepreview_test.go rename to pkg/corerp/frontend/controller/extenders/v20231001preview_test.go index ee2bd2dd4f9..041419d7f54 100644 --- a/pkg/corerp/frontend/controller/extenders/v20220315privatepreview_test.go +++ b/pkg/corerp/frontend/controller/extenders/v20231001preview_test.go @@ -19,28 +19,28 @@ package extenders import ( "encoding/json" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/radius-project/radius/test/testutil" ) -const testHeaderfile = "20220315privatepreview_requestheaders.json" +const testHeaderfile = "20231001preview_requestheaders.json" -func getTestModels20220315privatepreview() (input *v20220315privatepreview.ExtenderResource, dataModel *datamodel.Extender, output *v20220315privatepreview.ExtenderResource) { - rawInput := testutil.ReadFixture("20220315privatepreview_input.json") - input = &v20220315privatepreview.ExtenderResource{} +func getTestModels20231001preview() (input *v20231001preview.ExtenderResource, dataModel *datamodel.Extender, output *v20231001preview.ExtenderResource) { + rawInput := testutil.ReadFixture("20231001preview_input.json") + input = &v20231001preview.ExtenderResource{} err := json.Unmarshal(rawInput, input) if err != nil { return nil, nil, nil } - rawDataModel := testutil.ReadFixture("20220315privatepreview_datamodel.json") + rawDataModel := testutil.ReadFixture("20231001preview_datamodel.json") dataModel = &datamodel.Extender{} err = json.Unmarshal(rawDataModel, dataModel) if err != nil { return nil, nil, nil } - rawExpectedOutput := testutil.ReadFixture("20220315privatepreview_output.json") - output = &v20220315privatepreview.ExtenderResource{} + rawExpectedOutput := testutil.ReadFixture("20231001preview_output.json") + output = &v20231001preview.ExtenderResource{} err = json.Unmarshal(rawExpectedOutput, output) if err != nil { return nil, nil, nil diff --git a/pkg/corerp/frontend/controller/gateways/testdata/gateway20220315privatepreview_datamodel.json b/pkg/corerp/frontend/controller/gateways/testdata/gateway20231001preview_datamodel.json similarity index 100% rename from pkg/corerp/frontend/controller/gateways/testdata/gateway20220315privatepreview_datamodel.json rename to pkg/corerp/frontend/controller/gateways/testdata/gateway20231001preview_datamodel.json diff --git a/pkg/corerp/frontend/controller/gateways/testdata/gateway20220315privatepreview_input.json b/pkg/corerp/frontend/controller/gateways/testdata/gateway20231001preview_input.json similarity index 100% rename from pkg/corerp/frontend/controller/gateways/testdata/gateway20220315privatepreview_input.json rename to pkg/corerp/frontend/controller/gateways/testdata/gateway20231001preview_input.json diff --git a/pkg/corerp/frontend/controller/gateways/testdata/gateway20220315privatepreview_input_appid.json b/pkg/corerp/frontend/controller/gateways/testdata/gateway20231001preview_input_appid.json similarity index 100% rename from pkg/corerp/frontend/controller/gateways/testdata/gateway20220315privatepreview_input_appid.json rename to pkg/corerp/frontend/controller/gateways/testdata/gateway20231001preview_input_appid.json diff --git a/pkg/corerp/frontend/controller/gateways/testdata/gateway20220315privatepreview_output.json b/pkg/corerp/frontend/controller/gateways/testdata/gateway20231001preview_output.json similarity index 100% rename from pkg/corerp/frontend/controller/gateways/testdata/gateway20220315privatepreview_output.json rename to pkg/corerp/frontend/controller/gateways/testdata/gateway20231001preview_output.json diff --git a/pkg/corerp/frontend/controller/httproutes/testdata/httproute20220315privatepreview_datamodel.json b/pkg/corerp/frontend/controller/httproutes/testdata/httproute20231001preview_datamodel.json similarity index 91% rename from pkg/corerp/frontend/controller/httproutes/testdata/httproute20220315privatepreview_datamodel.json rename to pkg/corerp/frontend/controller/httproutes/testdata/httproute20231001preview_datamodel.json index a5610567954..ebf5a25c4da 100644 --- a/pkg/corerp/frontend/controller/httproutes/testdata/httproute20220315privatepreview_datamodel.json +++ b/pkg/corerp/frontend/controller/httproutes/testdata/httproute20231001preview_datamodel.json @@ -29,6 +29,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/frontend/controller/httproutes/testdata/httproute20220315privatepreview_input.json b/pkg/corerp/frontend/controller/httproutes/testdata/httproute20231001preview_input.json similarity index 100% rename from pkg/corerp/frontend/controller/httproutes/testdata/httproute20220315privatepreview_input.json rename to pkg/corerp/frontend/controller/httproutes/testdata/httproute20231001preview_input.json diff --git a/pkg/corerp/frontend/controller/httproutes/testdata/httproute20220315privatepreview_input_appid.json b/pkg/corerp/frontend/controller/httproutes/testdata/httproute20231001preview_input_appid.json similarity index 100% rename from pkg/corerp/frontend/controller/httproutes/testdata/httproute20220315privatepreview_input_appid.json rename to pkg/corerp/frontend/controller/httproutes/testdata/httproute20231001preview_input_appid.json diff --git a/pkg/corerp/frontend/controller/httproutes/testdata/httproute20220315privatepreview_output.json b/pkg/corerp/frontend/controller/httproutes/testdata/httproute20231001preview_output.json similarity index 100% rename from pkg/corerp/frontend/controller/httproutes/testdata/httproute20220315privatepreview_output.json rename to pkg/corerp/frontend/controller/httproutes/testdata/httproute20231001preview_output.json diff --git a/pkg/corerp/frontend/controller/secretstores/listsecrets_test.go b/pkg/corerp/frontend/controller/secretstores/listsecrets_test.go index 8de872eb7c2..4b9acb03605 100644 --- a/pkg/corerp/frontend/controller/secretstores/listsecrets_test.go +++ b/pkg/corerp/frontend/controller/secretstores/listsecrets_test.go @@ -27,7 +27,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" ctrl "github.com/radius-project/radius/pkg/armrpc/frontend/controller" "github.com/radius-project/radius/pkg/armrpc/rpctest" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/radius-project/radius/pkg/ucp/store" "github.com/radius-project/radius/test/k8sutil" @@ -37,7 +37,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) -func TestListSecrets_20220315PrivatePreview(t *testing.T) { +func TestListSecrets_20231001Preview(t *testing.T) { mctrl := gomock.NewController(t) defer mctrl.Finish() @@ -45,7 +45,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { req, err := rpctest.NewHTTPRequestWithContent( context.Background(), v1.OperationPost.HTTPMethod(), - "http://localhost:8080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/secretStores/secret0/listsecrets?api-version=2022-03-15-privatepreview", nil) + "http://localhost:8080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/secretStores/secret0/listsecrets?api-version=2023-10-01-preview", nil) require.NoError(t, err) t.Run("not found the resource", func(t *testing.T) { @@ -106,7 +106,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { _ = resp.Apply(ctx, w, req) require.Equal(t, 200, w.Result().StatusCode) - actualOutput := &v20220315privatepreview.SecretStoreListSecretsResult{} + actualOutput := &v20231001preview.SecretStoreListSecretsResult{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) }) } @@ -119,7 +119,7 @@ func TestListSecrets_InvalidKubernetesSecret(t *testing.T) { req, err := rpctest.NewHTTPRequestWithContent( context.Background(), v1.OperationPost.HTTPMethod(), - "http://localhost:8080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/secretStores/secret0/listsecrets?api-version=2022-03-15-privatepreview", nil) + "http://localhost:8080/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/secretStores/secret0/listsecrets?api-version=2023-10-01-preview", nil) require.NoError(t, err) secretdm := testutil.MustGetTestData[datamodel.SecretStore](testFileCertValueFrom) diff --git a/pkg/corerp/frontend/controller/secretstores/testdata/app_datamodel.json b/pkg/corerp/frontend/controller/secretstores/testdata/app_datamodel.json index ac5272ca714..d32184a8ea7 100644 --- a/pkg/corerp/frontend/controller/secretstores/testdata/app_datamodel.json +++ b/pkg/corerp/frontend/controller/secretstores/testdata/app_datamodel.json @@ -35,6 +35,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "testGroup", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/frontend/controller/secretstores/testdata/env_datamodel.json b/pkg/corerp/frontend/controller/secretstores/testdata/env_datamodel.json index 463c791d1fe..475b78cb60c 100644 --- a/pkg/corerp/frontend/controller/secretstores/testdata/env_datamodel.json +++ b/pkg/corerp/frontend/controller/secretstores/testdata/env_datamodel.json @@ -16,6 +16,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "testGroup", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/frontend/controller/secretstores/testdata/env_nonk8s_datamodel.json b/pkg/corerp/frontend/controller/secretstores/testdata/env_nonk8s_datamodel.json index 631b5e85a18..da0109a9e81 100644 --- a/pkg/corerp/frontend/controller/secretstores/testdata/env_nonk8s_datamodel.json +++ b/pkg/corerp/frontend/controller/secretstores/testdata/env_nonk8s_datamodel.json @@ -12,6 +12,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "testGroup", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_cert_value.json b/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_cert_value.json index 52bf43b65d8..21454f86884 100644 --- a/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_cert_value.json +++ b/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_cert_value.json @@ -29,6 +29,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "testGroup", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_cert_valuefrom.json b/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_cert_valuefrom.json index c1ee1af09ba..68c7a08d408 100644 --- a/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_cert_valuefrom.json +++ b/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_cert_valuefrom.json @@ -31,6 +31,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "testGroup", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_generic.json b/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_generic.json index 0d7f83fd295..676017aa842 100644 --- a/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_generic.json +++ b/pkg/corerp/frontend/controller/secretstores/testdata/secretstores_datamodel_generic.json @@ -32,6 +32,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "testGroup", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/corerp/renderers/gateway/render_test.go b/pkg/corerp/renderers/gateway/render_test.go index dab84c49f16..2621183de68 100644 --- a/pkg/corerp/renderers/gateway/render_test.go +++ b/pkg/corerp/renderers/gateway/render_test.go @@ -34,6 +34,7 @@ import ( resources_kubernetes "github.com/radius-project/radius/pkg/ucp/resources/kubernetes" "github.com/radius-project/radius/test/testcontext" "github.com/stretchr/testify/require" + "golang.org/x/exp/slices" ) const ( @@ -1473,6 +1474,10 @@ func validateHTTPProxy(t *testing.T, outputResources []rpv1.OutputResource, expe } } + // Sort the dependencies so that tests aren't flaky + slices.Sort(expectedHTTPProxyOutputResource.CreateResource.Dependencies) + slices.Sort(httpProxyOutputResource.CreateResource.Dependencies) + require.Equal(t, expectedHTTPProxyOutputResource, httpProxyOutputResource) require.Equal(t, kubernetes.NormalizeResourceName(resourceName), httpProxy.Name) require.Equal(t, applicationName, httpProxy.Namespace) diff --git a/pkg/daprrp/api/README.md b/pkg/daprrp/api/README.md index 9aa57fe6759..94df7d3230c 100644 --- a/pkg/daprrp/api/README.md +++ b/pkg/daprrp/api/README.md @@ -15,7 +15,7 @@ npm install -g autorest 1. Add api version tags and openapi file below in this README.md 2. Run autorest. ```bash -autorest README.md --tag=dapr-2022-03-15-privatepreview +autorest README.md --tag=dapr-2023-10-01-preview ``` 3. Create or modify the corresponding datamodels in [datamodel](../datamodel/) 4. Add the converter between versioned model and datamodel in [converter](../datamodel/converter/) @@ -28,13 +28,13 @@ The following are the settings for this using this API with AutoRest. ### Input OpenAPI specificiations -#### Tag: dapr-2022-03-15-privatepreview +#### Tag: dapr-2023-10-01-preview -These settings apply only when `--tag=dapr-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=dapr-2023-10-01-preview` is specified on the command line. -```yaml $(tag) == 'dapr-2022-03-15-privatepreview' +```yaml $(tag) == 'dapr-2023-10-01-preview' input-file: - - ../../../swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/openapi.json + - ../../../swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/openapi.json modelerfour: treat-type-object-as-anything: false ``` @@ -53,10 +53,10 @@ azure-arm: true ### Output -#### Tag: dapr-2022-03-15-privatepreview +#### Tag: dapr-2023-10-01-preview -These settings apply only when `--tag=dapr-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=dapr-2023-10-01-preview` is specified on the command line. -```yaml $(tag) == 'dapr-2022-03-15-privatepreview' -output-folder: ./v20220315privatepreview +```yaml $(tag) == 'dapr-2023-10-01-preview' +output-folder: ./v20231001preview ``` \ No newline at end of file diff --git a/pkg/datastoresrp/api/v20220315privatepreview/datamodel_util.go b/pkg/daprrp/api/v20231001preview/datamodel_util.go similarity index 99% rename from pkg/datastoresrp/api/v20220315privatepreview/datamodel_util.go rename to pkg/daprrp/api/v20231001preview/datamodel_util.go index 64cd7d4158e..62dc748fcec 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/datamodel_util.go +++ b/pkg/daprrp/api/v20231001preview/datamodel_util.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "fmt" @@ -98,6 +98,17 @@ func fromResourceProvisioningDataModel(provisioning portableresources.ResourcePr return &converted } +func fromSystemDataModel(s v1.SystemData) *SystemData { + return &SystemData{ + CreatedBy: to.Ptr(s.CreatedBy), + CreatedByType: (*CreatedByType)(to.Ptr(s.CreatedByType)), + CreatedAt: v1.UnmarshalTimeString(s.CreatedAt), + LastModifiedBy: to.Ptr(s.LastModifiedBy), + LastModifiedByType: (*CreatedByType)(to.Ptr(s.LastModifiedByType)), + LastModifiedAt: v1.UnmarshalTimeString(s.LastModifiedAt), + } +} + func toRecipeDataModel(r *Recipe) portableresources.ResourceRecipe { if r == nil { return portableresources.ResourceRecipe{ @@ -149,17 +160,6 @@ func fromResourcesDataModel(r []*portableresources.ResourceReference) []*Resourc return resources } -func fromSystemDataModel(s v1.SystemData) *SystemData { - return &SystemData{ - CreatedBy: to.Ptr(s.CreatedBy), - CreatedByType: (*CreatedByType)(to.Ptr(s.CreatedByType)), - CreatedAt: v1.UnmarshalTimeString(s.CreatedAt), - LastModifiedBy: to.Ptr(s.LastModifiedBy), - LastModifiedByType: (*CreatedByType)(to.Ptr(s.LastModifiedByType)), - LastModifiedAt: v1.UnmarshalTimeString(s.LastModifiedAt), - } -} - func toOutputResources(outputResources []rpv1.OutputResource) []*OutputResource { var outResources []*OutputResource for _, or := range outputResources { diff --git a/pkg/daprrp/api/v20220315privatepreview/datamodel_util_test.go b/pkg/daprrp/api/v20231001preview/datamodel_util_test.go similarity index 99% rename from pkg/daprrp/api/v20220315privatepreview/datamodel_util_test.go rename to pkg/daprrp/api/v20231001preview/datamodel_util_test.go index 515e76ec069..0d355fa359d 100644 --- a/pkg/daprrp/api/v20220315privatepreview/datamodel_util_test.go +++ b/pkg/daprrp/api/v20231001preview/datamodel_util_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/daprrp/api/v20220315privatepreview/pubsubbroker_conversion.go b/pkg/daprrp/api/v20231001preview/pubsubbroker_conversion.go similarity index 99% rename from pkg/daprrp/api/v20220315privatepreview/pubsubbroker_conversion.go rename to pkg/daprrp/api/v20231001preview/pubsubbroker_conversion.go index 88b5214b1cc..3f7178a214b 100644 --- a/pkg/daprrp/api/v20220315privatepreview/pubsubbroker_conversion.go +++ b/pkg/daprrp/api/v20231001preview/pubsubbroker_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/daprrp/api/v20220315privatepreview/pubsubbroker_conversion_test.go b/pkg/daprrp/api/v20231001preview/pubsubbroker_conversion_test.go similarity index 98% rename from pkg/daprrp/api/v20220315privatepreview/pubsubbroker_conversion_test.go rename to pkg/daprrp/api/v20231001preview/pubsubbroker_conversion_test.go index bddbe94961d..180b2b448b0 100644 --- a/pkg/daprrp/api/v20220315privatepreview/pubsubbroker_conversion_test.go +++ b/pkg/daprrp/api/v20231001preview/pubsubbroker_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -52,7 +52,7 @@ func TestDaprPubSubBroker_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, @@ -92,7 +92,7 @@ func TestDaprPubSubBroker_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, diff --git a/pkg/daprrp/api/v20220315privatepreview/secretstore_conversion.go b/pkg/daprrp/api/v20231001preview/secretstore_conversion.go similarity index 99% rename from pkg/daprrp/api/v20220315privatepreview/secretstore_conversion.go rename to pkg/daprrp/api/v20231001preview/secretstore_conversion.go index 80145f08933..5b88f12505a 100644 --- a/pkg/daprrp/api/v20220315privatepreview/secretstore_conversion.go +++ b/pkg/daprrp/api/v20231001preview/secretstore_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/daprrp/api/v20220315privatepreview/secretstore_conversion_test.go b/pkg/daprrp/api/v20231001preview/secretstore_conversion_test.go similarity index 98% rename from pkg/daprrp/api/v20220315privatepreview/secretstore_conversion_test.go rename to pkg/daprrp/api/v20231001preview/secretstore_conversion_test.go index 8d47ae1e83a..bbd54716776 100644 --- a/pkg/daprrp/api/v20220315privatepreview/secretstore_conversion_test.go +++ b/pkg/daprrp/api/v20231001preview/secretstore_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -52,7 +52,7 @@ func TestDaprSecretStore_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, @@ -87,7 +87,7 @@ func TestDaprSecretStore_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, diff --git a/pkg/daprrp/api/v20220315privatepreview/statestore_conversion.go b/pkg/daprrp/api/v20231001preview/statestore_conversion.go similarity index 99% rename from pkg/daprrp/api/v20220315privatepreview/statestore_conversion.go rename to pkg/daprrp/api/v20231001preview/statestore_conversion.go index 9f2ef1e3c83..ab0129ef338 100644 --- a/pkg/daprrp/api/v20220315privatepreview/statestore_conversion.go +++ b/pkg/daprrp/api/v20231001preview/statestore_conversion.go @@ -1,4 +1,4 @@ -package v20220315privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/daprrp/api/v20220315privatepreview/statestore_conversion_test.go b/pkg/daprrp/api/v20231001preview/statestore_conversion_test.go similarity index 98% rename from pkg/daprrp/api/v20220315privatepreview/statestore_conversion_test.go rename to pkg/daprrp/api/v20231001preview/statestore_conversion_test.go index 5f074e8e01f..738281644bc 100644 --- a/pkg/daprrp/api/v20220315privatepreview/statestore_conversion_test.go +++ b/pkg/daprrp/api/v20231001preview/statestore_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -61,7 +61,7 @@ func TestDaprStateStore_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_invalidmanual_resource.json b/pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_invalidmanual_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_invalidmanual_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_invalidmanual_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_invalidrecipe_resource.json b/pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_invalidrecipe_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_invalidrecipe_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_invalidrecipe_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_manual_datamodel.json b/pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_manual_datamodel.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_manual_datamodel.json rename to pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_manual_datamodel.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_manual_generic_datamodel.json b/pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_manual_generic_datamodel.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_manual_generic_datamodel.json rename to pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_manual_generic_datamodel.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_manual_resource.json b/pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_manual_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_manual_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_manual_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_recipe_datamodel.json b/pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_recipe_datamodel.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_recipe_datamodel.json rename to pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_recipe_datamodel.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_recipe_resource.json b/pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_recipe_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/pubsubbroker_recipe_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/pubsubbroker_recipe_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_invalidrecipe_resource.json b/pkg/daprrp/api/v20231001preview/testdata/secretstore_invalidrecipe_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_invalidrecipe_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/secretstore_invalidrecipe_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_invalidvalues_resource.json b/pkg/daprrp/api/v20231001preview/testdata/secretstore_invalidvalues_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_invalidvalues_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/secretstore_invalidvalues_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_manual_resource.json b/pkg/daprrp/api/v20231001preview/testdata/secretstore_manual_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_manual_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/secretstore_manual_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_manual_resourcedatamodel.json b/pkg/daprrp/api/v20231001preview/testdata/secretstore_manual_resourcedatamodel.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_manual_resourcedatamodel.json rename to pkg/daprrp/api/v20231001preview/testdata/secretstore_manual_resourcedatamodel.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_recipe_resource.json b/pkg/daprrp/api/v20231001preview/testdata/secretstore_recipe_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_recipe_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/secretstore_recipe_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_recipe_resourcedatamodel.json b/pkg/daprrp/api/v20231001preview/testdata/secretstore_recipe_resourcedatamodel.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/secretstore_recipe_resourcedatamodel.json rename to pkg/daprrp/api/v20231001preview/testdata/secretstore_recipe_resourcedatamodel.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/statestore_invalidrecipe_resource.json b/pkg/daprrp/api/v20231001preview/testdata/statestore_invalidrecipe_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/statestore_invalidrecipe_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/statestore_invalidrecipe_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/statestore_invalidvalues_resource.json b/pkg/daprrp/api/v20231001preview/testdata/statestore_invalidvalues_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/statestore_invalidvalues_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/statestore_invalidvalues_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/statestore_recipe_resource.json b/pkg/daprrp/api/v20231001preview/testdata/statestore_recipe_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/statestore_recipe_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/statestore_recipe_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/statestore_recipe_resourcedatamodel.json b/pkg/daprrp/api/v20231001preview/testdata/statestore_recipe_resourcedatamodel.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/statestore_recipe_resourcedatamodel.json rename to pkg/daprrp/api/v20231001preview/testdata/statestore_recipe_resourcedatamodel.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/statestore_values_resource.json b/pkg/daprrp/api/v20231001preview/testdata/statestore_values_resource.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/statestore_values_resource.json rename to pkg/daprrp/api/v20231001preview/testdata/statestore_values_resource.json diff --git a/pkg/daprrp/api/v20220315privatepreview/testdata/statestore_values_resourcedatamodel.json b/pkg/daprrp/api/v20231001preview/testdata/statestore_values_resourcedatamodel.json similarity index 100% rename from pkg/daprrp/api/v20220315privatepreview/testdata/statestore_values_resourcedatamodel.json rename to pkg/daprrp/api/v20231001preview/testdata/statestore_values_resourcedatamodel.json diff --git a/pkg/daprrp/api/v20220315privatepreview/version.go b/pkg/daprrp/api/v20231001preview/version.go similarity index 89% rename from pkg/daprrp/api/v20220315privatepreview/version.go rename to pkg/daprrp/api/v20231001preview/version.go index 3a97781966a..632c27dda69 100644 --- a/pkg/daprrp/api/v20220315privatepreview/version.go +++ b/pkg/daprrp/api/v20231001preview/version.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview // Version represents the api version in this package. -const Version = "2022-03-15-privatepreview" +const Version = "2023-10-01-preview" diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_client_factory.go b/pkg/daprrp/api/v20231001preview/zz_generated_client_factory.go similarity index 98% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_client_factory.go rename to pkg/daprrp/api/v20231001preview/zz_generated_client_factory.go index b288e5d8604..d4df8b1ddd8 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_client_factory.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_client_factory.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_constants.go b/pkg/daprrp/api/v20231001preview/zz_generated_constants.go similarity index 95% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_constants.go rename to pkg/daprrp/api/v20231001preview/zz_generated_constants.go index b0c3e1f1e98..984231f7e80 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_constants.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_constants.go @@ -5,10 +5,10 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview const ( - moduleName = "v20220315privatepreview" + moduleName = "v20231001preview" moduleVersion = "v0.0.1" ) @@ -140,14 +140,14 @@ func PossibleResourceProvisioningValues() []ResourceProvisioning { type Versions string const ( - // VersionsV20220315Privatepreview - 2022-03-15-privatepreview - VersionsV20220315Privatepreview Versions = "2022-03-15-privatepreview" + // VersionsV20231001Preview - 2023-10-01-preview + VersionsV20231001Preview Versions = "2023-10-01-preview" ) // PossibleVersionsValues returns the possible values for the Versions const type. func PossibleVersionsValues() []Versions { return []Versions{ - VersionsV20220315Privatepreview, + VersionsV20231001Preview, } } diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_interfaces.go b/pkg/daprrp/api/v20231001preview/zz_generated_interfaces.go similarity index 96% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_interfaces.go rename to pkg/daprrp/api/v20231001preview/zz_generated_interfaces.go index 104e8355bda..ff4b623caed 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_interfaces.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_interfaces.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // EnvironmentComputeClassification provides polymorphic access to related types. // Call the interface's GetEnvironmentCompute() method to access the common type. diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_models.go b/pkg/daprrp/api/v20231001preview/zz_generated_models.go similarity index 99% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_models.go rename to pkg/daprrp/api/v20231001preview/zz_generated_models.go index 0ccb1a04776..fb53d52db7b 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_models.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_models.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import "time" diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_models_serde.go b/pkg/daprrp/api/v20231001preview/zz_generated_models_serde.go similarity index 99% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_models_serde.go rename to pkg/daprrp/api/v20231001preview/zz_generated_models_serde.go index 47bba809836..3174b7bdcce 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_models_serde.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_models_serde.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_operations_client.go b/pkg/daprrp/api/v20231001preview/zz_generated_operations_client.go similarity index 95% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_operations_client.go rename to pkg/daprrp/api/v20231001preview/zz_generated_operations_client.go index e31434b814f..1d06869df20 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_operations_client.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_operations_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -38,7 +38,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - List the operations for the provider // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) (*runtime.Pager[OperationsClientListResponse]) { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -76,7 +76,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_options.go b/pkg/daprrp/api/v20231001preview/zz_generated_options.go similarity index 99% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_options.go rename to pkg/daprrp/api/v20231001preview/zz_generated_options.go index 0cdf9f24585..2f0d7f2e521 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_options.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_options.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go b/pkg/daprrp/api/v20231001preview/zz_generated_polymorphic_helpers.go similarity index 96% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go rename to pkg/daprrp/api/v20231001preview/zz_generated_polymorphic_helpers.go index 83f13ff53e9..c574dd5eea4 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_polymorphic_helpers.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import "encoding/json" diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_pubsubbrokers_client.go b/pkg/daprrp/api/v20231001preview/zz_generated_pubsubbrokers_client.go similarity index 95% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_pubsubbrokers_client.go rename to pkg/daprrp/api/v20231001preview/zz_generated_pubsubbrokers_client.go index 8ce667a2604..ab583128150 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_pubsubbrokers_client.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_pubsubbrokers_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewPubSubBrokersClient(rootScope string, credential azcore.TokenCredential, // BeginCreateOrUpdate - Create a DaprPubSubBrokerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - pubSubBrokerName - PubSubBroker name // - resource - Resource create parameters. // - options - PubSubBrokersClientBeginCreateOrUpdateOptions contains the optional parameters for the PubSubBrokersClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *PubSubBrokersClient) BeginCreateOrUpdate(ctx context.Context, pubS // CreateOrUpdate - Create a DaprPubSubBrokerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *PubSubBrokersClient) createOrUpdate(ctx context.Context, pubSubBrokerName string, resource DaprPubSubBrokerResource, options *PubSubBrokersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, pubSubBrokerName, resource, options) @@ -101,7 +101,7 @@ func (client *PubSubBrokersClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *PubSubBrokersClient) createOrUpdateCreateRequest(ctx context.Conte // BeginDelete - Delete a DaprPubSubBrokerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - pubSubBrokerName - PubSubBroker name // - options - PubSubBrokersClientBeginDeleteOptions contains the optional parameters for the PubSubBrokersClient.BeginDelete // method. @@ -135,7 +135,7 @@ func (client *PubSubBrokersClient) BeginDelete(ctx context.Context, pubSubBroker // Delete - Delete a DaprPubSubBrokerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *PubSubBrokersClient) deleteOperation(ctx context.Context, pubSubBrokerName string, options *PubSubBrokersClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, pubSubBrokerName, options) @@ -166,7 +166,7 @@ func (client *PubSubBrokersClient) deleteCreateRequest(ctx context.Context, pubS return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -175,7 +175,7 @@ func (client *PubSubBrokersClient) deleteCreateRequest(ctx context.Context, pubS // Get - Get a DaprPubSubBrokerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - pubSubBrokerName - PubSubBroker name // - options - PubSubBrokersClientGetOptions contains the optional parameters for the PubSubBrokersClient.Get method. func (client *PubSubBrokersClient) Get(ctx context.Context, pubSubBrokerName string, options *PubSubBrokersClientGetOptions) (PubSubBrokersClientGetResponse, error) { @@ -209,7 +209,7 @@ func (client *PubSubBrokersClient) getCreateRequest(ctx context.Context, pubSubB return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -226,7 +226,7 @@ func (client *PubSubBrokersClient) getHandleResponse(resp *http.Response) (PubSu // NewListByScopePager - List DaprPubSubBrokerResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - PubSubBrokersClientListByScopeOptions contains the optional parameters for the PubSubBrokersClient.NewListByScopePager // method. func (client *PubSubBrokersClient) NewListByScopePager(options *PubSubBrokersClientListByScopeOptions) (*runtime.Pager[PubSubBrokersClientListByScopeResponse]) { @@ -266,7 +266,7 @@ func (client *PubSubBrokersClient) listByScopeCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -284,7 +284,7 @@ func (client *PubSubBrokersClient) listByScopeHandleResponse(resp *http.Response // BeginUpdate - Update a DaprPubSubBrokerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - pubSubBrokerName - PubSubBroker name // - properties - The resource properties to be updated. // - options - PubSubBrokersClientBeginUpdateOptions contains the optional parameters for the PubSubBrokersClient.BeginUpdate @@ -307,7 +307,7 @@ func (client *PubSubBrokersClient) BeginUpdate(ctx context.Context, pubSubBroker // Update - Update a DaprPubSubBrokerResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *PubSubBrokersClient) update(ctx context.Context, pubSubBrokerName string, properties DaprPubSubBrokerResourceUpdate, options *PubSubBrokersClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, pubSubBrokerName, properties, options) @@ -338,7 +338,7 @@ func (client *PubSubBrokersClient) updateCreateRequest(ctx context.Context, pubS return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_response_types.go b/pkg/daprrp/api/v20231001preview/zz_generated_response_types.go similarity index 99% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_response_types.go rename to pkg/daprrp/api/v20231001preview/zz_generated_response_types.go index a2a70b8613b..24b361f6005 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_response_types.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_response_types.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_secretstores_client.go b/pkg/daprrp/api/v20231001preview/zz_generated_secretstores_client.go similarity index 95% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_secretstores_client.go rename to pkg/daprrp/api/v20231001preview/zz_generated_secretstores_client.go index 5e3692b2421..7c2f044762d 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_secretstores_client.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_secretstores_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewSecretStoresClient(rootScope string, credential azcore.TokenCredential, // BeginCreateOrUpdate - Create a DaprSecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - secretStoreName - SecretStore name // - resource - Resource create parameters. // - options - SecretStoresClientBeginCreateOrUpdateOptions contains the optional parameters for the SecretStoresClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *SecretStoresClient) BeginCreateOrUpdate(ctx context.Context, secre // CreateOrUpdate - Create a DaprSecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *SecretStoresClient) createOrUpdate(ctx context.Context, secretStoreName string, resource DaprSecretStoreResource, options *SecretStoresClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, secretStoreName, resource, options) @@ -101,7 +101,7 @@ func (client *SecretStoresClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *SecretStoresClient) createOrUpdateCreateRequest(ctx context.Contex // BeginDelete - Delete a DaprSecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - secretStoreName - SecretStore name // - options - SecretStoresClientBeginDeleteOptions contains the optional parameters for the SecretStoresClient.BeginDelete // method. @@ -135,7 +135,7 @@ func (client *SecretStoresClient) BeginDelete(ctx context.Context, secretStoreNa // Delete - Delete a DaprSecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *SecretStoresClient) deleteOperation(ctx context.Context, secretStoreName string, options *SecretStoresClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, secretStoreName, options) @@ -166,7 +166,7 @@ func (client *SecretStoresClient) deleteCreateRequest(ctx context.Context, secre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -175,7 +175,7 @@ func (client *SecretStoresClient) deleteCreateRequest(ctx context.Context, secre // Get - Get a DaprSecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - secretStoreName - SecretStore name // - options - SecretStoresClientGetOptions contains the optional parameters for the SecretStoresClient.Get method. func (client *SecretStoresClient) Get(ctx context.Context, secretStoreName string, options *SecretStoresClientGetOptions) (SecretStoresClientGetResponse, error) { @@ -209,7 +209,7 @@ func (client *SecretStoresClient) getCreateRequest(ctx context.Context, secretSt return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -226,7 +226,7 @@ func (client *SecretStoresClient) getHandleResponse(resp *http.Response) (Secret // NewListByScopePager - List DaprSecretStoreResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - SecretStoresClientListByScopeOptions contains the optional parameters for the SecretStoresClient.NewListByScopePager // method. func (client *SecretStoresClient) NewListByScopePager(options *SecretStoresClientListByScopeOptions) (*runtime.Pager[SecretStoresClientListByScopeResponse]) { @@ -266,7 +266,7 @@ func (client *SecretStoresClient) listByScopeCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -284,7 +284,7 @@ func (client *SecretStoresClient) listByScopeHandleResponse(resp *http.Response) // BeginUpdate - Update a DaprSecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - secretStoreName - SecretStore name // - properties - The resource properties to be updated. // - options - SecretStoresClientBeginUpdateOptions contains the optional parameters for the SecretStoresClient.BeginUpdate @@ -307,7 +307,7 @@ func (client *SecretStoresClient) BeginUpdate(ctx context.Context, secretStoreNa // Update - Update a DaprSecretStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *SecretStoresClient) update(ctx context.Context, secretStoreName string, properties DaprSecretStoreResourceUpdate, options *SecretStoresClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, secretStoreName, properties, options) @@ -338,7 +338,7 @@ func (client *SecretStoresClient) updateCreateRequest(ctx context.Context, secre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_statestores_client.go b/pkg/daprrp/api/v20231001preview/zz_generated_statestores_client.go similarity index 95% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_statestores_client.go rename to pkg/daprrp/api/v20231001preview/zz_generated_statestores_client.go index 3e466844137..f65e8d208af 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_statestores_client.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_statestores_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewStateStoresClient(rootScope string, credential azcore.TokenCredential, o // BeginCreateOrUpdate - Create a DaprStateStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - stateStoreName - StateStore name // - resource - Resource create parameters. // - options - StateStoresClientBeginCreateOrUpdateOptions contains the optional parameters for the StateStoresClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *StateStoresClient) BeginCreateOrUpdate(ctx context.Context, stateS // CreateOrUpdate - Create a DaprStateStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *StateStoresClient) createOrUpdate(ctx context.Context, stateStoreName string, resource DaprStateStoreResource, options *StateStoresClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, stateStoreName, resource, options) @@ -101,7 +101,7 @@ func (client *StateStoresClient) createOrUpdateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *StateStoresClient) createOrUpdateCreateRequest(ctx context.Context // BeginDelete - Delete a DaprStateStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - stateStoreName - StateStore name // - options - StateStoresClientBeginDeleteOptions contains the optional parameters for the StateStoresClient.BeginDelete method. func (client *StateStoresClient) BeginDelete(ctx context.Context, stateStoreName string, options *StateStoresClientBeginDeleteOptions) (*runtime.Poller[StateStoresClientDeleteResponse], error) { @@ -134,7 +134,7 @@ func (client *StateStoresClient) BeginDelete(ctx context.Context, stateStoreName // Delete - Delete a DaprStateStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *StateStoresClient) deleteOperation(ctx context.Context, stateStoreName string, options *StateStoresClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, stateStoreName, options) @@ -165,7 +165,7 @@ func (client *StateStoresClient) deleteCreateRequest(ctx context.Context, stateS return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -174,7 +174,7 @@ func (client *StateStoresClient) deleteCreateRequest(ctx context.Context, stateS // Get - Get a DaprStateStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - stateStoreName - StateStore name // - options - StateStoresClientGetOptions contains the optional parameters for the StateStoresClient.Get method. func (client *StateStoresClient) Get(ctx context.Context, stateStoreName string, options *StateStoresClientGetOptions) (StateStoresClientGetResponse, error) { @@ -208,7 +208,7 @@ func (client *StateStoresClient) getCreateRequest(ctx context.Context, stateStor return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -225,7 +225,7 @@ func (client *StateStoresClient) getHandleResponse(resp *http.Response) (StateSt // NewListByScopePager - List DaprStateStoreResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - StateStoresClientListByScopeOptions contains the optional parameters for the StateStoresClient.NewListByScopePager // method. func (client *StateStoresClient) NewListByScopePager(options *StateStoresClientListByScopeOptions) (*runtime.Pager[StateStoresClientListByScopeResponse]) { @@ -265,7 +265,7 @@ func (client *StateStoresClient) listByScopeCreateRequest(ctx context.Context, o return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -283,7 +283,7 @@ func (client *StateStoresClient) listByScopeHandleResponse(resp *http.Response) // BeginUpdate - Update a DaprStateStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - stateStoreName - StateStore name // - properties - The resource properties to be updated. // - options - StateStoresClientBeginUpdateOptions contains the optional parameters for the StateStoresClient.BeginUpdate method. @@ -305,7 +305,7 @@ func (client *StateStoresClient) BeginUpdate(ctx context.Context, stateStoreName // Update - Update a DaprStateStoreResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *StateStoresClient) update(ctx context.Context, stateStoreName string, properties DaprStateStoreResourceUpdate, options *StateStoresClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, stateStoreName, properties, options) @@ -336,7 +336,7 @@ func (client *StateStoresClient) updateCreateRequest(ctx context.Context, stateS return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_time_rfc3339.go b/pkg/daprrp/api/v20231001preview/zz_generated_time_rfc3339.go similarity index 98% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_time_rfc3339.go rename to pkg/daprrp/api/v20231001preview/zz_generated_time_rfc3339.go index 30ea6fa1d04..948a6660cdc 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_time_rfc3339.go +++ b/pkg/daprrp/api/v20231001preview/zz_generated_time_rfc3339.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview diff --git a/pkg/daprrp/datamodel/converter/pubsubbroker_converter.go b/pkg/daprrp/datamodel/converter/pubsubbroker_converter.go index 7f7dbff24c8..e54677ddf6e 100644 --- a/pkg/daprrp/datamodel/converter/pubsubbroker_converter.go +++ b/pkg/daprrp/datamodel/converter/pubsubbroker_converter.go @@ -20,7 +20,7 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/daprrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/daprrp/api/v20231001preview" "github.com/radius-project/radius/pkg/daprrp/datamodel" ) @@ -28,8 +28,8 @@ import ( // string, returning an error if the version is not supported. func PubSubBrokerDataModelToVersioned(model *datamodel.DaprPubSubBroker, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.DaprPubSubBrokerResource{} + case v20231001preview.Version: + versioned := &v20231001preview.DaprPubSubBrokerResource{} err := versioned.ConvertFrom(model) return versioned, err @@ -42,8 +42,8 @@ func PubSubBrokerDataModelToVersioned(model *datamodel.DaprPubSubBroker, version // to a version-agnostic datamodel PubSubBroker, returning an error if either operation fails. func PubSubBrokerDataModelFromVersioned(content []byte, version string) (*datamodel.DaprPubSubBroker, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.DaprPubSubBrokerResource{} + case v20231001preview.Version: + am := &v20231001preview.DaprPubSubBrokerResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/daprrp/datamodel/converter/pubsubbroker_converter_test.go b/pkg/daprrp/datamodel/converter/pubsubbroker_converter_test.go index b5d1750ec0f..9c696218981 100644 --- a/pkg/daprrp/datamodel/converter/pubsubbroker_converter_test.go +++ b/pkg/daprrp/datamodel/converter/pubsubbroker_converter_test.go @@ -22,7 +22,7 @@ import ( "time" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/daprrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/daprrp/api/v20231001preview" "github.com/radius-project/radius/pkg/daprrp/datamodel" "github.com/radius-project/radius/pkg/to" "github.com/radius-project/radius/test/testutil" @@ -42,24 +42,24 @@ func TestPubSubBrokerDataModelToVersioned(t *testing.T) { dataModelFile string apiVersion string apiModelType any - expected *v20220315privatepreview.DaprPubSubBrokerResource + expected *v20231001preview.DaprPubSubBrokerResource err error }{ { - "../../api/v20220315privatepreview/testdata/pubsubbroker_manual_datamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.DaprPubSubBrokerResource{}, - &v20220315privatepreview.DaprPubSubBrokerResource{ + "../../api/v20231001preview/testdata/pubsubbroker_manual_datamodel.json", + "2023-10-01-preview", + &v20231001preview.DaprPubSubBrokerResource{}, + &v20231001preview.DaprPubSubBrokerResource{ Location: to.Ptr("global"), - Properties: &v20220315privatepreview.DaprPubSubBrokerProperties{ + Properties: &v20231001preview.DaprPubSubBrokerProperties{ Environment: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/test-env"), Application: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/applications/test-app"), Metadata: map[string]interface{}{ "foo": "bar", }, Recipe: nil, - ResourceProvisioning: to.Ptr(v20220315privatepreview.ResourceProvisioningManual), - Resources: []*v20220315privatepreview.ResourceReference{ + ResourceProvisioning: to.Ptr(v20231001preview.ResourceProvisioningManual), + Resources: []*v20231001preview.ResourceReference{ { ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup/providers/Microsoft.ServiceBus/namespaces/radius-eastus-async"), }, @@ -67,66 +67,66 @@ func TestPubSubBrokerDataModelToVersioned(t *testing.T) { Type: to.Ptr("pubsub.azure.servicebus"), Version: to.Ptr("v1"), ComponentName: to.Ptr("test-dpsb"), - ProvisioningState: to.Ptr(v20220315privatepreview.ProvisioningStateAccepted), - Status: resourcetypeutil.MustPopulateResourceStatus(&v20220315privatepreview.ResourceStatus{}), + ProvisioningState: to.Ptr(v20231001preview.ProvisioningStateAccepted), + Status: resourcetypeutil.MustPopulateResourceStatus(&v20231001preview.ResourceStatus{}), }, Tags: map[string]*string{ "env": to.Ptr("dev"), }, ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Dapr/pubSubBrokers/test-dpsb"), Name: to.Ptr("test-dpsb"), - SystemData: &v20220315privatepreview.SystemData{ + SystemData: &v20231001preview.SystemData{ CreatedAt: &createdAt, CreatedBy: to.Ptr("fakeid@live.com"), - CreatedByType: to.Ptr(v20220315privatepreview.CreatedByTypeUser), + CreatedByType: to.Ptr(v20231001preview.CreatedByTypeUser), LastModifiedAt: &lastModifiedAt, LastModifiedBy: to.Ptr("fakeid@live.com"), - LastModifiedByType: to.Ptr(v20220315privatepreview.CreatedByTypeUser), + LastModifiedByType: to.Ptr(v20231001preview.CreatedByTypeUser), }, Type: to.Ptr("Applications.Dapr/pubSubBrokers"), }, nil, }, { - "../../api/v20220315privatepreview/testdata/pubsubbroker_manual_generic_datamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.DaprPubSubBrokerResource{}, - &v20220315privatepreview.DaprPubSubBrokerResource{ + "../../api/v20231001preview/testdata/pubsubbroker_manual_generic_datamodel.json", + "2023-10-01-preview", + &v20231001preview.DaprPubSubBrokerResource{}, + &v20231001preview.DaprPubSubBrokerResource{ Location: to.Ptr("global"), - Properties: &v20220315privatepreview.DaprPubSubBrokerProperties{ + Properties: &v20231001preview.DaprPubSubBrokerProperties{ Environment: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/environments/test-env"), Application: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Core/applications/test-app"), Metadata: map[string]interface{}{ "foo": "bar", }, Recipe: nil, - ResourceProvisioning: to.Ptr(v20220315privatepreview.ResourceProvisioningManual), + ResourceProvisioning: to.Ptr(v20231001preview.ResourceProvisioningManual), Resources: nil, Type: to.Ptr("pubsub.kafka"), Version: to.Ptr("v1"), ComponentName: to.Ptr("test-dpsb"), - ProvisioningState: to.Ptr(v20220315privatepreview.ProvisioningStateAccepted), - Status: resourcetypeutil.MustPopulateResourceStatus(&v20220315privatepreview.ResourceStatus{}), + ProvisioningState: to.Ptr(v20231001preview.ProvisioningStateAccepted), + Status: resourcetypeutil.MustPopulateResourceStatus(&v20231001preview.ResourceStatus{}), }, Tags: map[string]*string{ "env": to.Ptr("dev"), }, ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Dapr/pubSubBrokers/test-dpsb"), Name: to.Ptr("test-dpsb"), - SystemData: &v20220315privatepreview.SystemData{ + SystemData: &v20231001preview.SystemData{ CreatedAt: &createdAt, CreatedBy: to.Ptr("fakeid@live.com"), - CreatedByType: to.Ptr(v20220315privatepreview.CreatedByTypeUser), + CreatedByType: to.Ptr(v20231001preview.CreatedByTypeUser), LastModifiedAt: &lastModifiedAt, LastModifiedBy: to.Ptr("fakeid@live.com"), - LastModifiedByType: to.Ptr(v20220315privatepreview.CreatedByTypeUser), + LastModifiedByType: to.Ptr(v20231001preview.CreatedByTypeUser), }, Type: to.Ptr("Applications.Dapr/pubSubBrokers"), }, nil, }, { - "../../api/v20220315privatepreview/testdata/pubsubbroker_manual_generic_datamodel.json", + "../../api/v20231001preview/testdata/pubsubbroker_manual_generic_datamodel.json", "unsupported", nil, nil, @@ -160,33 +160,33 @@ func TestDaprPubSubBrokerDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/pubsubbroker_invalidrecipe_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/pubsubbroker_invalidrecipe_resource.json", + "2023-10-01-preview", &v1.ErrClientRP{ Code: v1.CodeInvalid, Message: "error(s) found:\n\tmetadata cannot be specified when resourceProvisioning is set to recipe (default)\n\ttype cannot be specified when resourceProvisioning is set to recipe (default)\n\tversion cannot be specified when resourceProvisioning is set to recipe (default)", }, }, { - "../../api/v20220315privatepreview/testdata/pubsubbroker_invalidmanual_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/pubsubbroker_invalidmanual_resource.json", + "2023-10-01-preview", &v1.ErrClientRP{ Code: "BadRequest", Message: "error(s) found:\n\trecipe details cannot be specified when resourceProvisioning is set to manual\n\tmetadata must be specified when resourceProvisioning is set to manual\n\ttype must be specified when resourceProvisioning is set to manual\n\tversion must be specified when resourceProvisioning is set to manual", }, }, { - "../../api/v20220315privatepreview/testdata/pubsubbroker_recipe_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/pubsubbroker_recipe_resource.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/pubsubbroker_manual_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/pubsubbroker_manual_resource.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/pubsubbroker_manual_resource.json", + "../../api/v20231001preview/testdata/pubsubbroker_manual_resource.json", "unsupported", v1.ErrUnsupportedAPIVersion, }, diff --git a/pkg/daprrp/datamodel/converter/secretstore_converter.go b/pkg/daprrp/datamodel/converter/secretstore_converter.go index 5c56cb6eb28..c7618140eed 100644 --- a/pkg/daprrp/datamodel/converter/secretstore_converter.go +++ b/pkg/daprrp/datamodel/converter/secretstore_converter.go @@ -20,7 +20,7 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/daprrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/daprrp/api/v20231001preview" "github.com/radius-project/radius/pkg/daprrp/datamodel" ) @@ -28,8 +28,8 @@ import ( // string, returning an error if the version is not supported. func SecretStoreDataModelToVersioned(model *datamodel.DaprSecretStore, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.DaprSecretStoreResource{} + case v20231001preview.Version: + versioned := &v20231001preview.DaprSecretStoreResource{} err := versioned.ConvertFrom(model) return versioned, err @@ -42,8 +42,8 @@ func SecretStoreDataModelToVersioned(model *datamodel.DaprSecretStore, version s // it to a version-agnostic DaprSecretStore object, returning an error if either of these steps fail. func SecretStoreDataModelFromVersioned(content []byte, version string) (*datamodel.DaprSecretStore, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.DaprSecretStoreResource{} + case v20231001preview.Version: + am := &v20231001preview.DaprSecretStoreResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/daprrp/datamodel/converter/secretstore_converter_test.go b/pkg/daprrp/datamodel/converter/secretstore_converter_test.go index 8adc5481118..c9fdc663ba6 100644 --- a/pkg/daprrp/datamodel/converter/secretstore_converter_test.go +++ b/pkg/daprrp/datamodel/converter/secretstore_converter_test.go @@ -22,7 +22,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/daprrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/daprrp/api/v20231001preview" "github.com/radius-project/radius/pkg/daprrp/datamodel" "github.com/radius-project/radius/test/testutil" "github.com/stretchr/testify/require" @@ -37,13 +37,13 @@ func TestDaprSecretStoreDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/secretstore_manual_resourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.DaprSecretStoreResource{}, + "../../api/v20231001preview/testdata/secretstore_manual_resourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.DaprSecretStoreResource{}, nil, }, { - "../../api/v20220315privatepreview/testdata/secretstore_manual_resourcedatamodel.json", + "../../api/v20231001preview/testdata/secretstore_manual_resourcedatamodel.json", "unsupported", nil, v1.ErrUnsupportedAPIVersion, @@ -74,22 +74,22 @@ func TestDaprSecretStoreDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/secretstore_manual_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/secretstore_manual_resource.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/secretstore_invalidrecipe_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/secretstore_invalidrecipe_resource.json", + "2023-10-01-preview", errors.New("json: cannot unmarshal number into Go struct field DaprSecretStoreProperties.properties.version of type string"), }, { - "../../api/v20220315privatepreview/testdata/secretstore_invalidvalues_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/secretstore_invalidvalues_resource.json", + "2023-10-01-preview", &v1.ErrClientRP{Code: "BadRequest", Message: "error(s) found:\n\trecipe details cannot be specified when resourceProvisioning is set to manual\n\tmetadata must be specified when resourceProvisioning is set to manual\n\ttype must be specified when resourceProvisioning is set to manual\n\tversion must be specified when resourceProvisioning is set to manual"}, }, { - "../../api/v20220315privatepreview/testdata/secretstore_invalidvalues_resource.json", + "../../api/v20231001preview/testdata/secretstore_invalidvalues_resource.json", "unsupported", v1.ErrUnsupportedAPIVersion, }, diff --git a/pkg/daprrp/datamodel/converter/statestore_converter.go b/pkg/daprrp/datamodel/converter/statestore_converter.go index c73e7b2eee6..bacef8b8f2c 100644 --- a/pkg/daprrp/datamodel/converter/statestore_converter.go +++ b/pkg/daprrp/datamodel/converter/statestore_converter.go @@ -20,7 +20,7 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/daprrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/daprrp/api/v20231001preview" "github.com/radius-project/radius/pkg/daprrp/datamodel" ) @@ -28,8 +28,8 @@ import ( // version string provided, or returns an error if the version is not supported. func StateStoreDataModelToVersioned(model *datamodel.DaprStateStore, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.DaprStateStoreResource{} + case v20231001preview.Version: + versioned := &v20231001preview.DaprStateStoreResource{} err := versioned.ConvertFrom(model) return versioned, err @@ -42,8 +42,8 @@ func StateStoreDataModelToVersioned(model *datamodel.DaprStateStore, version str // a version-agnostic DaprStateStore struct and returns it, or an error if the version is unsupported. func StateStoreDataModelFromVersioned(content []byte, version string) (*datamodel.DaprStateStore, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.DaprStateStoreResource{} + case v20231001preview.Version: + am := &v20231001preview.DaprStateStoreResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } diff --git a/pkg/daprrp/datamodel/converter/statestore_converter_test.go b/pkg/daprrp/datamodel/converter/statestore_converter_test.go index 9be68561039..e3be7fad561 100644 --- a/pkg/daprrp/datamodel/converter/statestore_converter_test.go +++ b/pkg/daprrp/datamodel/converter/statestore_converter_test.go @@ -21,7 +21,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/daprrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/daprrp/api/v20231001preview" "github.com/radius-project/radius/pkg/daprrp/datamodel" "github.com/radius-project/radius/test/testutil" "github.com/stretchr/testify/require" @@ -36,19 +36,19 @@ func TestDaprStateStoreDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/statestore_recipe_resourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.DaprStateStoreResource{}, + "../../api/v20231001preview/testdata/statestore_recipe_resourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.DaprStateStoreResource{}, nil, }, { - "../../api/v20220315privatepreview/testdata/statestore_values_resourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.DaprStateStoreResource{}, + "../../api/v20231001preview/testdata/statestore_values_resourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.DaprStateStoreResource{}, nil, }, { - "../../api/v20220315privatepreview/testdata/statestore_values_resourcedatamodel.json", + "../../api/v20231001preview/testdata/statestore_values_resourcedatamodel.json", "unsupported", nil, v1.ErrUnsupportedAPIVersion, @@ -79,27 +79,27 @@ func TestDaprStateStoreDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/statestore_invalidrecipe_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/statestore_invalidrecipe_resource.json", + "2023-10-01-preview", &v1.ErrClientRP{Code: v1.CodeInvalid, Message: "error(s) found:\n\tmetadata cannot be specified when resourceProvisioning is set to recipe (default)\n\ttype cannot be specified when resourceProvisioning is set to recipe (default)\n\tversion cannot be specified when resourceProvisioning is set to recipe (default)"}, }, { - "../../api/v20220315privatepreview/testdata/statestore_invalidvalues_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/statestore_invalidvalues_resource.json", + "2023-10-01-preview", &v1.ErrClientRP{Code: "BadRequest", Message: "error(s) found:\n\trecipe details cannot be specified when resourceProvisioning is set to manual\n\tmetadata must be specified when resourceProvisioning is set to manual\n\ttype must be specified when resourceProvisioning is set to manual\n\tversion must be specified when resourceProvisioning is set to manual"}, }, { - "../../api/v20220315privatepreview/testdata/statestore_recipe_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/statestore_recipe_resource.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/statestore_values_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/statestore_values_resource.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/statestore_values_resource.json", + "../../api/v20231001preview/testdata/statestore_values_resource.json", "unsupported", v1.ErrUnsupportedAPIVersion, }, diff --git a/pkg/datastoresrp/api/README.md b/pkg/datastoresrp/api/README.md index 6d33e0b7796..8b32ee5c5cf 100644 --- a/pkg/datastoresrp/api/README.md +++ b/pkg/datastoresrp/api/README.md @@ -15,7 +15,7 @@ npm install -g autorest 1. Add api version tags and openapi file below in this README.md 2. Run autorest. ```bash -autorest README.md --tag=datastores-2022-03-15-privatepreview +autorest README.md --tag=datastores-2023-10-01-preview ``` 3. Create or modify the corresponding datamodels in [datamodel](../datamodel/) 4. Add the converter between versioned model and datamodel in [converter](../datamodel/converter/) @@ -28,13 +28,13 @@ The following are the settings for this using this API with AutoRest. ### Input OpenAPI specificiations -#### Tag: datastores-2022-03-15-privatepreview +#### Tag: datastores-2023-10-01-preview -These settings apply only when `--tag=datastores-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=datastores-2023-10-01-preview` is specified on the command line. -```yaml $(tag) == 'datastores-2022-03-15-privatepreview' +```yaml $(tag) == 'datastores-2023-10-01-preview' input-file: - - ../../../swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/openapi.json + - ../../../swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/openapi.json modelerfour: treat-type-object-as-anything: false ``` @@ -53,10 +53,10 @@ azure-arm: true ### Output -#### Tag: datastores-2022-03-15-privatepreview +#### Tag: datastores-2023-10-01-preview -These settings apply only when `--tag=datastores-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=datastores-2023-10-01-preview` is specified on the command line. -```yaml $(tag) == 'datastores-2022-03-15-privatepreview' -output-folder: ./v20220315privatepreview +```yaml $(tag) == 'datastores-2023-10-01-preview' +output-folder: ./v20231001preview ``` \ No newline at end of file diff --git a/pkg/daprrp/api/v20220315privatepreview/datamodel_util.go b/pkg/datastoresrp/api/v20231001preview/datamodel_util.go similarity index 99% rename from pkg/daprrp/api/v20220315privatepreview/datamodel_util.go rename to pkg/datastoresrp/api/v20231001preview/datamodel_util.go index fe1e1724b35..0367c6b2789 100644 --- a/pkg/daprrp/api/v20220315privatepreview/datamodel_util.go +++ b/pkg/datastoresrp/api/v20231001preview/datamodel_util.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "fmt" @@ -98,17 +98,6 @@ func fromResourceProvisioningDataModel(provisioning portableresources.ResourcePr return &converted } -func fromSystemDataModel(s v1.SystemData) *SystemData { - return &SystemData{ - CreatedBy: to.Ptr(s.CreatedBy), - CreatedByType: (*CreatedByType)(to.Ptr(s.CreatedByType)), - CreatedAt: v1.UnmarshalTimeString(s.CreatedAt), - LastModifiedBy: to.Ptr(s.LastModifiedBy), - LastModifiedByType: (*CreatedByType)(to.Ptr(s.LastModifiedByType)), - LastModifiedAt: v1.UnmarshalTimeString(s.LastModifiedAt), - } -} - func toRecipeDataModel(r *Recipe) portableresources.ResourceRecipe { if r == nil { return portableresources.ResourceRecipe{ @@ -160,6 +149,17 @@ func fromResourcesDataModel(r []*portableresources.ResourceReference) []*Resourc return resources } +func fromSystemDataModel(s v1.SystemData) *SystemData { + return &SystemData{ + CreatedBy: to.Ptr(s.CreatedBy), + CreatedByType: (*CreatedByType)(to.Ptr(s.CreatedByType)), + CreatedAt: v1.UnmarshalTimeString(s.CreatedAt), + LastModifiedBy: to.Ptr(s.LastModifiedBy), + LastModifiedByType: (*CreatedByType)(to.Ptr(s.LastModifiedByType)), + LastModifiedAt: v1.UnmarshalTimeString(s.LastModifiedAt), + } +} + func toOutputResources(outputResources []rpv1.OutputResource) []*OutputResource { var outResources []*OutputResource for _, or := range outputResources { diff --git a/pkg/datastoresrp/api/v20220315privatepreview/datamodel_util_test.go b/pkg/datastoresrp/api/v20231001preview/datamodel_util_test.go similarity index 99% rename from pkg/datastoresrp/api/v20220315privatepreview/datamodel_util_test.go rename to pkg/datastoresrp/api/v20231001preview/datamodel_util_test.go index 1162b6aeb28..8de4cca7f22 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/datamodel_util_test.go +++ b/pkg/datastoresrp/api/v20231001preview/datamodel_util_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/datastoresrp/api/v20220315privatepreview/mongodatabase_conversion.go b/pkg/datastoresrp/api/v20231001preview/mongodatabase_conversion.go similarity index 99% rename from pkg/datastoresrp/api/v20220315privatepreview/mongodatabase_conversion.go rename to pkg/datastoresrp/api/v20231001preview/mongodatabase_conversion.go index c958300c12b..49e838891c3 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/mongodatabase_conversion.go +++ b/pkg/datastoresrp/api/v20231001preview/mongodatabase_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/datastoresrp/api/v20220315privatepreview/mongodatabase_conversion_test.go b/pkg/datastoresrp/api/v20231001preview/mongodatabase_conversion_test.go similarity index 98% rename from pkg/datastoresrp/api/v20220315privatepreview/mongodatabase_conversion_test.go rename to pkg/datastoresrp/api/v20231001preview/mongodatabase_conversion_test.go index a0dd6af4851..af744dd9919 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/mongodatabase_conversion_test.go +++ b/pkg/datastoresrp/api/v20231001preview/mongodatabase_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -50,7 +50,7 @@ func TestMongoDatabase_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, @@ -81,7 +81,7 @@ func TestMongoDatabase_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, @@ -112,7 +112,7 @@ func TestMongoDatabase_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, @@ -142,7 +142,7 @@ func TestMongoDatabase_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, diff --git a/pkg/datastoresrp/api/v20220315privatepreview/rediscache_conversion.go b/pkg/datastoresrp/api/v20231001preview/rediscache_conversion.go similarity index 99% rename from pkg/datastoresrp/api/v20220315privatepreview/rediscache_conversion.go rename to pkg/datastoresrp/api/v20231001preview/rediscache_conversion.go index ad62edf69a4..ee6eed89d06 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/rediscache_conversion.go +++ b/pkg/datastoresrp/api/v20231001preview/rediscache_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/datastoresrp/api/v20220315privatepreview/rediscache_conversion_test.go b/pkg/datastoresrp/api/v20231001preview/rediscache_conversion_test.go similarity index 99% rename from pkg/datastoresrp/api/v20220315privatepreview/rediscache_conversion_test.go rename to pkg/datastoresrp/api/v20231001preview/rediscache_conversion_test.go index cbf576231cf..757357d0c19 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/rediscache_conversion_test.go +++ b/pkg/datastoresrp/api/v20231001preview/rediscache_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -382,7 +382,7 @@ func createBaseResource() v1.BaseResource { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, diff --git a/pkg/datastoresrp/api/v20220315privatepreview/sqldatabase_conversion.go b/pkg/datastoresrp/api/v20231001preview/sqldatabase_conversion.go similarity index 99% rename from pkg/datastoresrp/api/v20220315privatepreview/sqldatabase_conversion.go rename to pkg/datastoresrp/api/v20231001preview/sqldatabase_conversion.go index d25dd22ae92..fbce82c5b8d 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/sqldatabase_conversion.go +++ b/pkg/datastoresrp/api/v20231001preview/sqldatabase_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/datastoresrp/api/v20220315privatepreview/sqldatabase_conversion_test.go b/pkg/datastoresrp/api/v20231001preview/sqldatabase_conversion_test.go similarity index 98% rename from pkg/datastoresrp/api/v20220315privatepreview/sqldatabase_conversion_test.go rename to pkg/datastoresrp/api/v20231001preview/sqldatabase_conversion_test.go index ef60a87d854..3e9ec30245d 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/sqldatabase_conversion_test.go +++ b/pkg/datastoresrp/api/v20231001preview/sqldatabase_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -52,7 +52,7 @@ func TestSqlDatabase_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, @@ -95,7 +95,7 @@ func TestSqlDatabase_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource-invalid.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource-invalid.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource-invalid.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource-invalid.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource-invalidresprovisioning.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource-invalidresprovisioning.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource-invalidresprovisioning.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource-invalidresprovisioning.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource-missinginputs.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource-missinginputs.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource-missinginputs.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource-missinginputs.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource2.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource2.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource2.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource2.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource_recipe.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource_recipe.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource_recipe.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource_recipe.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource_recipe2.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource_recipe2.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresource_recipe2.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresource_recipe2.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresourcedatamodel.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresourcedatamodel.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresourcedatamodel.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresourcedatamodel.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresourcedatamodel2.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresourcedatamodel2.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresourcedatamodel2.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresourcedatamodel2.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresourcedatamodel_recipe.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresourcedatamodel_recipe.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabaseresourcedatamodel_recipe.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabaseresourcedatamodel_recipe.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabasesecrets.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabasesecrets.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabasesecrets.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabasesecrets.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabasesecretsdatamodel.json b/pkg/datastoresrp/api/v20231001preview/testdata/mongodatabasesecretsdatamodel.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/mongodatabasesecretsdatamodel.json rename to pkg/datastoresrp/api/v20231001preview/testdata/mongodatabasesecretsdatamodel.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource-invalid.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource-invalid.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource-invalid.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource-invalid.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource-invalid2.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource-invalid2.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource-invalid2.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource-invalid2.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource-invalidinput.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource-invalidinput.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource-invalidinput.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource-invalidinput.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource_defaultrecipe.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource_defaultrecipe.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource_defaultrecipe.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource_defaultrecipe.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource_manual.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource_manual.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource_manual.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource_manual.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource_manual_noresources.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource_manual_noresources.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource_manual_noresources.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource_manual_noresources.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource_recipe_named.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource_recipe_named.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource_recipe_named.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource_recipe_named.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource_recipe_overridevalues.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource_recipe_overridevalues.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresource_recipe_overridevalues.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresource_recipe_overridevalues.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresourcedatamodel_manual.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresourcedatamodel_manual.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresourcedatamodel_manual.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresourcedatamodel_manual.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresourcedatamodel_manual_resources.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresourcedatamodel_manual_resources.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresourcedatamodel_manual_resources.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresourcedatamodel_manual_resources.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresourcedatamodel_recipe_default.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresourcedatamodel_recipe_default.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresourcedatamodel_recipe_default.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresourcedatamodel_recipe_default.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresourcedatamodel_recipe_params.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresourcedatamodel_recipe_params.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscacheresourcedatamodel_recipe_params.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscacheresourcedatamodel_recipe_params.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscachesecrets.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscachesecrets.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscachesecrets.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscachesecrets.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscachesecretsdatamodel.json b/pkg/datastoresrp/api/v20231001preview/testdata/rediscachesecretsdatamodel.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/rediscachesecretsdatamodel.json rename to pkg/datastoresrp/api/v20231001preview/testdata/rediscachesecretsdatamodel.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_invalid_properties_resource.json b/pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_invalid_properties_resource.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_invalid_properties_resource.json rename to pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_invalid_properties_resource.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_invalid_resourceprovisioning_resource.json b/pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_invalid_resourceprovisioning_resource.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_invalid_resourceprovisioning_resource.json rename to pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_invalid_resourceprovisioning_resource.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_manual_resource.json b/pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_manual_resource.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_manual_resource.json rename to pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_manual_resource.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_manual_resourcedatamodel.json b/pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_manual_resourcedatamodel.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_manual_resourcedatamodel.json rename to pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_manual_resourcedatamodel.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_recipe_resource.json b/pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_recipe_resource.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_recipe_resource.json rename to pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_recipe_resource.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_recipe_resourcedatamodel.json b/pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_recipe_resourcedatamodel.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_recipe_resourcedatamodel.json rename to pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_recipe_resourcedatamodel.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_secrets_datamodel.json b/pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_secrets_datamodel.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabase_secrets_datamodel.json rename to pkg/datastoresrp/api/v20231001preview/testdata/sqldatabase_secrets_datamodel.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabaseresource-invalid.json b/pkg/datastoresrp/api/v20231001preview/testdata/sqldatabaseresource-invalid.json similarity index 100% rename from pkg/datastoresrp/api/v20220315privatepreview/testdata/sqldatabaseresource-invalid.json rename to pkg/datastoresrp/api/v20231001preview/testdata/sqldatabaseresource-invalid.json diff --git a/pkg/datastoresrp/api/v20220315privatepreview/version.go b/pkg/datastoresrp/api/v20231001preview/version.go similarity index 89% rename from pkg/datastoresrp/api/v20220315privatepreview/version.go rename to pkg/datastoresrp/api/v20231001preview/version.go index 3a97781966a..632c27dda69 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/version.go +++ b/pkg/datastoresrp/api/v20231001preview/version.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview // Version represents the api version in this package. -const Version = "2022-03-15-privatepreview" +const Version = "2023-10-01-preview" diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_client_factory.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_client_factory.go similarity index 98% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_client_factory.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_client_factory.go index 0ee75d4bdaa..9768965460d 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_client_factory.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_client_factory.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_constants.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_constants.go similarity index 95% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_constants.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_constants.go index 68682f41514..c4ed64d61ae 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_constants.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_constants.go @@ -5,10 +5,10 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview const ( - moduleName = "v20220315privatepreview" + moduleName = "v20231001preview" moduleVersion = "v0.0.1" ) @@ -140,14 +140,14 @@ func PossibleResourceProvisioningValues() []ResourceProvisioning { type Versions string const ( - // VersionsV20220315Privatepreview - 2022-03-15-privatepreview - VersionsV20220315Privatepreview Versions = "2022-03-15-privatepreview" + // VersionsV20231001Preview - 2023-10-01-preview + VersionsV20231001Preview Versions = "2023-10-01-preview" ) // PossibleVersionsValues returns the possible values for the Versions const type. func PossibleVersionsValues() []Versions { return []Versions{ - VersionsV20220315Privatepreview, + VersionsV20231001Preview, } } diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_interfaces.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_interfaces.go similarity index 96% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_interfaces.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_interfaces.go index 104e8355bda..ff4b623caed 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_interfaces.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_interfaces.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // EnvironmentComputeClassification provides polymorphic access to related types. // Call the interface's GetEnvironmentCompute() method to access the common type. diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_models.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_models.go similarity index 99% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_models.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_models.go index 4efff8b9026..ca23ffe4f0b 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_models.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_models.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import "time" diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_models_serde.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_models_serde.go similarity index 99% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_models_serde.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_models_serde.go index 1d92cf1ddd7..5cdd83d6f5e 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_models_serde.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_models_serde.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_mongodatabases_client.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_mongodatabases_client.go similarity index 95% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_mongodatabases_client.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_mongodatabases_client.go index 41037e6aca5..004b1e6306a 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_mongodatabases_client.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_mongodatabases_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewMongoDatabasesClient(rootScope string, credential azcore.TokenCredential // BeginCreateOrUpdate - Create a MongoDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - mongoDatabaseName - The name of the MongoDatabase portable resource resource // - resource - Resource create parameters. // - options - MongoDatabasesClientBeginCreateOrUpdateOptions contains the optional parameters for the MongoDatabasesClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *MongoDatabasesClient) BeginCreateOrUpdate(ctx context.Context, mon // CreateOrUpdate - Create a MongoDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *MongoDatabasesClient) createOrUpdate(ctx context.Context, mongoDatabaseName string, resource MongoDatabaseResource, options *MongoDatabasesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, mongoDatabaseName, resource, options) @@ -101,7 +101,7 @@ func (client *MongoDatabasesClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *MongoDatabasesClient) createOrUpdateCreateRequest(ctx context.Cont // BeginDelete - Delete a MongoDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - mongoDatabaseName - The name of the MongoDatabase portable resource resource // - options - MongoDatabasesClientBeginDeleteOptions contains the optional parameters for the MongoDatabasesClient.BeginDelete // method. @@ -135,7 +135,7 @@ func (client *MongoDatabasesClient) BeginDelete(ctx context.Context, mongoDataba // Delete - Delete a MongoDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *MongoDatabasesClient) deleteOperation(ctx context.Context, mongoDatabaseName string, options *MongoDatabasesClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, mongoDatabaseName, options) @@ -166,7 +166,7 @@ func (client *MongoDatabasesClient) deleteCreateRequest(ctx context.Context, mon return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -175,7 +175,7 @@ func (client *MongoDatabasesClient) deleteCreateRequest(ctx context.Context, mon // Get - Get a MongoDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - mongoDatabaseName - The name of the MongoDatabase portable resource resource // - options - MongoDatabasesClientGetOptions contains the optional parameters for the MongoDatabasesClient.Get method. func (client *MongoDatabasesClient) Get(ctx context.Context, mongoDatabaseName string, options *MongoDatabasesClientGetOptions) (MongoDatabasesClientGetResponse, error) { @@ -209,7 +209,7 @@ func (client *MongoDatabasesClient) getCreateRequest(ctx context.Context, mongoD return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -226,7 +226,7 @@ func (client *MongoDatabasesClient) getHandleResponse(resp *http.Response) (Mong // NewListByScopePager - List MongoDatabaseResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - MongoDatabasesClientListByScopeOptions contains the optional parameters for the MongoDatabasesClient.NewListByScopePager // method. func (client *MongoDatabasesClient) NewListByScopePager(options *MongoDatabasesClientListByScopeOptions) (*runtime.Pager[MongoDatabasesClientListByScopeResponse]) { @@ -266,7 +266,7 @@ func (client *MongoDatabasesClient) listByScopeCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -284,7 +284,7 @@ func (client *MongoDatabasesClient) listByScopeHandleResponse(resp *http.Respons // ListSecrets - Lists secrets values for the specified MongoDatabases resource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - mongoDatabaseName - The name of the MongoDatabase portable resource resource // - body - The content of the action request // - options - MongoDatabasesClientListSecretsOptions contains the optional parameters for the MongoDatabasesClient.ListSecrets @@ -320,7 +320,7 @@ func (client *MongoDatabasesClient) listSecretsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -341,7 +341,7 @@ func (client *MongoDatabasesClient) listSecretsHandleResponse(resp *http.Respons // BeginUpdate - Update a MongoDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - mongoDatabaseName - The name of the MongoDatabase portable resource resource // - properties - The resource properties to be updated. // - options - MongoDatabasesClientBeginUpdateOptions contains the optional parameters for the MongoDatabasesClient.BeginUpdate @@ -364,7 +364,7 @@ func (client *MongoDatabasesClient) BeginUpdate(ctx context.Context, mongoDataba // Update - Update a MongoDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *MongoDatabasesClient) update(ctx context.Context, mongoDatabaseName string, properties MongoDatabaseResourceUpdate, options *MongoDatabasesClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, mongoDatabaseName, properties, options) @@ -395,7 +395,7 @@ func (client *MongoDatabasesClient) updateCreateRequest(ctx context.Context, mon return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_operations_client.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_operations_client.go similarity index 95% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_operations_client.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_operations_client.go index fb8362f3a5c..9a85d0a3370 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_operations_client.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_operations_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -38,7 +38,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - List the operations for the provider // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) (*runtime.Pager[OperationsClientListResponse]) { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -76,7 +76,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_options.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_options.go similarity index 99% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_options.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_options.go index e7dcc2d24f7..f8675f9c736 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_options.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_options.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // MongoDatabasesClientBeginCreateOrUpdateOptions contains the optional parameters for the MongoDatabasesClient.BeginCreateOrUpdate // method. diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_polymorphic_helpers.go similarity index 96% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_polymorphic_helpers.go index 83f13ff53e9..c574dd5eea4 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_polymorphic_helpers.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import "encoding/json" diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_rediscaches_client.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_rediscaches_client.go similarity index 95% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_rediscaches_client.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_rediscaches_client.go index 5966046dea5..8873ad35148 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_rediscaches_client.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_rediscaches_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewRedisCachesClient(rootScope string, credential azcore.TokenCredential, o // BeginCreateOrUpdate - Create a RedisCacheResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - redisCacheName - The name of the RedisCache portable resource resource // - resource - Resource create parameters. // - options - RedisCachesClientBeginCreateOrUpdateOptions contains the optional parameters for the RedisCachesClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *RedisCachesClient) BeginCreateOrUpdate(ctx context.Context, redisC // CreateOrUpdate - Create a RedisCacheResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *RedisCachesClient) createOrUpdate(ctx context.Context, redisCacheName string, resource RedisCacheResource, options *RedisCachesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, redisCacheName, resource, options) @@ -101,7 +101,7 @@ func (client *RedisCachesClient) createOrUpdateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *RedisCachesClient) createOrUpdateCreateRequest(ctx context.Context // BeginDelete - Delete a RedisCacheResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - redisCacheName - The name of the RedisCache portable resource resource // - options - RedisCachesClientBeginDeleteOptions contains the optional parameters for the RedisCachesClient.BeginDelete method. func (client *RedisCachesClient) BeginDelete(ctx context.Context, redisCacheName string, options *RedisCachesClientBeginDeleteOptions) (*runtime.Poller[RedisCachesClientDeleteResponse], error) { @@ -134,7 +134,7 @@ func (client *RedisCachesClient) BeginDelete(ctx context.Context, redisCacheName // Delete - Delete a RedisCacheResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *RedisCachesClient) deleteOperation(ctx context.Context, redisCacheName string, options *RedisCachesClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, redisCacheName, options) @@ -165,7 +165,7 @@ func (client *RedisCachesClient) deleteCreateRequest(ctx context.Context, redisC return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -174,7 +174,7 @@ func (client *RedisCachesClient) deleteCreateRequest(ctx context.Context, redisC // Get - Get a RedisCacheResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - redisCacheName - The name of the RedisCache portable resource resource // - options - RedisCachesClientGetOptions contains the optional parameters for the RedisCachesClient.Get method. func (client *RedisCachesClient) Get(ctx context.Context, redisCacheName string, options *RedisCachesClientGetOptions) (RedisCachesClientGetResponse, error) { @@ -208,7 +208,7 @@ func (client *RedisCachesClient) getCreateRequest(ctx context.Context, redisCach return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -225,7 +225,7 @@ func (client *RedisCachesClient) getHandleResponse(resp *http.Response) (RedisCa // NewListByScopePager - List RedisCacheResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - RedisCachesClientListByScopeOptions contains the optional parameters for the RedisCachesClient.NewListByScopePager // method. func (client *RedisCachesClient) NewListByScopePager(options *RedisCachesClientListByScopeOptions) (*runtime.Pager[RedisCachesClientListByScopeResponse]) { @@ -265,7 +265,7 @@ func (client *RedisCachesClient) listByScopeCreateRequest(ctx context.Context, o return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -283,7 +283,7 @@ func (client *RedisCachesClient) listByScopeHandleResponse(resp *http.Response) // ListSecrets - Lists secrets values for the specified RedisCache resource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - redisCacheName - The name of the RedisCache portable resource resource // - body - The content of the action request // - options - RedisCachesClientListSecretsOptions contains the optional parameters for the RedisCachesClient.ListSecrets method. @@ -318,7 +318,7 @@ func (client *RedisCachesClient) listSecretsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -339,7 +339,7 @@ func (client *RedisCachesClient) listSecretsHandleResponse(resp *http.Response) // BeginUpdate - Update a RedisCacheResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - redisCacheName - The name of the RedisCache portable resource resource // - properties - The resource properties to be updated. // - options - RedisCachesClientBeginUpdateOptions contains the optional parameters for the RedisCachesClient.BeginUpdate method. @@ -361,7 +361,7 @@ func (client *RedisCachesClient) BeginUpdate(ctx context.Context, redisCacheName // Update - Update a RedisCacheResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *RedisCachesClient) update(ctx context.Context, redisCacheName string, properties RedisCacheResourceUpdate, options *RedisCachesClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, redisCacheName, properties, options) @@ -392,7 +392,7 @@ func (client *RedisCachesClient) updateCreateRequest(ctx context.Context, redisC return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_response_types.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_response_types.go similarity index 99% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_response_types.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_response_types.go index 6f319c8a24d..dadf4cf1004 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_response_types.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_response_types.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // MongoDatabasesClientCreateOrUpdateResponse contains the response from method MongoDatabasesClient.BeginCreateOrUpdate. type MongoDatabasesClientCreateOrUpdateResponse struct { diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_sqldatabases_client.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_sqldatabases_client.go similarity index 95% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_sqldatabases_client.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_sqldatabases_client.go index 4dd5e603438..0c225795456 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_sqldatabases_client.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_sqldatabases_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewSQLDatabasesClient(rootScope string, credential azcore.TokenCredential, // BeginCreateOrUpdate - Create a SqlDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - sqlDatabaseName - The name of the SqlDatabase portable resource resource // - resource - Resource create parameters. // - options - SQLDatabasesClientBeginCreateOrUpdateOptions contains the optional parameters for the SQLDatabasesClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *SQLDatabasesClient) BeginCreateOrUpdate(ctx context.Context, sqlDa // CreateOrUpdate - Create a SqlDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *SQLDatabasesClient) createOrUpdate(ctx context.Context, sqlDatabaseName string, resource SQLDatabaseResource, options *SQLDatabasesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, sqlDatabaseName, resource, options) @@ -101,7 +101,7 @@ func (client *SQLDatabasesClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *SQLDatabasesClient) createOrUpdateCreateRequest(ctx context.Contex // BeginDelete - Delete a SqlDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - sqlDatabaseName - The name of the SqlDatabase portable resource resource // - options - SQLDatabasesClientBeginDeleteOptions contains the optional parameters for the SQLDatabasesClient.BeginDelete // method. @@ -135,7 +135,7 @@ func (client *SQLDatabasesClient) BeginDelete(ctx context.Context, sqlDatabaseNa // Delete - Delete a SqlDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *SQLDatabasesClient) deleteOperation(ctx context.Context, sqlDatabaseName string, options *SQLDatabasesClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, sqlDatabaseName, options) @@ -166,7 +166,7 @@ func (client *SQLDatabasesClient) deleteCreateRequest(ctx context.Context, sqlDa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -175,7 +175,7 @@ func (client *SQLDatabasesClient) deleteCreateRequest(ctx context.Context, sqlDa // Get - Get a SqlDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - sqlDatabaseName - The name of the SqlDatabase portable resource resource // - options - SQLDatabasesClientGetOptions contains the optional parameters for the SQLDatabasesClient.Get method. func (client *SQLDatabasesClient) Get(ctx context.Context, sqlDatabaseName string, options *SQLDatabasesClientGetOptions) (SQLDatabasesClientGetResponse, error) { @@ -209,7 +209,7 @@ func (client *SQLDatabasesClient) getCreateRequest(ctx context.Context, sqlDatab return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -226,7 +226,7 @@ func (client *SQLDatabasesClient) getHandleResponse(resp *http.Response) (SQLDat // NewListByScopePager - List SqlDatabaseResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - SQLDatabasesClientListByScopeOptions contains the optional parameters for the SQLDatabasesClient.NewListByScopePager // method. func (client *SQLDatabasesClient) NewListByScopePager(options *SQLDatabasesClientListByScopeOptions) (*runtime.Pager[SQLDatabasesClientListByScopeResponse]) { @@ -266,7 +266,7 @@ func (client *SQLDatabasesClient) listByScopeCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -284,7 +284,7 @@ func (client *SQLDatabasesClient) listByScopeHandleResponse(resp *http.Response) // ListSecrets - Lists secrets values for the specified SqlDatabase resource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - sqlDatabaseName - The name of the SqlDatabase portable resource resource // - body - The content of the action request // - options - SQLDatabasesClientListSecretsOptions contains the optional parameters for the SQLDatabasesClient.ListSecrets @@ -320,7 +320,7 @@ func (client *SQLDatabasesClient) listSecretsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -341,7 +341,7 @@ func (client *SQLDatabasesClient) listSecretsHandleResponse(resp *http.Response) // BeginUpdate - Update a SqlDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - sqlDatabaseName - The name of the SqlDatabase portable resource resource // - properties - The resource properties to be updated. // - options - SQLDatabasesClientBeginUpdateOptions contains the optional parameters for the SQLDatabasesClient.BeginUpdate @@ -364,7 +364,7 @@ func (client *SQLDatabasesClient) BeginUpdate(ctx context.Context, sqlDatabaseNa // Update - Update a SqlDatabaseResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *SQLDatabasesClient) update(ctx context.Context, sqlDatabaseName string, properties SQLDatabaseResourceUpdate, options *SQLDatabasesClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, sqlDatabaseName, properties, options) @@ -395,7 +395,7 @@ func (client *SQLDatabasesClient) updateCreateRequest(ctx context.Context, sqlDa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/corerp/api/v20220315privatepreview/zz_generated_time_rfc3339.go b/pkg/datastoresrp/api/v20231001preview/zz_generated_time_rfc3339.go similarity index 98% rename from pkg/corerp/api/v20220315privatepreview/zz_generated_time_rfc3339.go rename to pkg/datastoresrp/api/v20231001preview/zz_generated_time_rfc3339.go index 30ea6fa1d04..948a6660cdc 100644 --- a/pkg/corerp/api/v20220315privatepreview/zz_generated_time_rfc3339.go +++ b/pkg/datastoresrp/api/v20231001preview/zz_generated_time_rfc3339.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview diff --git a/pkg/datastoresrp/datamodel/converter/mongodatabase_converter.go b/pkg/datastoresrp/datamodel/converter/mongodatabase_converter.go index 9097162347c..be9649839ae 100644 --- a/pkg/datastoresrp/datamodel/converter/mongodatabase_converter.go +++ b/pkg/datastoresrp/datamodel/converter/mongodatabase_converter.go @@ -20,7 +20,7 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/datastoresrp/datamodel" ) @@ -28,8 +28,8 @@ import ( // specified version, and returns an error if the version is not supported. func MongoDatabaseDataModelToVersioned(model *datamodel.MongoDatabase, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.MongoDatabaseResource{} + case v20231001preview.Version: + versioned := &v20231001preview.MongoDatabaseResource{} err := versioned.ConvertFrom(model) return versioned, err default: @@ -41,8 +41,8 @@ func MongoDatabaseDataModelToVersioned(model *datamodel.MongoDatabase, version s // an error if the version is unsupported. func MongoDatabaseDataModelFromVersioned(content []byte, version string) (*datamodel.MongoDatabase, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.MongoDatabaseResource{} + case v20231001preview.Version: + versioned := &v20231001preview.MongoDatabaseResource{} if err := json.Unmarshal(content, versioned); err != nil { return nil, err } @@ -64,8 +64,8 @@ func MongoDatabaseDataModelFromVersioned(content []byte, version string) (*datam // returns an error if the version is not supported. func MongoDatabaseSecretsDataModelToVersioned(model *datamodel.MongoDatabaseSecrets, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.MongoDatabaseSecrets{} + case v20231001preview.Version: + versioned := &v20231001preview.MongoDatabaseSecrets{} err := versioned.ConvertFrom(model) return versioned, err diff --git a/pkg/datastoresrp/datamodel/converter/mongodatabase_converter_test.go b/pkg/datastoresrp/datamodel/converter/mongodatabase_converter_test.go index 9dd0e8ea2ed..ae86d110431 100644 --- a/pkg/datastoresrp/datamodel/converter/mongodatabase_converter_test.go +++ b/pkg/datastoresrp/datamodel/converter/mongodatabase_converter_test.go @@ -22,7 +22,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/datastoresrp/datamodel" "github.com/radius-project/radius/test/testutil" "github.com/stretchr/testify/require" @@ -37,13 +37,13 @@ func TestMongoDatabaseDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/mongodatabaseresourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.MongoDatabaseResource{}, + "../../api/v20231001preview/testdata/mongodatabaseresourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.MongoDatabaseResource{}, nil, }, { - "../../api/v20220315privatepreview/testdata/mongodatabaseresource-missinginputs.json", + "../../api/v20231001preview/testdata/mongodatabaseresource-missinginputs.json", "unsupported", nil, v1.ErrUnsupportedAPIVersion, @@ -73,22 +73,22 @@ func TestMongoDatabaseDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/mongodatabaseresource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/mongodatabaseresource.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/mongodatabaseresource-invalid.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/mongodatabaseresource-invalid.json", + "2023-10-01-preview", errors.New("json: cannot unmarshal number into Go struct field MongoDatabaseProperties.properties.resource of type string"), }, { - "../../api/v20220315privatepreview/testdata/mongodatabaseresource-missinginputs.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/mongodatabaseresource-missinginputs.json", + "2023-10-01-preview", &v1.ErrClientRP{Code: "BadRequest", Message: "multiple errors were found:\n\thost must be specified when resourceProvisioning is set to manual\n\tport must be specified when resourceProvisioning is set to manual\n\tdatabase must be specified when resourceProvisioning is set to manual"}, }, { - "../../api/v20220315privatepreview/testdata/mongodatabaseresource-missinginputs.json", + "../../api/v20231001preview/testdata/mongodatabaseresource-missinginputs.json", "unsupported", v1.ErrUnsupportedAPIVersion, }, @@ -116,13 +116,13 @@ func TestMongoDatabaseSecretsDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/mongodatabasesecretsdatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.MongoDatabaseSecrets{}, + "../../api/v20231001preview/testdata/mongodatabasesecretsdatamodel.json", + "2023-10-01-preview", + &v20231001preview.MongoDatabaseSecrets{}, nil, }, { - "../../api/v20220315privatepreview/testdata/mongodatabasesecretsdatamodel.json", + "../../api/v20231001preview/testdata/mongodatabasesecretsdatamodel.json", "unsupported", nil, v1.ErrUnsupportedAPIVersion, diff --git a/pkg/datastoresrp/datamodel/converter/rediscache_converter.go b/pkg/datastoresrp/datamodel/converter/rediscache_converter.go index 4acecd00769..5708fd54cec 100644 --- a/pkg/datastoresrp/datamodel/converter/rediscache_converter.go +++ b/pkg/datastoresrp/datamodel/converter/rediscache_converter.go @@ -20,7 +20,7 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/datastoresrp/datamodel" ) @@ -28,8 +28,8 @@ import ( // the conversion fails. func RedisCacheDataModelToVersioned(model *datamodel.RedisCache, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.RedisCacheResource{} + case v20231001preview.Version: + versioned := &v20231001preview.RedisCacheResource{} err := versioned.ConvertFrom(model) if err != nil { return nil, err @@ -46,8 +46,8 @@ func RedisCacheDataModelToVersioned(model *datamodel.RedisCache, version string) // if the conversion fails. func RedisCacheDataModelFromVersioned(content []byte, version string) (*datamodel.RedisCache, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.RedisCacheResource{} + case v20231001preview.Version: + versioned := &v20231001preview.RedisCacheResource{} if err := json.Unmarshal(content, versioned); err != nil { return nil, err } @@ -66,8 +66,8 @@ func RedisCacheDataModelFromVersioned(content []byte, version string) (*datamode // returns a VersionedModelInterface and an error if the version is not supported. func RedisCacheSecretsDataModelToVersioned(model *datamodel.RedisCacheSecrets, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.RedisCacheSecrets{} + case v20231001preview.Version: + versioned := &v20231001preview.RedisCacheSecrets{} err := versioned.ConvertFrom(model) return versioned, err diff --git a/pkg/datastoresrp/datamodel/converter/rediscache_converter_test.go b/pkg/datastoresrp/datamodel/converter/rediscache_converter_test.go index 61d5f58d5a8..0dd01fa7477 100644 --- a/pkg/datastoresrp/datamodel/converter/rediscache_converter_test.go +++ b/pkg/datastoresrp/datamodel/converter/rediscache_converter_test.go @@ -22,7 +22,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/datastoresrp/datamodel" "github.com/radius-project/radius/test/testutil" "github.com/stretchr/testify/require" @@ -37,13 +37,13 @@ func TestRedisCacheDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/rediscacheresourcedatamodel_manual.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.RedisCacheResource{}, + "../../api/v20231001preview/testdata/rediscacheresourcedatamodel_manual.json", + "2023-10-01-preview", + &v20231001preview.RedisCacheResource{}, nil, }, { - "../../api/v20220315privatepreview/testdata/rediscacheresourcedatamodel_manual.json", + "../../api/v20231001preview/testdata/rediscacheresourcedatamodel_manual.json", "unsupported", nil, v1.ErrUnsupportedAPIVersion, @@ -74,22 +74,22 @@ func TestRedisCacheDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/rediscacheresource_manual.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/rediscacheresource_manual.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/rediscacheresource-invalidinput.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/rediscacheresource-invalidinput.json", + "2023-10-01-preview", errors.New("json: cannot unmarshal number into Go struct field RedisCacheProperties.properties.host of type string"), }, { - "../../api/v20220315privatepreview/testdata/rediscacheresource-invalid2.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/rediscacheresource-invalid2.json", + "2023-10-01-preview", &v1.ErrClientRP{Code: "BadRequest", Message: "multiple errors were found:\n\thost must be specified when resourceProvisioning is set to manual\n\tport must be specified when resourceProvisioning is set to manual"}, }, { - "../../api/v20220315privatepreview/testdata/rediscacheresource-invalid2.json", + "../../api/v20231001preview/testdata/rediscacheresource-invalid2.json", "unsupported", v1.ErrUnsupportedAPIVersion, }, @@ -117,13 +117,13 @@ func TestRedisCacheSecretsDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/rediscachesecretsdatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.RedisCacheSecrets{}, + "../../api/v20231001preview/testdata/rediscachesecretsdatamodel.json", + "2023-10-01-preview", + &v20231001preview.RedisCacheSecrets{}, nil, }, { - "../../api/v20220315privatepreview/testdata/rediscachesecretsdatamodel.json", + "../../api/v20231001preview/testdata/rediscachesecretsdatamodel.json", "unsupported", nil, v1.ErrUnsupportedAPIVersion, diff --git a/pkg/datastoresrp/datamodel/converter/sqldatabase_converter.go b/pkg/datastoresrp/datamodel/converter/sqldatabase_converter.go index 7be7ab51f6b..3fad4647fa6 100644 --- a/pkg/datastoresrp/datamodel/converter/sqldatabase_converter.go +++ b/pkg/datastoresrp/datamodel/converter/sqldatabase_converter.go @@ -20,7 +20,7 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/datastoresrp/datamodel" ) @@ -28,8 +28,8 @@ import ( // version, returning an error if the version is unsupported. func SqlDatabaseDataModelToVersioned(model *datamodel.SqlDatabase, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.SQLDatabaseResource{} + case v20231001preview.Version: + versioned := &v20231001preview.SQLDatabaseResource{} err := versioned.ConvertFrom(model) return versioned, err @@ -42,8 +42,8 @@ func SqlDatabaseDataModelToVersioned(model *datamodel.SqlDatabase, version strin // error if one occurs. func SqlDatabaseDataModelFromVersioned(content []byte, version string) (*datamodel.SqlDatabase, error) { switch version { - case v20220315privatepreview.Version: - am := &v20220315privatepreview.SQLDatabaseResource{} + case v20231001preview.Version: + am := &v20231001preview.SQLDatabaseResource{} if err := json.Unmarshal(content, am); err != nil { return nil, err } @@ -62,8 +62,8 @@ func SqlDatabaseDataModelFromVersioned(content []byte, version string) (*datamod // returns an error if the version is unsupported. func SqlDatabaseSecretsDataModelToVersioned(model *datamodel.SqlDatabaseSecrets, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.SQLDatabaseSecrets{} + case v20231001preview.Version: + versioned := &v20231001preview.SQLDatabaseSecrets{} err := versioned.ConvertFrom(model) return versioned, err diff --git a/pkg/datastoresrp/datamodel/converter/sqldatabase_converter_test.go b/pkg/datastoresrp/datamodel/converter/sqldatabase_converter_test.go index b67707974f9..9f4518e3006 100644 --- a/pkg/datastoresrp/datamodel/converter/sqldatabase_converter_test.go +++ b/pkg/datastoresrp/datamodel/converter/sqldatabase_converter_test.go @@ -22,7 +22,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/datastoresrp/datamodel" "github.com/radius-project/radius/test/testutil" "github.com/stretchr/testify/require" @@ -37,13 +37,13 @@ func TestSqlDatabaseDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/sqldatabase_manual_resourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.SQLDatabaseResource{}, + "../../api/v20231001preview/testdata/sqldatabase_manual_resourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.SQLDatabaseResource{}, nil, }, { - "../../api/v20220315privatepreview/testdata/sqldatabase_manual_resourcedatamodel.json", + "../../api/v20231001preview/testdata/sqldatabase_manual_resourcedatamodel.json", "unsupported", nil, v1.ErrUnsupportedAPIVersion, @@ -74,27 +74,27 @@ func TestSqlDatabaseDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/sqldatabase_manual_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/sqldatabase_manual_resource.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/sqldatabase_recipe_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/sqldatabase_recipe_resource.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/sqldatabaseresource-invalid.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/sqldatabaseresource-invalid.json", + "2023-10-01-preview", errors.New("json: cannot unmarshal number into Go struct field SqlDatabaseProperties.properties.database of type string"), }, { - "../../api/v20220315privatepreview/testdata/sqldatabase_invalid_properties_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/sqldatabase_invalid_properties_resource.json", + "2023-10-01-preview", &v1.ErrClientRP{Code: v1.CodeInvalid, Message: "multiple errors were found:\n\tserver must be specified when resourceProvisioning is set to manual\n\tport must be specified when resourceProvisioning is set to manual\n\tdatabase must be specified when resourceProvisioning is set to manual"}, }, { - "../../api/v20220315privatepreview/testdata/sqldatabase_invalid_properties_resource.json", + "../../api/v20231001preview/testdata/sqldatabase_invalid_properties_resource.json", "unsupported", v1.ErrUnsupportedAPIVersion, }, @@ -122,19 +122,19 @@ func TestSqlDatabaseSecretsDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/sqldatabase_secrets_datamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.SQLDatabaseSecrets{}, + "../../api/v20231001preview/testdata/sqldatabase_secrets_datamodel.json", + "2023-10-01-preview", + &v20231001preview.SQLDatabaseSecrets{}, nil, }, { - "../../api/v20220315privatepreview/testdata/sqldatabase_recipe_resourcedatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.SQLDatabaseSecrets{}, + "../../api/v20231001preview/testdata/sqldatabase_recipe_resourcedatamodel.json", + "2023-10-01-preview", + &v20231001preview.SQLDatabaseSecrets{}, nil, }, { - "../../api/v20220315privatepreview/testdata/sqldatabase_recipe_resourcedatamodel.json", + "../../api/v20231001preview/testdata/sqldatabase_recipe_resourcedatamodel.json", "unsupported", nil, v1.ErrUnsupportedAPIVersion, diff --git a/pkg/datastoresrp/frontend/controller/mongodatabases/listsecretsmongodatabase_test.go b/pkg/datastoresrp/frontend/controller/mongodatabases/listsecretsmongodatabase_test.go index 0c4b368a473..66b71f8567b 100644 --- a/pkg/datastoresrp/frontend/controller/mongodatabases/listsecretsmongodatabase_test.go +++ b/pkg/datastoresrp/frontend/controller/mongodatabases/listsecretsmongodatabase_test.go @@ -27,7 +27,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" ctrl "github.com/radius-project/radius/pkg/armrpc/frontend/controller" "github.com/radius-project/radius/pkg/armrpc/rpctest" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/portableresources/renderers" "github.com/radius-project/radius/pkg/ucp/store" @@ -35,14 +35,14 @@ import ( "github.com/stretchr/testify/require" ) -func TestListSecrets_20220315PrivatePreview(t *testing.T) { +func TestListSecrets_20231001Preview(t *testing.T) { mctrl := gomock.NewController(t) defer mctrl.Finish() mStorageClient := store.NewMockStorageClient(mctrl) ctx := context.Background() - _, mongoDataModel, _ := getTestModels20220315privatepreview() + _, mongoDataModel, _ := getTestModels20231001preview() t.Run("listSecrets non-existing resource", func(t *testing.T) { w := httptest.NewRecorder() @@ -105,7 +105,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { _ = resp.Apply(ctx, w, req) require.Equal(t, 200, w.Result().StatusCode) - actualOutput := &v20220315privatepreview.MongoDatabaseSecrets{} + actualOutput := &v20231001preview.MongoDatabaseSecrets{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedSecrets[renderers.ConnectionStringValue], *actualOutput.ConnectionString) @@ -145,7 +145,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { _ = resp.Apply(ctx, w, req) require.Equal(t, 200, w.Result().StatusCode) - actualOutput := &v20220315privatepreview.MongoDatabaseSecrets{} + actualOutput := &v20231001preview.MongoDatabaseSecrets{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedSecrets[renderers.ConnectionStringValue], *actualOutput.ConnectionString) diff --git a/pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20220315privatepreview_datamodel.json b/pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20231001preview_datamodel.json similarity index 95% rename from pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20220315privatepreview_datamodel.json rename to pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20231001preview_datamodel.json index 7e20688f620..7e965c4a130 100644 --- a/pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20220315privatepreview_datamodel.json +++ b/pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20231001preview_datamodel.json @@ -55,6 +55,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20220315privatepreview_requestheaders.json b/pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20231001preview_requestheaders.json similarity index 96% rename from pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20220315privatepreview_requestheaders.json rename to pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20231001preview_requestheaders.json index 0fb26957c0e..80981702102 100644 --- a/pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20220315privatepreview_requestheaders.json +++ b/pkg/datastoresrp/frontend/controller/mongodatabases/testdata/20231001preview_requestheaders.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/mongodatabases/mongo0?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/mongodatabases/mongo0?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/mongodatabase/mongo0?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/mongodatabase/mongo0?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/datastoresrp/frontend/controller/mongodatabases/v20220315privatepreview_test.go b/pkg/datastoresrp/frontend/controller/mongodatabases/v20231001preview_test.go similarity index 67% rename from pkg/datastoresrp/frontend/controller/mongodatabases/v20220315privatepreview_test.go rename to pkg/datastoresrp/frontend/controller/mongodatabases/v20231001preview_test.go index 9ff527de653..8bb876e85ec 100644 --- a/pkg/datastoresrp/frontend/controller/mongodatabases/v20220315privatepreview_test.go +++ b/pkg/datastoresrp/frontend/controller/mongodatabases/v20231001preview_test.go @@ -19,15 +19,15 @@ package mongodatabases import ( "encoding/json" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/datastoresrp/datamodel" "github.com/radius-project/radius/test/testutil" ) -const testHeaderfile = "20220315privatepreview_requestheaders.json" +const testHeaderfile = "20231001preview_requestheaders.json" -func getTestModels20220315privatepreview() (input *v20220315privatepreview.MongoDatabaseResource, dataModel *datamodel.MongoDatabase, output *v20220315privatepreview.MongoDatabaseResource) { - rawDataModel := testutil.ReadFixture("20220315privatepreview_datamodel.json") +func getTestModels20231001preview() (input *v20231001preview.MongoDatabaseResource, dataModel *datamodel.MongoDatabase, output *v20231001preview.MongoDatabaseResource) { + rawDataModel := testutil.ReadFixture("20231001preview_datamodel.json") dataModel = &datamodel.MongoDatabase{} _ = json.Unmarshal(rawDataModel, dataModel) diff --git a/pkg/datastoresrp/frontend/controller/rediscaches/listsecretsrediscache_test.go b/pkg/datastoresrp/frontend/controller/rediscaches/listsecretsrediscache_test.go index 3f9d314d6a6..3be9bef214b 100644 --- a/pkg/datastoresrp/frontend/controller/rediscaches/listsecretsrediscache_test.go +++ b/pkg/datastoresrp/frontend/controller/rediscaches/listsecretsrediscache_test.go @@ -27,7 +27,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" ctrl "github.com/radius-project/radius/pkg/armrpc/frontend/controller" "github.com/radius-project/radius/pkg/armrpc/rpctest" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/portableresources/renderers" "github.com/radius-project/radius/pkg/ucp/store" @@ -35,14 +35,14 @@ import ( "github.com/stretchr/testify/require" ) -func TestListSecrets_20220315PrivatePreview(t *testing.T) { +func TestListSecrets_20231001Preview(t *testing.T) { mctrl := gomock.NewController(t) defer mctrl.Finish() mStorageClient := store.NewMockStorageClient(mctrl) ctx := context.Background() - _, redisDataModel, _ := getTestModels20220315privatepreview() + _, redisDataModel, _ := getTestModels20231001preview() t.Run("listSecrets non-existing resource", func(t *testing.T) { w := httptest.NewRecorder() @@ -103,7 +103,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { _ = resp.Apply(ctx, w, req) require.Equal(t, 200, w.Result().StatusCode) - actualOutput := &v20220315privatepreview.RedisCacheSecrets{} + actualOutput := &v20231001preview.RedisCacheSecrets{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedSecrets[renderers.ConnectionStringValue], *actualOutput.ConnectionString) @@ -142,7 +142,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { _ = resp.Apply(ctx, w, req) require.Equal(t, 200, w.Result().StatusCode) - actualOutput := &v20220315privatepreview.RedisCacheSecrets{} + actualOutput := &v20231001preview.RedisCacheSecrets{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedSecrets[renderers.PasswordStringHolder], *actualOutput.Password) diff --git a/pkg/datastoresrp/frontend/controller/rediscaches/testdata/20220315privatepreview_datamodel.json b/pkg/datastoresrp/frontend/controller/rediscaches/testdata/20231001preview_datamodel.json similarity index 94% rename from pkg/datastoresrp/frontend/controller/rediscaches/testdata/20220315privatepreview_datamodel.json rename to pkg/datastoresrp/frontend/controller/rediscaches/testdata/20231001preview_datamodel.json index 4e2949b3cb8..2ed06d881d9 100644 --- a/pkg/datastoresrp/frontend/controller/rediscaches/testdata/20220315privatepreview_datamodel.json +++ b/pkg/datastoresrp/frontend/controller/rediscaches/testdata/20231001preview_datamodel.json @@ -52,6 +52,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/datastoresrp/frontend/controller/rediscaches/testdata/20220315privatepreview_requestheaders.json b/pkg/datastoresrp/frontend/controller/rediscaches/testdata/20231001preview_requestheaders.json similarity index 97% rename from pkg/datastoresrp/frontend/controller/rediscaches/testdata/20220315privatepreview_requestheaders.json rename to pkg/datastoresrp/frontend/controller/rediscaches/testdata/20231001preview_requestheaders.json index 8528c595550..919493e556c 100644 --- a/pkg/datastoresrp/frontend/controller/rediscaches/testdata/20220315privatepreview_requestheaders.json +++ b/pkg/datastoresrp/frontend/controller/rediscaches/testdata/20231001preview_requestheaders.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/rediscaches/redis0?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/rediscaches/redis0?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/rediscache/redis0?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/rediscache/redis0?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/datastoresrp/frontend/controller/rediscaches/v20220315privatepreview_test.go b/pkg/datastoresrp/frontend/controller/rediscaches/v20231001preview_test.go similarity index 67% rename from pkg/datastoresrp/frontend/controller/rediscaches/v20220315privatepreview_test.go rename to pkg/datastoresrp/frontend/controller/rediscaches/v20231001preview_test.go index 124b46fe602..bfc09722e13 100644 --- a/pkg/datastoresrp/frontend/controller/rediscaches/v20220315privatepreview_test.go +++ b/pkg/datastoresrp/frontend/controller/rediscaches/v20231001preview_test.go @@ -19,15 +19,15 @@ package rediscaches import ( "encoding/json" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/datastoresrp/datamodel" "github.com/radius-project/radius/test/testutil" ) -const testHeaderfile = "20220315privatepreview_requestheaders.json" +const testHeaderfile = "20231001preview_requestheaders.json" -func getTestModels20220315privatepreview() (input *v20220315privatepreview.RedisCacheResource, dataModel *datamodel.RedisCache, output *v20220315privatepreview.RedisCacheResource) { - rawDataModel := testutil.ReadFixture("20220315privatepreview_datamodel.json") +func getTestModels20231001preview() (input *v20231001preview.RedisCacheResource, dataModel *datamodel.RedisCache, output *v20231001preview.RedisCacheResource) { + rawDataModel := testutil.ReadFixture("20231001preview_datamodel.json") dataModel = &datamodel.RedisCache{} _ = json.Unmarshal(rawDataModel, dataModel) diff --git a/pkg/datastoresrp/frontend/controller/sqldatabases/listsecretssqldatabase_test.go b/pkg/datastoresrp/frontend/controller/sqldatabases/listsecretssqldatabase_test.go index 083255677dd..eebef6170c6 100644 --- a/pkg/datastoresrp/frontend/controller/sqldatabases/listsecretssqldatabase_test.go +++ b/pkg/datastoresrp/frontend/controller/sqldatabases/listsecretssqldatabase_test.go @@ -27,14 +27,14 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" ctrl "github.com/radius-project/radius/pkg/armrpc/frontend/controller" "github.com/radius-project/radius/pkg/armrpc/rpctest" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/store" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" ) -func TestListSecrets_20220315PrivatePreview(t *testing.T) { +func TestListSecrets_20231001Preview(t *testing.T) { const ( usernameStringValue string = "username" passwordStringValue string = "password" @@ -46,7 +46,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { mStorageClient := store.NewMockStorageClient(mctrl) ctx := context.Background() - _, sqlDataModel, _ := getTestModels20220315privatepreview() + _, sqlDataModel, _ := getTestModels20231001preview() t.Run("listSecrets non-existing resource", func(t *testing.T) { w := httptest.NewRecorder() @@ -106,7 +106,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { _ = resp.Apply(ctx, w, req) require.Equal(t, 200, w.Result().StatusCode) - actualOutput := &v20220315privatepreview.SQLDatabaseSecrets{} + actualOutput := &v20231001preview.SQLDatabaseSecrets{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedSecrets[connectionStringValue], *actualOutput.ConnectionString) @@ -144,7 +144,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { _ = resp.Apply(ctx, w, req) require.Equal(t, 200, w.Result().StatusCode) - actualOutput := &v20220315privatepreview.SQLDatabaseSecrets{} + actualOutput := &v20231001preview.SQLDatabaseSecrets{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedSecrets[connectionStringValue], *actualOutput.ConnectionString) diff --git a/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20220315privatepreview_datamodel.json b/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20231001preview_datamodel.json similarity index 95% rename from pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20220315privatepreview_datamodel.json rename to pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20231001preview_datamodel.json index c2bb9d23553..000fcf0b71d 100644 --- a/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20220315privatepreview_datamodel.json +++ b/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20231001preview_datamodel.json @@ -54,6 +54,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20220315privatepreview_input.json b/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20231001preview_input.json similarity index 100% rename from pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20220315privatepreview_input.json rename to pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20231001preview_input.json diff --git a/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20220315privatepreview_output.json b/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20231001preview_output.json similarity index 100% rename from pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20220315privatepreview_output.json rename to pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20231001preview_output.json diff --git a/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20220315privatepreview_requestheaders.json b/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20231001preview_requestheaders.json similarity index 97% rename from pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20220315privatepreview_requestheaders.json rename to pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20231001preview_requestheaders.json index f540a279870..36de4122dff 100644 --- a/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20220315privatepreview_requestheaders.json +++ b/pkg/datastoresrp/frontend/controller/sqldatabases/testdata/20231001preview_requestheaders.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/sqldatabases/sql0?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/sqldatabases/sql0?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/sqldatabase/sql0?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.datastores/sqldatabase/sql0?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/datastoresrp/frontend/controller/sqldatabases/v20220315privatepreview_test.go b/pkg/datastoresrp/frontend/controller/sqldatabases/v20231001preview_test.go similarity index 58% rename from pkg/datastoresrp/frontend/controller/sqldatabases/v20220315privatepreview_test.go rename to pkg/datastoresrp/frontend/controller/sqldatabases/v20231001preview_test.go index 117c18a161b..49e1658ff82 100644 --- a/pkg/datastoresrp/frontend/controller/sqldatabases/v20220315privatepreview_test.go +++ b/pkg/datastoresrp/frontend/controller/sqldatabases/v20231001preview_test.go @@ -19,24 +19,24 @@ package sqldatabases import ( "encoding/json" - "github.com/radius-project/radius/pkg/datastoresrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/datastoresrp/api/v20231001preview" "github.com/radius-project/radius/pkg/datastoresrp/datamodel" "github.com/radius-project/radius/test/testutil" ) -const testHeaderfile = "20220315privatepreview_requestheaders.json" +const testHeaderfile = "20231001preview_requestheaders.json" -func getTestModels20220315privatepreview() (input *v20220315privatepreview.SQLDatabaseResource, dataModel *datamodel.SqlDatabase, output *v20220315privatepreview.SQLDatabaseResource) { - rawInput := testutil.ReadFixture("20220315privatepreview_input.json") - input = &v20220315privatepreview.SQLDatabaseResource{} +func getTestModels20231001preview() (input *v20231001preview.SQLDatabaseResource, dataModel *datamodel.SqlDatabase, output *v20231001preview.SQLDatabaseResource) { + rawInput := testutil.ReadFixture("20231001preview_input.json") + input = &v20231001preview.SQLDatabaseResource{} _ = json.Unmarshal(rawInput, input) - rawDataModel := testutil.ReadFixture("20220315privatepreview_datamodel.json") + rawDataModel := testutil.ReadFixture("20231001preview_datamodel.json") dataModel = &datamodel.SqlDatabase{} _ = json.Unmarshal(rawDataModel, dataModel) - rawExpectedOutput := testutil.ReadFixture("20220315privatepreview_output.json") - output = &v20220315privatepreview.SQLDatabaseResource{} + rawExpectedOutput := testutil.ReadFixture("20231001preview_output.json") + output = &v20231001preview.SQLDatabaseResource{} _ = json.Unmarshal(rawExpectedOutput, output) return input, dataModel, output diff --git a/pkg/messagingrp/api/README.md b/pkg/messagingrp/api/README.md index 5f850ef4b69..32c36740772 100644 --- a/pkg/messagingrp/api/README.md +++ b/pkg/messagingrp/api/README.md @@ -15,7 +15,7 @@ npm install -g autorest 1. Add api version tags and openapi file below in this README.md 2. Run autorest. ```bash -autorest README.md --tag=messaging-2022-03-15-privatepreview +autorest README.md --tag=messaging-2023-10-01-preview ``` 3. Create or modify the corresponding datamodels in [datamodel](../datamodel/) 4. Add the converter between versioned model and datamodel in [converter](../datamodel/converter/) @@ -28,13 +28,13 @@ The following are the settings for this using this API with AutoRest. ### Input OpenAPI specificiations -#### Tag: messaging-2022-03-15-privatepreview +#### Tag: messaging-2023-10-01-preview -These settings apply only when `--tag=messaging-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=messaging-2023-10-01-preview` is specified on the command line. -```yaml $(tag) == 'messaging-2022-03-15-privatepreview' +```yaml $(tag) == 'messaging-2023-10-01-preview' input-file: - - ../../../swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/openapi.json + - ../../../swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/openapi.json modelerfour: treat-type-object-as-anything: false ``` @@ -53,10 +53,10 @@ azure-arm: true ### Output -#### Tag: messaging-2022-03-15-privatepreview +#### Tag: messaging-2023-10-01-preview -These settings apply only when `--tag=messaging-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=messaging-2023-10-01-preview` is specified on the command line. -```yaml $(tag) == 'messaging-2022-03-15-privatepreview' -output-folder: ./v20220315privatepreview +```yaml $(tag) == 'messaging-2023-10-01-preview' +output-folder: ./v20231001preview ``` \ No newline at end of file diff --git a/pkg/messagingrp/api/v20220315privatepreview/datamodel_util.go b/pkg/messagingrp/api/v20231001preview/datamodel_util.go similarity index 99% rename from pkg/messagingrp/api/v20220315privatepreview/datamodel_util.go rename to pkg/messagingrp/api/v20231001preview/datamodel_util.go index fe1e1724b35..62dc748fcec 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/datamodel_util.go +++ b/pkg/messagingrp/api/v20231001preview/datamodel_util.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/messagingrp/api/v20220315privatepreview/datamodel_util_test.go b/pkg/messagingrp/api/v20231001preview/datamodel_util_test.go similarity index 99% rename from pkg/messagingrp/api/v20220315privatepreview/datamodel_util_test.go rename to pkg/messagingrp/api/v20231001preview/datamodel_util_test.go index e68b6506256..77a535740ef 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/datamodel_util_test.go +++ b/pkg/messagingrp/api/v20231001preview/datamodel_util_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "testing" diff --git a/pkg/messagingrp/api/v20220315privatepreview/rabbitmq_conversion.go b/pkg/messagingrp/api/v20231001preview/rabbitmq_conversion.go similarity index 99% rename from pkg/messagingrp/api/v20220315privatepreview/rabbitmq_conversion.go rename to pkg/messagingrp/api/v20231001preview/rabbitmq_conversion.go index 9602586f8a6..5b61c0be147 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/rabbitmq_conversion.go +++ b/pkg/messagingrp/api/v20231001preview/rabbitmq_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/messagingrp/api/v20220315privatepreview/rabbitmq_conversion_test.go b/pkg/messagingrp/api/v20231001preview/rabbitmq_conversion_test.go similarity index 98% rename from pkg/messagingrp/api/v20220315privatepreview/rabbitmq_conversion_test.go rename to pkg/messagingrp/api/v20231001preview/rabbitmq_conversion_test.go index 408ab20133b..50326bee308 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/rabbitmq_conversion_test.go +++ b/pkg/messagingrp/api/v20231001preview/rabbitmq_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview import ( "encoding/json" @@ -52,7 +52,7 @@ func TestRabbitMQQueue_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, @@ -92,7 +92,7 @@ func TestRabbitMQQueue_ConvertVersionedToDataModel(t *testing.T) { }, InternalMetadata: v1.InternalMetadata{ CreatedAPIVersion: "", - UpdatedAPIVersion: "2022-03-15-privatepreview", + UpdatedAPIVersion: "2023-10-01-preview", AsyncProvisioningState: v1.ProvisioningStateAccepted, }, SystemData: v1.SystemData{}, diff --git a/pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_invalid_properties_resource.json b/pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_invalid_properties_resource.json similarity index 100% rename from pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_invalid_properties_resource.json rename to pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_invalid_properties_resource.json diff --git a/pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_invalid_resourceprovisioning_resource.json b/pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_invalid_resourceprovisioning_resource.json similarity index 100% rename from pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_invalid_resourceprovisioning_resource.json rename to pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_invalid_resourceprovisioning_resource.json diff --git a/pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_manual_datamodel.json b/pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_manual_datamodel.json similarity index 100% rename from pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_manual_datamodel.json rename to pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_manual_datamodel.json diff --git a/pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_manual_resource.json b/pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_manual_resource.json similarity index 100% rename from pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_manual_resource.json rename to pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_manual_resource.json diff --git a/pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_recipe_datamodel.json b/pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_recipe_datamodel.json similarity index 100% rename from pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_recipe_datamodel.json rename to pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_recipe_datamodel.json diff --git a/pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_recipe_resource.json b/pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_recipe_resource.json similarity index 100% rename from pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmq_recipe_resource.json rename to pkg/messagingrp/api/v20231001preview/testdata/rabbitmq_recipe_resource.json diff --git a/pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmqresource-invalid.json b/pkg/messagingrp/api/v20231001preview/testdata/rabbitmqresource-invalid.json similarity index 100% rename from pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmqresource-invalid.json rename to pkg/messagingrp/api/v20231001preview/testdata/rabbitmqresource-invalid.json diff --git a/pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmqsecrets.json b/pkg/messagingrp/api/v20231001preview/testdata/rabbitmqsecrets.json similarity index 100% rename from pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmqsecrets.json rename to pkg/messagingrp/api/v20231001preview/testdata/rabbitmqsecrets.json diff --git a/pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmqsecretsdatamodel.json b/pkg/messagingrp/api/v20231001preview/testdata/rabbitmqsecretsdatamodel.json similarity index 100% rename from pkg/messagingrp/api/v20220315privatepreview/testdata/rabbitmqsecretsdatamodel.json rename to pkg/messagingrp/api/v20231001preview/testdata/rabbitmqsecretsdatamodel.json diff --git a/pkg/messagingrp/api/v20220315privatepreview/version.go b/pkg/messagingrp/api/v20231001preview/version.go similarity index 89% rename from pkg/messagingrp/api/v20220315privatepreview/version.go rename to pkg/messagingrp/api/v20231001preview/version.go index 3a97781966a..632c27dda69 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/version.go +++ b/pkg/messagingrp/api/v20231001preview/version.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220315privatepreview +package v20231001preview // Version represents the api version in this package. -const Version = "2022-03-15-privatepreview" +const Version = "2023-10-01-preview" diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_client_factory.go b/pkg/messagingrp/api/v20231001preview/zz_generated_client_factory.go similarity index 98% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_client_factory.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_client_factory.go index d1e4153defb..4e82fbb8756 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_client_factory.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_client_factory.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_constants.go b/pkg/messagingrp/api/v20231001preview/zz_generated_constants.go similarity index 95% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_constants.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_constants.go index 870ca853371..7caa108f503 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_constants.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_constants.go @@ -5,10 +5,10 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview const ( - moduleName = "v20220315privatepreview" + moduleName = "v20231001preview" moduleVersion = "v0.0.1" ) @@ -140,14 +140,14 @@ func PossibleResourceProvisioningValues() []ResourceProvisioning { type Versions string const ( - // VersionsV20220315Privatepreview - 2022-03-15-privatepreview - VersionsV20220315Privatepreview Versions = "2022-03-15-privatepreview" + // VersionsV20231001Preview - 2023-10-01-preview + VersionsV20231001Preview Versions = "2023-10-01-preview" ) // PossibleVersionsValues returns the possible values for the Versions const type. func PossibleVersionsValues() []Versions { return []Versions{ - VersionsV20220315Privatepreview, + VersionsV20231001Preview, } } diff --git a/pkg/daprrp/api/v20220315privatepreview/zz_generated_interfaces.go b/pkg/messagingrp/api/v20231001preview/zz_generated_interfaces.go similarity index 96% rename from pkg/daprrp/api/v20220315privatepreview/zz_generated_interfaces.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_interfaces.go index 104e8355bda..ff4b623caed 100644 --- a/pkg/daprrp/api/v20220315privatepreview/zz_generated_interfaces.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_interfaces.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // EnvironmentComputeClassification provides polymorphic access to related types. // Call the interface's GetEnvironmentCompute() method to access the common type. diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_models.go b/pkg/messagingrp/api/v20231001preview/zz_generated_models.go similarity index 99% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_models.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_models.go index 58a8cd4afbd..503caa54e90 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_models.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_models.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import "time" diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_models_serde.go b/pkg/messagingrp/api/v20231001preview/zz_generated_models_serde.go similarity index 99% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_models_serde.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_models_serde.go index f3bb6ae9f58..91598316e6a 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_models_serde.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_models_serde.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_operations_client.go b/pkg/messagingrp/api/v20231001preview/zz_generated_operations_client.go similarity index 95% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_operations_client.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_operations_client.go index 10aac8e976c..a26b477ef5b 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_operations_client.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_operations_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -38,7 +38,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - List the operations for the provider // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) (*runtime.Pager[OperationsClientListResponse]) { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -76,7 +76,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_options.go b/pkg/messagingrp/api/v20231001preview/zz_generated_options.go similarity index 98% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_options.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_options.go index 105b2c29cff..1eaffef9767 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_options.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_options.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { diff --git a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go b/pkg/messagingrp/api/v20231001preview/zz_generated_polymorphic_helpers.go similarity index 96% rename from pkg/datastoresrp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_polymorphic_helpers.go index 83f13ff53e9..c574dd5eea4 100644 --- a/pkg/datastoresrp/api/v20220315privatepreview/zz_generated_polymorphic_helpers.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_polymorphic_helpers.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import "encoding/json" diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_rabbitmqqueues_client.go b/pkg/messagingrp/api/v20231001preview/zz_generated_rabbitmqqueues_client.go similarity index 95% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_rabbitmqqueues_client.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_rabbitmqqueues_client.go index 3f473894c60..7869cb52d51 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_rabbitmqqueues_client.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_rabbitmqqueues_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview import ( "context" @@ -47,7 +47,7 @@ func NewRabbitMqQueuesClient(rootScope string, credential azcore.TokenCredential // BeginCreateOrUpdate - Create a RabbitMQQueueResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - rabbitMQQueueName - The name of the RabbitMQQueue portable resource resource // - resource - Resource create parameters. // - options - RabbitMqQueuesClientBeginCreateOrUpdateOptions contains the optional parameters for the RabbitMqQueuesClient.BeginCreateOrUpdate @@ -70,7 +70,7 @@ func (client *RabbitMqQueuesClient) BeginCreateOrUpdate(ctx context.Context, rab // CreateOrUpdate - Create a RabbitMQQueueResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *RabbitMqQueuesClient) createOrUpdate(ctx context.Context, rabbitMQQueueName string, resource RabbitMQQueueResource, options *RabbitMqQueuesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, rabbitMQQueueName, resource, options) @@ -101,7 +101,7 @@ func (client *RabbitMqQueuesClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -113,7 +113,7 @@ func (client *RabbitMqQueuesClient) createOrUpdateCreateRequest(ctx context.Cont // BeginDelete - Delete a RabbitMQQueueResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - rabbitMQQueueName - The name of the RabbitMQQueue portable resource resource // - options - RabbitMqQueuesClientBeginDeleteOptions contains the optional parameters for the RabbitMqQueuesClient.BeginDelete // method. @@ -135,7 +135,7 @@ func (client *RabbitMqQueuesClient) BeginDelete(ctx context.Context, rabbitMQQue // Delete - Delete a RabbitMQQueueResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *RabbitMqQueuesClient) deleteOperation(ctx context.Context, rabbitMQQueueName string, options *RabbitMqQueuesClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, rabbitMQQueueName, options) @@ -166,7 +166,7 @@ func (client *RabbitMqQueuesClient) deleteCreateRequest(ctx context.Context, rab return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -175,7 +175,7 @@ func (client *RabbitMqQueuesClient) deleteCreateRequest(ctx context.Context, rab // Get - Get a RabbitMQQueueResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - rabbitMQQueueName - The name of the RabbitMQQueue portable resource resource // - options - RabbitMqQueuesClientGetOptions contains the optional parameters for the RabbitMqQueuesClient.Get method. func (client *RabbitMqQueuesClient) Get(ctx context.Context, rabbitMQQueueName string, options *RabbitMqQueuesClientGetOptions) (RabbitMqQueuesClientGetResponse, error) { @@ -209,7 +209,7 @@ func (client *RabbitMqQueuesClient) getCreateRequest(ctx context.Context, rabbit return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -226,7 +226,7 @@ func (client *RabbitMqQueuesClient) getHandleResponse(resp *http.Response) (Rabb // NewListByScopePager - List RabbitMQQueueResource resources by Scope // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - options - RabbitMqQueuesClientListByScopeOptions contains the optional parameters for the RabbitMqQueuesClient.NewListByScopePager // method. func (client *RabbitMqQueuesClient) NewListByScopePager(options *RabbitMqQueuesClientListByScopeOptions) (*runtime.Pager[RabbitMqQueuesClientListByScopeResponse]) { @@ -266,7 +266,7 @@ func (client *RabbitMqQueuesClient) listByScopeCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -284,7 +284,7 @@ func (client *RabbitMqQueuesClient) listByScopeHandleResponse(resp *http.Respons // ListSecrets - Lists secrets values for the specified RabbitMQQueue resource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - rabbitMQQueueName - The name of the RabbitMQQueue portable resource resource // - body - The content of the action request // - options - RabbitMqQueuesClientListSecretsOptions contains the optional parameters for the RabbitMqQueuesClient.ListSecrets @@ -320,7 +320,7 @@ func (client *RabbitMqQueuesClient) listSecretsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -341,7 +341,7 @@ func (client *RabbitMqQueuesClient) listSecretsHandleResponse(resp *http.Respons // BeginUpdate - Update a RabbitMQQueueResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview // - rabbitMQQueueName - The name of the RabbitMQQueue portable resource resource // - properties - The resource properties to be updated. // - options - RabbitMqQueuesClientBeginUpdateOptions contains the optional parameters for the RabbitMqQueuesClient.BeginUpdate @@ -364,7 +364,7 @@ func (client *RabbitMqQueuesClient) BeginUpdate(ctx context.Context, rabbitMQQue // Update - Update a RabbitMQQueueResource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-03-15-privatepreview +// Generated from API version 2023-10-01-preview func (client *RabbitMqQueuesClient) update(ctx context.Context, rabbitMQQueueName string, properties RabbitMQQueueResourceUpdate, options *RabbitMqQueuesClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, rabbitMQQueueName, properties, options) @@ -395,7 +395,7 @@ func (client *RabbitMqQueuesClient) updateCreateRequest(ctx context.Context, rab return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-15-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_response_types.go b/pkg/messagingrp/api/v20231001preview/zz_generated_response_types.go similarity index 98% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_response_types.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_response_types.go index a9996c7a595..a038e0d8080 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_response_types.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_response_types.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview // OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { diff --git a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_time_rfc3339.go b/pkg/messagingrp/api/v20231001preview/zz_generated_time_rfc3339.go similarity index 98% rename from pkg/messagingrp/api/v20220315privatepreview/zz_generated_time_rfc3339.go rename to pkg/messagingrp/api/v20231001preview/zz_generated_time_rfc3339.go index 30ea6fa1d04..948a6660cdc 100644 --- a/pkg/messagingrp/api/v20220315privatepreview/zz_generated_time_rfc3339.go +++ b/pkg/messagingrp/api/v20231001preview/zz_generated_time_rfc3339.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220315privatepreview +package v20231001preview diff --git a/pkg/messagingrp/datamodel/converter/rabbitmq_converter.go b/pkg/messagingrp/datamodel/converter/rabbitmq_converter.go index 6eba77b8ac9..33a88f95d7d 100644 --- a/pkg/messagingrp/datamodel/converter/rabbitmq_converter.go +++ b/pkg/messagingrp/datamodel/converter/rabbitmq_converter.go @@ -20,7 +20,7 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/messagingrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/messagingrp/api/v20231001preview" "github.com/radius-project/radius/pkg/messagingrp/datamodel" ) @@ -28,8 +28,8 @@ import ( // and returns an error if the version is unsupported. func RabbitMQQueueDataModelToVersioned(model *datamodel.RabbitMQQueue, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.RabbitMQQueueResource{} + case v20231001preview.Version: + versioned := &v20231001preview.RabbitMQQueueResource{} err := versioned.ConvertFrom(model) return versioned, err default: @@ -41,8 +41,8 @@ func RabbitMQQueueDataModelToVersioned(model *datamodel.RabbitMQQueue, version s // RabbitMQQueue datamodel and an error if the version is unsupported. func RabbitMQQueueDataModelFromVersioned(content []byte, version string) (*datamodel.RabbitMQQueue, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.RabbitMQQueueResource{} + case v20231001preview.Version: + versioned := &v20231001preview.RabbitMQQueueResource{} if err := json.Unmarshal(content, versioned); err != nil { return nil, err } @@ -58,8 +58,8 @@ func RabbitMQQueueDataModelFromVersioned(content []byte, version string) (*datam // based on the given version string, or returns an error if the version is not supported. func RabbitMQSecretsDataModelToVersioned(model *datamodel.RabbitMQSecrets, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220315privatepreview.Version: - versioned := &v20220315privatepreview.RabbitMQSecrets{} + case v20231001preview.Version: + versioned := &v20231001preview.RabbitMQSecrets{} err := versioned.ConvertFrom(model) return versioned, err diff --git a/pkg/messagingrp/datamodel/converter/rabbitmq_converter_test.go b/pkg/messagingrp/datamodel/converter/rabbitmq_converter_test.go index 1a7b4113499..5f2b4f5af83 100644 --- a/pkg/messagingrp/datamodel/converter/rabbitmq_converter_test.go +++ b/pkg/messagingrp/datamodel/converter/rabbitmq_converter_test.go @@ -22,7 +22,7 @@ import ( "testing" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/messagingrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/messagingrp/api/v20231001preview" "github.com/radius-project/radius/pkg/messagingrp/datamodel" "github.com/radius-project/radius/test/testutil" "github.com/stretchr/testify/require" @@ -37,13 +37,13 @@ func TestRabbitMQQueueDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/rabbitmq_manual_datamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.RabbitMQQueueResource{}, + "../../api/v20231001preview/testdata/rabbitmq_manual_datamodel.json", + "2023-10-01-preview", + &v20231001preview.RabbitMQQueueResource{}, nil, }, { - "../../api/v20220315privatepreview/testdata/rabbitmq_manual_datamodel.json", + "../../api/v20231001preview/testdata/rabbitmq_manual_datamodel.json", "unsupported", nil, v1.ErrUnsupportedAPIVersion, @@ -74,17 +74,17 @@ func TestRabbitMQQueueDataModelFromVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/rabbitmq_manual_resource.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/rabbitmq_manual_resource.json", + "2023-10-01-preview", nil, }, { - "../../api/v20220315privatepreview/testdata/rabbitmqresource-invalid.json", - "2022-03-15-privatepreview", + "../../api/v20231001preview/testdata/rabbitmqresource-invalid.json", + "2023-10-01-preview", errors.New("json: cannot unmarshal number into Go struct field RabbitMQQueueProperties.properties.resource of type string"), }, { - "../../api/v20220315privatepreview/testdata/rabbitmq_manual_resource.json", + "../../api/v20231001preview/testdata/rabbitmq_manual_resource.json", "unsupported", v1.ErrUnsupportedAPIVersion, }, @@ -112,13 +112,13 @@ func TestRabbitMQSecretsDataModelToVersioned(t *testing.T) { err error }{ { - "../../api/v20220315privatepreview/testdata/rabbitmqsecretsdatamodel.json", - "2022-03-15-privatepreview", - &v20220315privatepreview.RabbitMQSecrets{}, + "../../api/v20231001preview/testdata/rabbitmqsecretsdatamodel.json", + "2023-10-01-preview", + &v20231001preview.RabbitMQSecrets{}, nil, }, { - "../../api/v20220315privatepreview/testdata/rabbitmqsecretsdatamodel.json", + "../../api/v20231001preview/testdata/rabbitmqsecretsdatamodel.json", "unsupported", nil, v1.ErrUnsupportedAPIVersion, diff --git a/pkg/messagingrp/frontend/controller/rabbitmqqueues/listsecretsrabbitmq_test.go b/pkg/messagingrp/frontend/controller/rabbitmqqueues/listsecretsrabbitmq_test.go index d96eb40d916..7b1707b3c3a 100644 --- a/pkg/messagingrp/frontend/controller/rabbitmqqueues/listsecretsrabbitmq_test.go +++ b/pkg/messagingrp/frontend/controller/rabbitmqqueues/listsecretsrabbitmq_test.go @@ -27,20 +27,20 @@ import ( "github.com/golang/mock/gomock" ctrl "github.com/radius-project/radius/pkg/armrpc/frontend/controller" "github.com/radius-project/radius/pkg/armrpc/rpctest" - "github.com/radius-project/radius/pkg/messagingrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/messagingrp/api/v20231001preview" "github.com/radius-project/radius/pkg/portableresources/renderers" "github.com/radius-project/radius/pkg/ucp/store" "github.com/stretchr/testify/require" ) -func TestListSecrets_20220315PrivatePreview(t *testing.T) { +func TestListSecrets_20231001Preview(t *testing.T) { mctrl := gomock.NewController(t) defer mctrl.Finish() mStorageClient := store.NewMockStorageClient(mctrl) ctx := context.Background() - _, rabbitMQDataModel, _ := getTest_Model20220315privatepreview() + _, rabbitMQDataModel, _ := getTest_Model20231001preview() t.Run("listSecrets non-existing resource", func(t *testing.T) { w := httptest.NewRecorder() @@ -101,7 +101,7 @@ func TestListSecrets_20220315PrivatePreview(t *testing.T) { _ = resp.Apply(ctx, w, req) require.Equal(t, 200, w.Result().StatusCode) - actualOutput := &v20220315privatepreview.RabbitMQSecrets{} + actualOutput := &v20231001preview.RabbitMQSecrets{} _ = json.Unmarshal(w.Body.Bytes(), actualOutput) require.Equal(t, expectedSecrets[renderers.URI], *actualOutput.URI) diff --git a/pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20220315privatepreview_datamodel.json b/pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20231001preview_datamodel.json similarity index 93% rename from pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20220315privatepreview_datamodel.json rename to pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20231001preview_datamodel.json index dd945fcb962..9fe756f67cd 100644 --- a/pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20220315privatepreview_datamodel.json +++ b/pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20231001preview_datamodel.json @@ -43,6 +43,6 @@ "tenantId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroup": "radius-test-rg", - "createdApiVersion": "2022-03-15-privatepreview", - "updatedApiVersion": "2022-03-15-privatepreview" + "createdApiVersion": "2023-10-01-preview", + "updatedApiVersion": "2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20220315privatepreview_requestheaders.json b/pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20231001preview_requestheaders.json similarity index 96% rename from pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20220315privatepreview_requestheaders.json rename to pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20231001preview_requestheaders.json index bef12a712c5..7a6aa43255e 100644 --- a/pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20220315privatepreview_requestheaders.json +++ b/pkg/messagingrp/frontend/controller/rabbitmqqueues/testdata/20231001preview_requestheaders.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.messaging/rabbitmqqueues/rabbitmq0?api-version=2022-03-15-privatepreview", + "Referer": "https://radius.dev/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.messaging/rabbitmqqueues/rabbitmq0?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Messaging/rabbitmqqueue/rabbitmq0?api-version=2022-03-15-privatepreview", + "X-Fd-Originalurl": "https://radius.dev:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Messaging/rabbitmqqueue/rabbitmq0?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/messagingrp/frontend/controller/rabbitmqqueues/v20220315privatepreview_test.go b/pkg/messagingrp/frontend/controller/rabbitmqqueues/v20231001preview_test.go similarity index 67% rename from pkg/messagingrp/frontend/controller/rabbitmqqueues/v20220315privatepreview_test.go rename to pkg/messagingrp/frontend/controller/rabbitmqqueues/v20231001preview_test.go index f607368d308..2d8774780cb 100644 --- a/pkg/messagingrp/frontend/controller/rabbitmqqueues/v20220315privatepreview_test.go +++ b/pkg/messagingrp/frontend/controller/rabbitmqqueues/v20231001preview_test.go @@ -19,15 +19,15 @@ package rabbitmqqueues import ( "encoding/json" - "github.com/radius-project/radius/pkg/messagingrp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/messagingrp/api/v20231001preview" msg_dm "github.com/radius-project/radius/pkg/messagingrp/datamodel" "github.com/radius-project/radius/test/testutil" ) -const testHeaderfile = "20220315privatepreview_requestheaders.json" +const testHeaderfile = "20231001preview_requestheaders.json" -func getTest_Model20220315privatepreview() (input *v20220315privatepreview.RabbitMQQueueResource, dataModel *msg_dm.RabbitMQQueue, output *v20220315privatepreview.RabbitMQQueueResource) { - rawDataModel := testutil.ReadFixture("20220315privatepreview_datamodel.json") +func getTest_Model20231001preview() (input *v20231001preview.RabbitMQQueueResource, dataModel *msg_dm.RabbitMQQueue, output *v20231001preview.RabbitMQQueueResource) { + rawDataModel := testutil.ReadFixture("20231001preview_datamodel.json") dataModel = &msg_dm.RabbitMQQueue{} _ = json.Unmarshal(rawDataModel, dataModel) diff --git a/pkg/portableresources/api/versions.go b/pkg/portableresources/api/versions.go index 557058b8cae..93ddca75ccd 100644 --- a/pkg/portableresources/api/versions.go +++ b/pkg/portableresources/api/versions.go @@ -16,5 +16,5 @@ limitations under the License. package api -// V20220315privatepreview represents the api version "2022-03-15-privatepreview". -const V20220315privatepreview = "2022-03-15-privatepreview" +// V20231001preview represents the api version "2023-10-01-preview". +const V20231001preview = "2023-10-01-preview" diff --git a/pkg/portableresources/backend/controller/deleteresource_test.go b/pkg/portableresources/backend/controller/deleteresource_test.go index 9420ff1b4ec..bbdf1649ec7 100644 --- a/pkg/portableresources/backend/controller/deleteresource_test.go +++ b/pkg/portableresources/backend/controller/deleteresource_test.go @@ -42,7 +42,7 @@ var outputResource = rpv1.OutputResource{ RadiusManaged: to.Ptr(true), } -func TestDeleteResourceRun_20220315PrivatePreview(t *testing.T) { +func TestDeleteResourceRun_20231001Preview(t *testing.T) { resourceID := "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/Applications.Datastores/mongoDatabases/mongo0" setupTest := func(tb testing.TB) (func(tb testing.TB), *store.MockStorageClient, *ctrl.Request, *engine.MockEngine, *configloader.MockConfigurationLoader) { mctrl := gomock.NewController(t) diff --git a/pkg/portableresources/frontend/handler/getoperations.go b/pkg/portableresources/frontend/handler/getoperations.go index a718422d07b..d3af86525c2 100644 --- a/pkg/portableresources/frontend/handler/getoperations.go +++ b/pkg/portableresources/frontend/handler/getoperations.go @@ -44,7 +44,7 @@ func (opctrl *GetOperations) Run(ctx context.Context, w http.ResponseWriter, req sCtx := v1.ARMRequestContextFromContext(ctx) switch sCtx.APIVersion { - case api_ver.V20220315privatepreview: + case api_ver.V20231001preview: return rest.NewOKResponse(opctrl.availableOperationsV1()), nil } diff --git a/pkg/portableresources/frontend/handler/getoperations_test.go b/pkg/portableresources/frontend/handler/getoperations_test.go index 15bbc57b4b4..8d9781c0a52 100644 --- a/pkg/portableresources/frontend/handler/getoperations_test.go +++ b/pkg/portableresources/frontend/handler/getoperations_test.go @@ -28,13 +28,13 @@ import ( "github.com/stretchr/testify/require" ) -func TestRunWith20220315PrivatePreview(t *testing.T) { +func TestRunWith20231001Preview(t *testing.T) { // arrange opts := ctrl.Options{} op, err := NewGetOperations(opts) require.NoError(t, err) ctx := v1.WithARMRequestContext(context.Background(), &v1.ARMRequestContext{ - APIVersion: api_ver.V20220315privatepreview, + APIVersion: api_ver.V20231001preview, }) w := httptest.NewRecorder() diff --git a/pkg/recipes/configloader/environment.go b/pkg/recipes/configloader/environment.go index 1aec852ec54..5ff35418ab6 100644 --- a/pkg/recipes/configloader/environment.go +++ b/pkg/recipes/configloader/environment.go @@ -22,7 +22,7 @@ import ( "fmt" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/radius-project/radius/pkg/recipes" recipes_util "github.com/radius-project/radius/pkg/recipes/util" @@ -59,7 +59,7 @@ func (e *environmentLoader) LoadConfiguration(ctx context.Context, recipe recipe return nil, err } - var application *v20220315privatepreview.ApplicationResource + var application *v20231001preview.ApplicationResource if recipe.ApplicationID != "" { application, err = util.FetchApplication(ctx, recipe.ApplicationID, e.ArmClientOptions) if err != nil { @@ -70,14 +70,14 @@ func (e *environmentLoader) LoadConfiguration(ctx context.Context, recipe recipe return getConfiguration(environment, application) } -func getConfiguration(environment *v20220315privatepreview.EnvironmentResource, application *v20220315privatepreview.ApplicationResource) (*recipes.Configuration, error) { +func getConfiguration(environment *v20231001preview.EnvironmentResource, application *v20231001preview.ApplicationResource) (*recipes.Configuration, error) { config := recipes.Configuration{ Runtime: recipes.RuntimeConfiguration{}, Providers: datamodel.Providers{}, } switch environment.Properties.Compute.(type) { - case *v20220315privatepreview.KubernetesCompute: + case *v20231001preview.KubernetesCompute: config.Runtime.Kubernetes = &recipes.KubernetesRuntime{} var err error @@ -123,7 +123,7 @@ func (e *environmentLoader) LoadRecipe(ctx context.Context, recipe *recipes.Reso return getRecipeDefinition(environment, recipe) } -func getRecipeDefinition(environment *v20220315privatepreview.EnvironmentResource, recipe *recipes.ResourceMetadata) (*recipes.EnvironmentDefinition, error) { +func getRecipeDefinition(environment *v20231001preview.EnvironmentResource, recipe *recipes.ResourceMetadata) (*recipes.EnvironmentDefinition, error) { if environment.Properties.Recipes == nil { err := fmt.Errorf("could not find recipe %q in environment %q", recipe.Name, recipe.EnvironmentID) return nil, recipes.NewRecipeError(recipes.RecipeNotFoundFailure, err.Error(), recipes_util.RecipeSetupError, recipes.GetRecipeErrorDetails(err)) @@ -149,7 +149,7 @@ func getRecipeDefinition(environment *v20220315privatepreview.EnvironmentResourc TemplatePath: *found.GetRecipeProperties().TemplatePath, } switch c := found.(type) { - case *v20220315privatepreview.TerraformRecipeProperties: + case *v20231001preview.TerraformRecipeProperties: definition.TemplateVersion = *c.TemplateVersion } diff --git a/pkg/recipes/configloader/environment_test.go b/pkg/recipes/configloader/environment_test.go index 98e5934905a..16b1000bf94 100644 --- a/pkg/recipes/configloader/environment_test.go +++ b/pkg/recipes/configloader/environment_test.go @@ -19,7 +19,7 @@ package configloader import ( "testing" - model "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + model "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" "github.com/radius-project/radius/pkg/recipes" "github.com/radius-project/radius/pkg/to" diff --git a/pkg/rp/frontend/resource_test.go b/pkg/rp/frontend/resource_test.go index 9c0e6dd66ee..906b43567de 100644 --- a/pkg/rp/frontend/resource_test.go +++ b/pkg/rp/frontend/resource_test.go @@ -24,7 +24,7 @@ import ( const ( testHeaderfile = "resource-request-headers.json" - testAPIVersion = "2022-03-15-privatepreview" + testAPIVersion = "2023-10-01-preview" ) // TestResourceDataModel represents test resource. diff --git a/pkg/rp/kube/resources.go b/pkg/rp/kube/resources.go index 59c418a6dfe..81d3edab5ee 100644 --- a/pkg/rp/kube/resources.go +++ b/pkg/rp/kube/resources.go @@ -22,7 +22,7 @@ import ( "strings" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" cdm "github.com/radius-project/radius/pkg/corerp/datamodel" rpv1 "github.com/radius-project/radius/pkg/rp/v1" "github.com/radius-project/radius/pkg/ucp/dataprovider" @@ -71,9 +71,9 @@ func FindNamespaceByEnvID(ctx context.Context, sp dataprovider.DataStorageProvid // FetchNamespaceFromEnvironmentResource finds the environment-scope Kubernetes namespace from EnvironmentResource. // If no namespace is found, an error is returned. -func FetchNamespaceFromEnvironmentResource(environment *v20220315privatepreview.EnvironmentResource) (string, error) { +func FetchNamespaceFromEnvironmentResource(environment *v20231001preview.EnvironmentResource) (string, error) { if environment.Properties.Compute != nil { - kubernetes, ok := environment.Properties.Compute.(*v20220315privatepreview.KubernetesCompute) + kubernetes, ok := environment.Properties.Compute.(*v20231001preview.KubernetesCompute) if !ok { return "", v1.ErrInvalidModelConversion } @@ -85,9 +85,9 @@ func FetchNamespaceFromEnvironmentResource(environment *v20220315privatepreview. // FetchNamespaceFromApplicationResource finds the application-scope Kubernetes namespace from ApplicationResource. // If no namespace is found, an error is returned. -func FetchNamespaceFromApplicationResource(application *v20220315privatepreview.ApplicationResource) (string, error) { +func FetchNamespaceFromApplicationResource(application *v20231001preview.ApplicationResource) (string, error) { if application.Properties.Status != nil && application.Properties.Status.Compute != nil { - kubernetes, ok := application.Properties.Status.Compute.(*v20220315privatepreview.KubernetesCompute) + kubernetes, ok := application.Properties.Status.Compute.(*v20231001preview.KubernetesCompute) if !ok { return "", v1.ErrInvalidModelConversion } diff --git a/pkg/rp/kube/resources_test.go b/pkg/rp/kube/resources_test.go index d6c3f10d0b3..3bc0491d61d 100644 --- a/pkg/rp/kube/resources_test.go +++ b/pkg/rp/kube/resources_test.go @@ -23,7 +23,7 @@ import ( "github.com/golang/mock/gomock" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - model "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + model "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/pkg/corerp/datamodel" rpv1 "github.com/radius-project/radius/pkg/rp/v1" "github.com/radius-project/radius/pkg/to" diff --git a/pkg/rp/util/application.go b/pkg/rp/util/application.go index db0feefa858..53c105fef19 100644 --- a/pkg/rp/util/application.go +++ b/pkg/rp/util/application.go @@ -21,19 +21,19 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" aztoken "github.com/radius-project/radius/pkg/azure/tokencredentials" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" resources "github.com/radius-project/radius/pkg/ucp/resources" ) // FetchApplication fetches an application resource from the Azure Resource Manager using the given application ID and // client options, and returns the application resource or an error if one occurs. -func FetchApplication(ctx context.Context, application string, ucpOptions *arm.ClientOptions) (*v20220315privatepreview.ApplicationResource, error) { +func FetchApplication(ctx context.Context, application string, ucpOptions *arm.ClientOptions) (*v20231001preview.ApplicationResource, error) { applicationID, err := resources.ParseResource(application) if err != nil { return nil, err } - client, err := v20220315privatepreview.NewApplicationsClient(applicationID.RootScope(), &aztoken.AnonymousCredential{}, ucpOptions) + client, err := v20231001preview.NewApplicationsClient(applicationID.RootScope(), &aztoken.AnonymousCredential{}, ucpOptions) if err != nil { return nil, err } diff --git a/pkg/rp/util/environment.go b/pkg/rp/util/environment.go index 00bec92f232..30ddd55eb3b 100644 --- a/pkg/rp/util/environment.go +++ b/pkg/rp/util/environment.go @@ -21,19 +21,19 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" aztoken "github.com/radius-project/radius/pkg/azure/tokencredentials" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" resources "github.com/radius-project/radius/pkg/ucp/resources" ) // FetchEnvironment fetches an environment resource using the provided environmentID and ClientOptions, // and returns the EnvironmentResource or an error. -func FetchEnvironment(ctx context.Context, environmentID string, ucpOptions *arm.ClientOptions) (*v20220315privatepreview.EnvironmentResource, error) { +func FetchEnvironment(ctx context.Context, environmentID string, ucpOptions *arm.ClientOptions) (*v20231001preview.EnvironmentResource, error) { envID, err := resources.ParseResource(environmentID) if err != nil { return nil, err } - client, err := v20220315privatepreview.NewEnvironmentsClient(envID.RootScope(), &aztoken.AnonymousCredential{}, ucpOptions) + client, err := v20231001preview.NewEnvironmentsClient(envID.RootScope(), &aztoken.AnonymousCredential{}, ucpOptions) if err != nil { return nil, err } diff --git a/pkg/sdk/pipeline.go b/pkg/sdk/pipeline.go index cbe67c494f2..b52e1ae60cc 100644 --- a/pkg/sdk/pipeline.go +++ b/pkg/sdk/pipeline.go @@ -28,7 +28,7 @@ import ( const ( // module is used to build a runtime.Pipeline. This is informational text about the client that // is added as part of the User-Agent header. - module = "v20220315privatepreview" + module = "v20231001preview" // version is used to build a runtime.Pipeline. This is informational text about the client that // is added as part of the User-Agent header. diff --git a/pkg/ucp/api/README.md b/pkg/ucp/api/README.md index a862f353ad1..87d48bea3b7 100644 --- a/pkg/ucp/api/README.md +++ b/pkg/ucp/api/README.md @@ -15,7 +15,7 @@ npm install -g autorest 1. Add api version tags and openapi file below in this README.md 2. Run autorest. ```bash -autorest README.md --tag=ucp-2022-09-01-privatepreview +autorest README.md --tag=ucp-2023-10-01-preview ``` 3. Create or modify the corresponding datamodels in [datamodel](../datamodel/) 4. Add the converter between versioned model and datamodel in [converter](../datamodel/converter/) @@ -28,13 +28,13 @@ The following are the settings for this using this API with AutoRest. ### Input OpenAPI specificiations -#### Tag: ucp-2022-09-01-privatepreview +#### Tag: ucp-2023-10-01-preview -These settings apply only when `--tag=ucp-2022-09-01-privatepreview` is specified on the command line. +These settings apply only when `--tag=ucp-2023-10-01-preview` is specified on the command line. -```yaml $(tag) == 'ucp-2022-09-01-privatepreview' +```yaml $(tag) == 'ucp-2023-10-01-preview' input-file: - - ../../../swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/openapi.json + - ../../../swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/openapi.json modelerfour: treat-type-object-as-anything: false ``` @@ -54,10 +54,10 @@ azure-arm: true ### Output -#### Tag: 2022-09-01-privatepreview +#### Tag: 2023-10-01-preview -These settings apply only when `--tag=ucp-2022-09-01-privatepreview` is specified on the command line. +These settings apply only when `--tag=ucp-2023-10-01-preview` is specified on the command line. -```yaml $(tag) == 'ucp-2022-09-01-privatepreview' -output-folder: ./v20220901privatepreview +```yaml $(tag) == 'ucp-2023-10-01-preview' +output-folder: ./v20231001preview ``` diff --git a/pkg/ucp/api/v20220901privatepreview/version.go b/pkg/ucp/api/v20220901privatepreview/version.go deleted file mode 100644 index d9c6fa9c6d2..00000000000 --- a/pkg/ucp/api/v20220901privatepreview/version.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2023 The Radius Authors. - -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 agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v20220901privatepreview - -// Version represents the api version in this package. -const Version = "2022-09-01-privatepreview" diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_time_rfc3339.go b/pkg/ucp/api/v20220901privatepreview/zz_generated_time_rfc3339.go deleted file mode 100644 index 10046752d2b..00000000000 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_time_rfc3339.go +++ /dev/null @@ -1,90 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Licensed under the Apache License, Version 2.0 . See LICENSE in the repository root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package v20220901privatepreview - - - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "regexp" - "strings" - "time" -) - - - -const ( - utcLayoutJSON = `"2006-01-02T15:04:05.999999999"` - utcLayout = "2006-01-02T15:04:05.999999999" - rfc3339JSON = `"` + time.RFC3339Nano + `"` -) - -// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. -var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) - -type timeRFC3339 time.Time - -func (t timeRFC3339) MarshalJSON() (json []byte, err error) { - tt := time.Time(t) - return tt.MarshalJSON() -} - -func (t timeRFC3339) MarshalText() (text []byte, err error) { - tt := time.Time(t) - return tt.MarshalText() -} - -func (t *timeRFC3339) UnmarshalJSON(data []byte) error { - layout := utcLayoutJSON - if tzOffsetRegex.Match(data) { - layout = rfc3339JSON - } - return t.Parse(layout, string(data)) -} - -func (t *timeRFC3339) UnmarshalText(data []byte) (err error) { - layout := utcLayout - if tzOffsetRegex.Match(data) { - layout = time.RFC3339Nano - } - return t.Parse(layout, string(data)) -} - -func (t *timeRFC3339) Parse(layout, value string) error { - p, err := time.Parse(layout, strings.ToUpper(value)) - *t = timeRFC3339(p) - return err -} - - -func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*timeRFC3339)(t) -} - -func unpopulateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || strings.EqualFold(string(data), "null") { - return nil - } - var aux timeRFC3339 - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/pkg/ucp/api/v20220901privatepreview/aws_credential_conversion.go b/pkg/ucp/api/v20231001preview/aws_credential_conversion.go similarity index 99% rename from pkg/ucp/api/v20220901privatepreview/aws_credential_conversion.go rename to pkg/ucp/api/v20231001preview/aws_credential_conversion.go index 6f1fdfeeeb9..167e0b31292 100644 --- a/pkg/ucp/api/v20220901privatepreview/aws_credential_conversion.go +++ b/pkg/ucp/api/v20231001preview/aws_credential_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220901privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/ucp/api/v20220901privatepreview/aws_credential_conversion_test.go b/pkg/ucp/api/v20231001preview/aws_credential_conversion_test.go similarity index 99% rename from pkg/ucp/api/v20220901privatepreview/aws_credential_conversion_test.go rename to pkg/ucp/api/v20231001preview/aws_credential_conversion_test.go index d8a0ab8dfdd..0f8a4cd65bd 100644 --- a/pkg/ucp/api/v20220901privatepreview/aws_credential_conversion_test.go +++ b/pkg/ucp/api/v20231001preview/aws_credential_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220901privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/ucp/api/v20220901privatepreview/azure_credential_conversion.go b/pkg/ucp/api/v20231001preview/azure_credential_conversion.go similarity index 99% rename from pkg/ucp/api/v20220901privatepreview/azure_credential_conversion.go rename to pkg/ucp/api/v20231001preview/azure_credential_conversion.go index 78f7b09d2bb..71af6a3c7f9 100644 --- a/pkg/ucp/api/v20220901privatepreview/azure_credential_conversion.go +++ b/pkg/ucp/api/v20231001preview/azure_credential_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220901privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/ucp/api/v20220901privatepreview/azure_credential_conversion_test.go b/pkg/ucp/api/v20231001preview/azure_credential_conversion_test.go similarity index 99% rename from pkg/ucp/api/v20220901privatepreview/azure_credential_conversion_test.go rename to pkg/ucp/api/v20231001preview/azure_credential_conversion_test.go index f5e32bc9fe2..c598f3f6af2 100644 --- a/pkg/ucp/api/v20220901privatepreview/azure_credential_conversion_test.go +++ b/pkg/ucp/api/v20231001preview/azure_credential_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220901privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/ucp/api/v20220901privatepreview/genericresource_conversion.go b/pkg/ucp/api/v20231001preview/genericresource_conversion.go similarity index 97% rename from pkg/ucp/api/v20220901privatepreview/genericresource_conversion.go rename to pkg/ucp/api/v20231001preview/genericresource_conversion.go index 089cbaade75..fb8c7f97b91 100644 --- a/pkg/ucp/api/v20220901privatepreview/genericresource_conversion.go +++ b/pkg/ucp/api/v20231001preview/genericresource_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220901privatepreview +package v20231001preview import ( "errors" diff --git a/pkg/ucp/api/v20220901privatepreview/genericresource_conversion_test.go b/pkg/ucp/api/v20231001preview/genericresource_conversion_test.go similarity index 98% rename from pkg/ucp/api/v20220901privatepreview/genericresource_conversion_test.go rename to pkg/ucp/api/v20231001preview/genericresource_conversion_test.go index e1a93743ffa..15a4742d6a6 100644 --- a/pkg/ucp/api/v20220901privatepreview/genericresource_conversion_test.go +++ b/pkg/ucp/api/v20231001preview/genericresource_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220901privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/ucp/api/v20220901privatepreview/plane_conversion.go b/pkg/ucp/api/v20231001preview/plane_conversion.go similarity index 98% rename from pkg/ucp/api/v20220901privatepreview/plane_conversion.go rename to pkg/ucp/api/v20231001preview/plane_conversion.go index 443f0743a08..40035fdf4f8 100644 --- a/pkg/ucp/api/v20220901privatepreview/plane_conversion.go +++ b/pkg/ucp/api/v20231001preview/plane_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220901privatepreview +package v20231001preview import ( "fmt" diff --git a/pkg/ucp/api/v20220901privatepreview/plane_conversion_test.go b/pkg/ucp/api/v20231001preview/plane_conversion_test.go similarity index 99% rename from pkg/ucp/api/v20220901privatepreview/plane_conversion_test.go rename to pkg/ucp/api/v20231001preview/plane_conversion_test.go index d2c7ba8037c..0cde5471238 100644 --- a/pkg/ucp/api/v20220901privatepreview/plane_conversion_test.go +++ b/pkg/ucp/api/v20231001preview/plane_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220901privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/ucp/api/v20220901privatepreview/resourcegroup_conversion.go b/pkg/ucp/api/v20231001preview/resourcegroup_conversion.go similarity index 98% rename from pkg/ucp/api/v20220901privatepreview/resourcegroup_conversion.go rename to pkg/ucp/api/v20231001preview/resourcegroup_conversion.go index c240115bd17..43430846a35 100644 --- a/pkg/ucp/api/v20220901privatepreview/resourcegroup_conversion.go +++ b/pkg/ucp/api/v20231001preview/resourcegroup_conversion.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220901privatepreview +package v20231001preview import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" diff --git a/pkg/ucp/api/v20220901privatepreview/resourcegroup_conversion_test.go b/pkg/ucp/api/v20231001preview/resourcegroup_conversion_test.go similarity index 98% rename from pkg/ucp/api/v20220901privatepreview/resourcegroup_conversion_test.go rename to pkg/ucp/api/v20231001preview/resourcegroup_conversion_test.go index 1ff898a1cee..37f3f057b07 100644 --- a/pkg/ucp/api/v20220901privatepreview/resourcegroup_conversion_test.go +++ b/pkg/ucp/api/v20231001preview/resourcegroup_conversion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v20220901privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-aws.json b/pkg/ucp/api/v20231001preview/testdata/credentialresource-aws.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-aws.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresource-aws.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-azure.json b/pkg/ucp/api/v20231001preview/testdata/credentialresource-azure.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-azure.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresource-azure.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-empty-properties.json b/pkg/ucp/api/v20231001preview/testdata/credentialresource-empty-properties.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-empty-properties.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresource-empty-properties.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-empty-storage-aws.json b/pkg/ucp/api/v20231001preview/testdata/credentialresource-empty-storage-aws.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-empty-storage-aws.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresource-empty-storage-aws.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-empty-storage-azure.json b/pkg/ucp/api/v20231001preview/testdata/credentialresource-empty-storage-azure.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-empty-storage-azure.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresource-empty-storage-azure.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-empty-storage-kind-aws.json b/pkg/ucp/api/v20231001preview/testdata/credentialresource-empty-storage-kind-aws.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-empty-storage-kind-aws.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresource-empty-storage-kind-aws.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-empty-storage-kind-azure.json b/pkg/ucp/api/v20231001preview/testdata/credentialresource-empty-storage-kind-azure.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-empty-storage-kind-azure.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresource-empty-storage-kind-azure.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-invalid-storagekind-aws.json b/pkg/ucp/api/v20231001preview/testdata/credentialresource-invalid-storagekind-aws.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-invalid-storagekind-aws.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresource-invalid-storagekind-aws.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-invalid-storagekind-azure.json b/pkg/ucp/api/v20231001preview/testdata/credentialresource-invalid-storagekind-azure.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-invalid-storagekind-azure.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresource-invalid-storagekind-azure.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-other.json b/pkg/ucp/api/v20231001preview/testdata/credentialresource-other.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresource-other.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresource-other.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresourcedatamodel-aws.json b/pkg/ucp/api/v20231001preview/testdata/credentialresourcedatamodel-aws.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresourcedatamodel-aws.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresourcedatamodel-aws.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresourcedatamodel-azure.json b/pkg/ucp/api/v20231001preview/testdata/credentialresourcedatamodel-azure.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresourcedatamodel-azure.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresourcedatamodel-azure.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/credentialresourcedatamodel-default.json b/pkg/ucp/api/v20231001preview/testdata/credentialresourcedatamodel-default.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/credentialresourcedatamodel-default.json rename to pkg/ucp/api/v20231001preview/testdata/credentialresourcedatamodel-default.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/genericresource_datamodel.json b/pkg/ucp/api/v20231001preview/testdata/genericresource_datamodel.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/genericresource_datamodel.json rename to pkg/ucp/api/v20231001preview/testdata/genericresource_datamodel.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/planeresource-empty-resourceproviders.json b/pkg/ucp/api/v20231001preview/testdata/planeresource-empty-resourceproviders.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/planeresource-empty-resourceproviders.json rename to pkg/ucp/api/v20231001preview/testdata/planeresource-empty-resourceproviders.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/planeresource-invalid-missing-kind.json b/pkg/ucp/api/v20231001preview/testdata/planeresource-invalid-missing-kind.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/planeresource-invalid-missing-kind.json rename to pkg/ucp/api/v20231001preview/testdata/planeresource-invalid-missing-kind.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/planeresource-invalid-missing-url.json b/pkg/ucp/api/v20231001preview/testdata/planeresource-invalid-missing-url.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/planeresource-invalid-missing-url.json rename to pkg/ucp/api/v20231001preview/testdata/planeresource-invalid-missing-url.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/planeresource-invalid-unsupported-kind.json b/pkg/ucp/api/v20231001preview/testdata/planeresource-invalid-unsupported-kind.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/planeresource-invalid-unsupported-kind.json rename to pkg/ucp/api/v20231001preview/testdata/planeresource-invalid-unsupported-kind.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/planeresource.json b/pkg/ucp/api/v20231001preview/testdata/planeresource.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/planeresource.json rename to pkg/ucp/api/v20231001preview/testdata/planeresource.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/planeresourcedatamodel.json b/pkg/ucp/api/v20231001preview/testdata/planeresourcedatamodel.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/planeresourcedatamodel.json rename to pkg/ucp/api/v20231001preview/testdata/planeresourcedatamodel.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/resourcegroup.json b/pkg/ucp/api/v20231001preview/testdata/resourcegroup.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/resourcegroup.json rename to pkg/ucp/api/v20231001preview/testdata/resourcegroup.json diff --git a/pkg/ucp/api/v20220901privatepreview/testdata/resourcegroupresourcedatamodel.json b/pkg/ucp/api/v20231001preview/testdata/resourcegroupresourcedatamodel.json similarity index 100% rename from pkg/ucp/api/v20220901privatepreview/testdata/resourcegroupresourcedatamodel.json rename to pkg/ucp/api/v20231001preview/testdata/resourcegroupresourcedatamodel.json diff --git a/pkg/ucp/api/v20231001preview/version.go b/pkg/ucp/api/v20231001preview/version.go new file mode 100644 index 00000000000..632c27dda69 --- /dev/null +++ b/pkg/ucp/api/v20231001preview/version.go @@ -0,0 +1,20 @@ +/* +Copyright 2023 The Radius Authors. + +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 agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v20231001preview + +// Version represents the api version in this package. +const Version = "2023-10-01-preview" diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_awscredentials_client.go b/pkg/ucp/api/v20231001preview/zz_generated_awscredentials_client.go similarity index 95% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_awscredentials_client.go rename to pkg/ucp/api/v20231001preview/zz_generated_awscredentials_client.go index 0f506fe5fcd..c6ec74d5ae0 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_awscredentials_client.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_awscredentials_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview import ( "context" @@ -42,7 +42,7 @@ func NewAwsCredentialsClient(credential azcore.TokenCredential, options *arm.Cli // CreateOrUpdate - Create or update an AWS credential // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeName - The name of AWS plane // - credentialName - The AWS credential name. // - resource - Resource create parameters. @@ -79,7 +79,7 @@ func (client *AwsCredentialsClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -100,7 +100,7 @@ func (client *AwsCredentialsClient) createOrUpdateHandleResponse(resp *http.Resp // Delete - Delete an AWS credential // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeName - The name of AWS plane // - credentialName - The AWS credential name. // - options - AwsCredentialsClientDeleteOptions contains the optional parameters for the AwsCredentialsClient.Delete method. @@ -134,7 +134,7 @@ func (client *AwsCredentialsClient) deleteCreateRequest(ctx context.Context, pla return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -143,7 +143,7 @@ func (client *AwsCredentialsClient) deleteCreateRequest(ctx context.Context, pla // Get - Get an AWS credential // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeName - The name of AWS plane // - credentialName - The AWS credential name. // - options - AwsCredentialsClientGetOptions contains the optional parameters for the AwsCredentialsClient.Get method. @@ -178,7 +178,7 @@ func (client *AwsCredentialsClient) getCreateRequest(ctx context.Context, planeN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -195,7 +195,7 @@ func (client *AwsCredentialsClient) getHandleResponse(resp *http.Response) (AwsC // NewListPager - List AWS credentials // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeName - The name of AWS plane // - options - AwsCredentialsClientListOptions contains the optional parameters for the AwsCredentialsClient.NewListPager method. func (client *AwsCredentialsClient) NewListPager(planeName string, options *AwsCredentialsClientListOptions) (*runtime.Pager[AwsCredentialsClientListResponse]) { @@ -235,7 +235,7 @@ func (client *AwsCredentialsClient) listCreateRequest(ctx context.Context, plane return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,7 +253,7 @@ func (client *AwsCredentialsClient) listHandleResponse(resp *http.Response) (Aws // Update - Update an AWS credential // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeName - The name of AWS plane // - credentialName - The AWS credential name. // - properties - The resource properties to be updated. @@ -289,7 +289,7 @@ func (client *AwsCredentialsClient) updateCreateRequest(ctx context.Context, pla return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_azurecredentials_client.go b/pkg/ucp/api/v20231001preview/zz_generated_azurecredentials_client.go similarity index 95% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_azurecredentials_client.go rename to pkg/ucp/api/v20231001preview/zz_generated_azurecredentials_client.go index 5a281825cc0..b9f110905d0 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_azurecredentials_client.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_azurecredentials_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview import ( "context" @@ -42,7 +42,7 @@ func NewAzureCredentialsClient(credential azcore.TokenCredential, options *arm.C // CreateOrUpdate - Create or update an Azure credential // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeName - The name of the plane // - credentialName - The Azure credential name. // - resource - Resource create parameters. @@ -79,7 +79,7 @@ func (client *AzureCredentialsClient) createOrUpdateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -100,7 +100,7 @@ func (client *AzureCredentialsClient) createOrUpdateHandleResponse(resp *http.Re // Delete - Delete an Azure credential // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeName - The name of the plane // - credentialName - The Azure credential name. // - options - AzureCredentialsClientDeleteOptions contains the optional parameters for the AzureCredentialsClient.Delete method. @@ -134,7 +134,7 @@ func (client *AzureCredentialsClient) deleteCreateRequest(ctx context.Context, p return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -143,7 +143,7 @@ func (client *AzureCredentialsClient) deleteCreateRequest(ctx context.Context, p // Get - Get an Azure credential // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeName - The name of the plane // - credentialName - The Azure credential name. // - options - AzureCredentialsClientGetOptions contains the optional parameters for the AzureCredentialsClient.Get method. @@ -178,7 +178,7 @@ func (client *AzureCredentialsClient) getCreateRequest(ctx context.Context, plan return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -195,7 +195,7 @@ func (client *AzureCredentialsClient) getHandleResponse(resp *http.Response) (Az // NewListPager - List Azure credentials // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeName - The name of the plane // - options - AzureCredentialsClientListOptions contains the optional parameters for the AzureCredentialsClient.NewListPager // method. @@ -236,7 +236,7 @@ func (client *AzureCredentialsClient) listCreateRequest(ctx context.Context, pla return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -254,7 +254,7 @@ func (client *AzureCredentialsClient) listHandleResponse(resp *http.Response) (A // Update - Update an Azure credential // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeName - The name of the plane // - credentialName - The Azure credential name. // - properties - The resource properties to be updated. @@ -290,7 +290,7 @@ func (client *AzureCredentialsClient) updateCreateRequest(ctx context.Context, p return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_client_factory.go b/pkg/ucp/api/v20231001preview/zz_generated_client_factory.go similarity index 98% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_client_factory.go rename to pkg/ucp/api/v20231001preview/zz_generated_client_factory.go index c88e54ed340..91316c78436 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_client_factory.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_client_factory.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_constants.go b/pkg/ucp/api/v20231001preview/zz_generated_constants.go similarity index 95% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_constants.go rename to pkg/ucp/api/v20231001preview/zz_generated_constants.go index 0ee33593c4c..eb15cd5c1ce 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_constants.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_constants.go @@ -5,10 +5,10 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview const ( - moduleName = "v20220901privatepreview" + moduleName = "v20231001preview" moduleVersion = "v0.0.1" ) @@ -135,8 +135,8 @@ func PossibleProvisioningStateValues() []ProvisioningState { type Versions string const ( - // VersionsV20220901Privatepreview - 2022-09-01-privatepreview - VersionsV20220901Privatepreview Versions = "2022-09-01-privatepreview" + // VersionsV20220901Privatepreview - 2023-10-01-preview + VersionsV20220901Privatepreview Versions = "2023-10-01-preview" ) // PossibleVersionsValues returns the possible values for the Versions const type. diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_interfaces.go b/pkg/ucp/api/v20231001preview/zz_generated_interfaces.go similarity index 98% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_interfaces.go rename to pkg/ucp/api/v20231001preview/zz_generated_interfaces.go index 3bbf9848c0e..ab611a9e3a9 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_interfaces.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_interfaces.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview // AwsCredentialPropertiesClassification provides polymorphic access to related types. // Call the interface's GetAwsCredentialProperties() method to access the common type. diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_models.go b/pkg/ucp/api/v20231001preview/zz_generated_models.go similarity index 99% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_models.go rename to pkg/ucp/api/v20231001preview/zz_generated_models.go index 0a2ddfb4251..cbdf3a9dc5f 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_models.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_models.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview import "time" diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_models_serde.go b/pkg/ucp/api/v20231001preview/zz_generated_models_serde.go similarity index 99% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_models_serde.go rename to pkg/ucp/api/v20231001preview/zz_generated_models_serde.go index ac9308dbde8..6572756bcd9 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_models_serde.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_models_serde.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview import ( "encoding/json" diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_options.go b/pkg/ucp/api/v20231001preview/zz_generated_options.go similarity index 99% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_options.go rename to pkg/ucp/api/v20231001preview/zz_generated_options.go index 92d7c3ec05e..0ace33f3cc8 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_options.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_options.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview // AwsCredentialsClientCreateOrUpdateOptions contains the optional parameters for the AwsCredentialsClient.CreateOrUpdate // method. diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_planes_client.go b/pkg/ucp/api/v20231001preview/zz_generated_planes_client.go similarity index 94% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_planes_client.go rename to pkg/ucp/api/v20231001preview/zz_generated_planes_client.go index 24588b12a36..d1870e70558 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_planes_client.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_planes_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview import ( "context" @@ -42,7 +42,7 @@ func NewPlanesClient(credential azcore.TokenCredential, options *arm.ClientOptio // BeginCreateOrUpdate - Create or update a plane // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - planeName - The name of the plane // - resource - Resource create parameters. @@ -66,7 +66,7 @@ func (client *PlanesClient) BeginCreateOrUpdate(ctx context.Context, planeType s // CreateOrUpdate - Create or update a plane // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview func (client *PlanesClient) createOrUpdate(ctx context.Context, planeType string, planeName string, resource PlaneResource, options *PlanesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error req, err := client.createOrUpdateCreateRequest(ctx, planeType, planeName, resource, options) @@ -97,7 +97,7 @@ func (client *PlanesClient) createOrUpdateCreateRequest(ctx context.Context, pla return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -109,7 +109,7 @@ func (client *PlanesClient) createOrUpdateCreateRequest(ctx context.Context, pla // BeginDelete - Delete a plane // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - planeName - The name of the plane // - options - PlanesClientBeginDeleteOptions contains the optional parameters for the PlanesClient.BeginDelete method. @@ -131,7 +131,7 @@ func (client *PlanesClient) BeginDelete(ctx context.Context, planeType string, p // Delete - Delete a plane // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview func (client *PlanesClient) deleteOperation(ctx context.Context, planeType string, planeName string, options *PlanesClientBeginDeleteOptions) (*http.Response, error) { var err error req, err := client.deleteCreateRequest(ctx, planeType, planeName, options) @@ -162,7 +162,7 @@ func (client *PlanesClient) deleteCreateRequest(ctx context.Context, planeType s return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -171,7 +171,7 @@ func (client *PlanesClient) deleteCreateRequest(ctx context.Context, planeType s // Get - Get a plane by name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - planeName - The name of the plane // - options - PlanesClientGetOptions contains the optional parameters for the PlanesClient.Get method. @@ -206,7 +206,7 @@ func (client *PlanesClient) getCreateRequest(ctx context.Context, planeType stri return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -223,7 +223,7 @@ func (client *PlanesClient) getHandleResponse(resp *http.Response) (PlanesClient // NewListByTypePager - List planes by type // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - options - PlanesClientListByTypeOptions contains the optional parameters for the PlanesClient.NewListByTypePager method. func (client *PlanesClient) NewListByTypePager(planeType string, options *PlanesClientListByTypeOptions) (*runtime.Pager[PlanesClientListByTypeResponse]) { @@ -266,7 +266,7 @@ func (client *PlanesClient) listByTypeCreateRequest(ctx context.Context, planeTy return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -283,7 +283,7 @@ func (client *PlanesClient) listByTypeHandleResponse(resp *http.Response) (Plane // NewListPlanesPager - List all planes // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - options - PlanesClientListPlanesOptions contains the optional parameters for the PlanesClient.NewListPlanesPager method. func (client *PlanesClient) NewListPlanesPager(options *PlanesClientListPlanesOptions) (*runtime.Pager[PlanesClientListPlanesResponse]) { return runtime.NewPager(runtime.PagingHandler[PlanesClientListPlanesResponse]{ @@ -321,7 +321,7 @@ func (client *PlanesClient) listPlanesCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -339,7 +339,7 @@ func (client *PlanesClient) listPlanesHandleResponse(resp *http.Response) (Plane // BeginUpdate - Update a plane // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - planeName - The name of the plane // - properties - The resource properties to be updated. @@ -362,7 +362,7 @@ func (client *PlanesClient) BeginUpdate(ctx context.Context, planeType string, p // Update - Update a plane // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview func (client *PlanesClient) update(ctx context.Context, planeType string, planeName string, properties PlaneResourceTagsUpdate, options *PlanesClientBeginUpdateOptions) (*http.Response, error) { var err error req, err := client.updateCreateRequest(ctx, planeType, planeName, properties, options) @@ -393,7 +393,7 @@ func (client *PlanesClient) updateCreateRequest(ctx context.Context, planeType s return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_polymorphic_helpers.go b/pkg/ucp/api/v20231001preview/zz_generated_polymorphic_helpers.go similarity index 98% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_polymorphic_helpers.go rename to pkg/ucp/api/v20231001preview/zz_generated_polymorphic_helpers.go index 60dcc7c4fc6..9cc824a3d45 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_polymorphic_helpers.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_polymorphic_helpers.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview import "encoding/json" diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_resourcegroups_client.go b/pkg/ucp/api/v20231001preview/zz_generated_resourcegroups_client.go similarity index 96% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_resourcegroups_client.go rename to pkg/ucp/api/v20231001preview/zz_generated_resourcegroups_client.go index f4bb8885b49..4ec590e75c6 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_resourcegroups_client.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_resourcegroups_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview import ( "context" @@ -42,7 +42,7 @@ func NewResourceGroupsClient(credential azcore.TokenCredential, options *arm.Cli // CreateOrUpdate - Create or update a resource group // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - planeName - The name of the plane // - resourceGroupName - The name of resource group @@ -84,7 +84,7 @@ func (client *ResourceGroupsClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resource); err != nil { @@ -105,7 +105,7 @@ func (client *ResourceGroupsClient) createOrUpdateHandleResponse(resp *http.Resp // Delete - Delete a resource group // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - planeName - The name of the plane // - resourceGroupName - The name of resource group @@ -144,7 +144,7 @@ func (client *ResourceGroupsClient) deleteCreateRequest(ctx context.Context, pla return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -153,7 +153,7 @@ func (client *ResourceGroupsClient) deleteCreateRequest(ctx context.Context, pla // Get - Get a resource group // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - planeName - The name of the plane // - resourceGroupName - The name of resource group @@ -193,7 +193,7 @@ func (client *ResourceGroupsClient) getCreateRequest(ctx context.Context, planeT return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -210,7 +210,7 @@ func (client *ResourceGroupsClient) getHandleResponse(resp *http.Response) (Reso // NewListPager - List resource groups // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - planeName - The name of the plane // - options - ResourceGroupsClientListOptions contains the optional parameters for the ResourceGroupsClient.NewListPager method. @@ -255,7 +255,7 @@ func (client *ResourceGroupsClient) listCreateRequest(ctx context.Context, plane return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -273,7 +273,7 @@ func (client *ResourceGroupsClient) listHandleResponse(resp *http.Response) (Res // Update - Update a resource group // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - planeName - The name of the plane // - resourceGroupName - The name of resource group @@ -314,7 +314,7 @@ func (client *ResourceGroupsClient) updateCreateRequest(ctx context.Context, pla return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, properties); err != nil { diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_resources_client.go b/pkg/ucp/api/v20231001preview/zz_generated_resources_client.go similarity index 96% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_resources_client.go rename to pkg/ucp/api/v20231001preview/zz_generated_resources_client.go index 2b54a983c2f..785110790fe 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_resources_client.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_resources_client.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview import ( "context" @@ -41,7 +41,7 @@ func NewResourcesClient(credential azcore.TokenCredential, options *arm.ClientOp // NewListPager - List resources in a resource group // -// Generated from API version 2022-09-01-privatepreview +// Generated from API version 2023-10-01-preview // - planeType - The plane type. // - planeName - The name of the plane // - resourceGroupName - The name of resource group @@ -91,7 +91,7 @@ func (client *ResourcesClient) listCreateRequest(ctx context.Context, planeType return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-09-01-privatepreview") + reqQP.Set("api-version", "2023-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/pkg/ucp/api/v20220901privatepreview/zz_generated_response_types.go b/pkg/ucp/api/v20231001preview/zz_generated_response_types.go similarity index 99% rename from pkg/ucp/api/v20220901privatepreview/zz_generated_response_types.go rename to pkg/ucp/api/v20231001preview/zz_generated_response_types.go index f3990338b06..36f5d1b2bb6 100644 --- a/pkg/ucp/api/v20220901privatepreview/zz_generated_response_types.go +++ b/pkg/ucp/api/v20231001preview/zz_generated_response_types.go @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -package v20220901privatepreview +package v20231001preview // AwsCredentialsClientCreateOrUpdateResponse contains the response from method AwsCredentialsClient.CreateOrUpdate. type AwsCredentialsClientCreateOrUpdateResponse struct { diff --git a/pkg/ucp/api/v20231001preview/zz_generated_time_rfc3339.go b/pkg/ucp/api/v20231001preview/zz_generated_time_rfc3339.go new file mode 100644 index 00000000000..948a6660cdc --- /dev/null +++ b/pkg/ucp/api/v20231001preview/zz_generated_time_rfc3339.go @@ -0,0 +1,90 @@ +//go:build go1.18 +// +build go1.18 + +// Licensed under the Apache License, Version 2.0 . See LICENSE in the repository root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package v20231001preview + + + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + + + +const ( + utcLayoutJSON = `"2006-01-02T15:04:05.999999999"` + utcLayout = "2006-01-02T15:04:05.999999999" + rfc3339JSON = `"` + time.RFC3339Nano + `"` +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) + +type timeRFC3339 time.Time + +func (t timeRFC3339) MarshalJSON() (json []byte, err error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t timeRFC3339) MarshalText() (text []byte, err error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *timeRFC3339) UnmarshalJSON(data []byte) error { + layout := utcLayoutJSON + if tzOffsetRegex.Match(data) { + layout = rfc3339JSON + } + return t.Parse(layout, string(data)) +} + +func (t *timeRFC3339) UnmarshalText(data []byte) (err error) { + layout := utcLayout + if tzOffsetRegex.Match(data) { + layout = time.RFC3339Nano + } + return t.Parse(layout, string(data)) +} + +func (t *timeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = timeRFC3339(p) + return err +} + + +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*timeRFC3339)(t) +} + +func unpopulateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || strings.EqualFold(string(data), "null") { + return nil + } + var aux timeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/pkg/ucp/aws/servicecontext/awsrequestcontext_test.go b/pkg/ucp/aws/servicecontext/awsrequestcontext_test.go index 04c2e723001..ad5122a3da9 100644 --- a/pkg/ucp/aws/servicecontext/awsrequestcontext_test.go +++ b/pkg/ucp/aws/servicecontext/awsrequestcontext_test.go @@ -38,7 +38,7 @@ func TestFromContext(t *testing.T) { sCtx := AWSRequestContextFromContext(newCtx) require.NotNil(t, sCtx) - require.Equal(t, "2022-09-01-privatepreview", sCtx.APIVersion) + require.Equal(t, "2023-10-01-preview", sCtx.APIVersion) require.Equal(t, "AWS::Kinesis::Stream", sCtx.ResourceTypeInAWSFormat()) } diff --git a/pkg/ucp/aws/servicecontext/testdata/armrpcheaders.json b/pkg/ucp/aws/servicecontext/testdata/armrpcheaders.json index 5c425ac2085..0c84f011926 100644 --- a/pkg/ucp/aws/servicecontext/testdata/armrpcheaders.json +++ b/pkg/ucp/aws/servicecontext/testdata/armrpcheaders.json @@ -4,7 +4,7 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "http://127.0.0.1:9000/apis/api.ucp.dev/v1alpha3/planes/aws/aws/accounts/817312594854/regions/us-west-2/providers/AWS.Kinesis/Stream/:put?api-version=2022-09-01-privatepreview", + "Referer": "http://127.0.0.1:9000/apis/api.ucp.dev/v1alpha3/planes/aws/aws/accounts/817312594854/regions/us-west-2/providers/AWS.Kinesis/Stream/:put?api-version=2023-10-01-preview", "Traceparent": "00-000011048df2134ca37c9a689c3a0000-0000000000000000-01", "User-Agent": "ARMClient/1.6.0.0", "Via": "1.1 Azure", @@ -14,7 +14,7 @@ "X-Fd-Edgeenvironment": "fake", "X-Fd-Eventid": "00005A12DDEC4F8B80B65BB768190000", "X-Fd-Impressionguid": "00005A12DDEC4F8B80B65BB768190000", - "X-Fd-Originalurl": "http://127.0.0.1:9000/apis/api.ucp.dev/v1alpha3/planes/aws/aws/accounts/817312594854/regions/us-west-2/providers/AWS.Kinesis/Stream/:put?api-version=2022-09-01-privatepreview", + "X-Fd-Originalurl": "http://127.0.0.1:9000/apis/api.ucp.dev/v1alpha3/planes/aws/aws/accounts/817312594854/regions/us-west-2/providers/AWS.Kinesis/Stream/:put?api-version=2023-10-01-preview", "X-Fd-Partner": "AzureResourceManager_Test", "X-Fd-Ref": "Ref A: xxxx Ref B: xxxx Ref C: 2022-03-22T18:54:50Z", "X-Fd-Revip": "country=United States,iso=us,state=Washington,city=Redmond,zip=00000,tz=-8,asn=0,lat=0,long=-1,countrycf=8,citycf=8", diff --git a/pkg/ucp/credentials/aws.go b/pkg/ucp/credentials/aws.go index fe7411eab06..399aae5589d 100644 --- a/pkg/ucp/credentials/aws.go +++ b/pkg/ucp/credentials/aws.go @@ -24,7 +24,7 @@ import ( "github.com/radius-project/radius/pkg/sdk" "github.com/radius-project/radius/pkg/to" - ucpapi "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucpapi "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/secret" "github.com/radius-project/radius/pkg/ucp/secret/provider" ) diff --git a/pkg/ucp/credentials/azure.go b/pkg/ucp/credentials/azure.go index cba582b5d72..10dc3b3d3ed 100644 --- a/pkg/ucp/credentials/azure.go +++ b/pkg/ucp/credentials/azure.go @@ -24,7 +24,7 @@ import ( "github.com/radius-project/radius/pkg/sdk" "github.com/radius-project/radius/pkg/to" - ucpapi "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucpapi "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/secret" "github.com/radius-project/radius/pkg/ucp/secret/provider" ) diff --git a/pkg/ucp/datamodel/converter/awscredential_converter.go b/pkg/ucp/datamodel/converter/awscredential_converter.go index ea5eec66cd8..a845feff04a 100644 --- a/pkg/ucp/datamodel/converter/awscredential_converter.go +++ b/pkg/ucp/datamodel/converter/awscredential_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" ) // AWSCredentialDataModelToVersioned converts version agnostic AWS credential datamodel to versioned model. func AWSCredentialDataModelToVersioned(model *datamodel.AWSCredential, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220901privatepreview.Version: - versioned := &v20220901privatepreview.AwsCredentialResource{} + case v20231001preview.Version: + versioned := &v20231001preview.AwsCredentialResource{} if err := versioned.ConvertFrom(model); err != nil { return nil, err } @@ -42,8 +42,8 @@ func AWSCredentialDataModelToVersioned(model *datamodel.AWSCredential, version s // AWSCredentialDataModelFromVersioned converts AWS versioned credential model to datamodel. func AWSCredentialDataModelFromVersioned(content []byte, version string) (*datamodel.AWSCredential, error) { switch version { - case v20220901privatepreview.Version: - vm := &v20220901privatepreview.AwsCredentialResource{} + case v20231001preview.Version: + vm := &v20231001preview.AwsCredentialResource{} if err := json.Unmarshal(content, vm); err != nil { return nil, err } diff --git a/pkg/ucp/datamodel/converter/azurecredential_converter.go b/pkg/ucp/datamodel/converter/azurecredential_converter.go index 30247171c3f..7d16f68682a 100644 --- a/pkg/ucp/datamodel/converter/azurecredential_converter.go +++ b/pkg/ucp/datamodel/converter/azurecredential_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" ) // AzureCredentialDataModelToVersioned converts version agnostic Azure credential datamodel to versioned model. func AzureCredentialDataModelToVersioned(model *datamodel.AzureCredential, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220901privatepreview.Version: - versioned := &v20220901privatepreview.AzureCredentialResource{} + case v20231001preview.Version: + versioned := &v20231001preview.AzureCredentialResource{} if err := versioned.ConvertFrom(model); err != nil { return nil, err } @@ -42,8 +42,8 @@ func AzureCredentialDataModelToVersioned(model *datamodel.AzureCredential, versi // AzureCredentialDataModelFromVersioned converts versioned Azure credential model to datamodel. func AzureCredentialDataModelFromVersioned(content []byte, version string) (*datamodel.AzureCredential, error) { switch version { - case v20220901privatepreview.Version: - vm := &v20220901privatepreview.AzureCredentialResource{} + case v20231001preview.Version: + vm := &v20231001preview.AzureCredentialResource{} if err := json.Unmarshal(content, vm); err != nil { return nil, err } diff --git a/pkg/ucp/datamodel/converter/genericresource_converter.go b/pkg/ucp/datamodel/converter/genericresource_converter.go index 7d2cb4bbc1a..5548958eff5 100644 --- a/pkg/ucp/datamodel/converter/genericresource_converter.go +++ b/pkg/ucp/datamodel/converter/genericresource_converter.go @@ -20,7 +20,7 @@ import ( "errors" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220901privatepreview "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" ) @@ -28,8 +28,8 @@ import ( // It returns an error if the conversion fails. func GenericResourceDataModelToVersioned(model *datamodel.GenericResource, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220901privatepreview.Version: - versioned := &v20220901privatepreview.GenericResource{} + case v20231001preview.Version: + versioned := &v20231001preview.GenericResource{} if err := versioned.ConvertFrom(model); err != nil { return nil, err } diff --git a/pkg/ucp/datamodel/converter/plane_converter.go b/pkg/ucp/datamodel/converter/plane_converter.go index 7af1a042cc1..9ca6b238b7f 100644 --- a/pkg/ucp/datamodel/converter/plane_converter.go +++ b/pkg/ucp/datamodel/converter/plane_converter.go @@ -20,15 +20,15 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" ) // PlaneDataModelToVersioned converts version agnostic plane datamodel to versioned model. func PlaneDataModelToVersioned(model *datamodel.Plane, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220901privatepreview.Version: - versioned := &v20220901privatepreview.PlaneResource{} + case v20231001preview.Version: + versioned := &v20231001preview.PlaneResource{} if err := versioned.ConvertFrom(model); err != nil { return nil, err } @@ -42,8 +42,8 @@ func PlaneDataModelToVersioned(model *datamodel.Plane, version string) (v1.Versi // PlaneDataModelFromVersioned converts versioned plane model to datamodel. func PlaneDataModelFromVersioned(content []byte, version string) (*datamodel.Plane, error) { switch version { - case v20220901privatepreview.Version: - vm := &v20220901privatepreview.PlaneResource{} + case v20231001preview.Version: + vm := &v20231001preview.PlaneResource{} if err := json.Unmarshal(content, vm); err != nil { return nil, err } diff --git a/pkg/ucp/datamodel/converter/resourcegroup_converter.go b/pkg/ucp/datamodel/converter/resourcegroup_converter.go index 66a47825433..51d01c28d40 100644 --- a/pkg/ucp/datamodel/converter/resourcegroup_converter.go +++ b/pkg/ucp/datamodel/converter/resourcegroup_converter.go @@ -20,7 +20,7 @@ import ( "encoding/json" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" - v20220901privatepreview "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" ) @@ -28,8 +28,8 @@ import ( // It returns an error if the conversion fails. func ResourceGroupDataModelToVersioned(model *datamodel.ResourceGroup, version string) (v1.VersionedModelInterface, error) { switch version { - case v20220901privatepreview.Version: - versioned := &v20220901privatepreview.ResourceGroupResource{} + case v20231001preview.Version: + versioned := &v20231001preview.ResourceGroupResource{} if err := versioned.ConvertFrom(model); err != nil { return nil, err } @@ -44,8 +44,8 @@ func ResourceGroupDataModelToVersioned(model *datamodel.ResourceGroup, version s // It returns an error if the conversion fails. func ResourceGroupDataModelFromVersioned(content []byte, version string) (*datamodel.ResourceGroup, error) { switch version { - case v20220901privatepreview.Version: - vm := &v20220901privatepreview.ResourceGroupResource{} + case v20231001preview.Version: + vm := &v20231001preview.ResourceGroupResource{} if err := json.Unmarshal(content, vm); err != nil { return nil, err } diff --git a/pkg/ucp/frontend/aws/routes.go b/pkg/ucp/frontend/aws/routes.go index 2c780c07b1f..60026fd8c36 100644 --- a/pkg/ucp/frontend/aws/routes.go +++ b/pkg/ucp/frontend/aws/routes.go @@ -29,7 +29,7 @@ import ( "github.com/radius-project/radius/pkg/armrpc/frontend/defaultoperation" "github.com/radius-project/radius/pkg/armrpc/frontend/server" aztoken "github.com/radius-project/radius/pkg/azure/tokencredentials" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" ucp_aws "github.com/radius-project/radius/pkg/ucp/aws" sdk_cred "github.com/radius-project/radius/pkg/ucp/credentials" "github.com/radius-project/radius/pkg/ucp/datamodel" @@ -191,7 +191,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { handlerOptions = append(handlerOptions, []server.HandlerOptions{ { ParentRouter: credentialCollectionRouter, - ResourceType: v20220901privatepreview.AWSCredentialType, + ResourceType: v20231001preview.AWSCredentialType, Method: v1.OperationList, ControllerFactory: func(opt controller.Options) (controller.Controller, error) { return defaultoperation.NewListResources(opt, @@ -204,7 +204,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { }, { ParentRouter: credentialResourceRouter, - ResourceType: v20220901privatepreview.AWSCredentialType, + ResourceType: v20231001preview.AWSCredentialType, Method: v1.OperationGet, ControllerFactory: func(opt controller.Options) (controller.Controller, error) { return defaultoperation.NewGetResource(opt, @@ -218,7 +218,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { { ParentRouter: credentialResourceRouter, Method: v1.OperationPut, - ResourceType: v20220901privatepreview.AWSCredentialType, + ResourceType: v20231001preview.AWSCredentialType, ControllerFactory: func(o controller.Options) (controller.Controller, error) { return aws_credential_ctrl.NewCreateOrUpdateAWSCredential(o, secretClient) }, @@ -226,7 +226,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { { ParentRouter: credentialResourceRouter, Method: v1.OperationDelete, - ResourceType: v20220901privatepreview.AWSCredentialType, + ResourceType: v20231001preview.AWSCredentialType, ControllerFactory: func(o controller.Options) (controller.Controller, error) { return aws_credential_ctrl.NewDeleteAWSCredential(o, secretClient) }, diff --git a/pkg/ucp/frontend/aws/routes_test.go b/pkg/ucp/frontend/aws/routes_test.go index 7642d2cc3d1..1b1a5e3446e 100644 --- a/pkg/ucp/frontend/aws/routes_test.go +++ b/pkg/ucp/frontend/aws/routes_test.go @@ -26,7 +26,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" "github.com/radius-project/radius/pkg/armrpc/rpctest" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/dataprovider" "github.com/radius-project/radius/pkg/ucp/frontend/modules" "github.com/radius-project/radius/pkg/ucp/hostoptions" @@ -39,19 +39,19 @@ const pathBase = "/some-path-base" func Test_Routes(t *testing.T) { tests := []rpctest.HandlerTestSpec{ { - OperationType: v1.OperationType{Type: v20220901privatepreview.AWSCredentialType, Method: v1.OperationList}, + OperationType: v1.OperationType{Type: v20231001preview.AWSCredentialType, Method: v1.OperationList}, Method: http.MethodGet, Path: "/planes/aws/aws/providers/System.AWS/credentials", }, { - OperationType: v1.OperationType{Type: v20220901privatepreview.AWSCredentialType, Method: v1.OperationGet}, + OperationType: v1.OperationType{Type: v20231001preview.AWSCredentialType, Method: v1.OperationGet}, Method: http.MethodGet, Path: "/planes/aws/aws/providers/System.AWS/credentials/default", }, { - OperationType: v1.OperationType{Type: v20220901privatepreview.AWSCredentialType, Method: v1.OperationPut}, + OperationType: v1.OperationType{Type: v20231001preview.AWSCredentialType, Method: v1.OperationPut}, Method: http.MethodPut, Path: "/planes/aws/aws/providers/System.AWS/credentials/default", }, { - OperationType: v1.OperationType{Type: v20220901privatepreview.AWSCredentialType, Method: v1.OperationDelete}, + OperationType: v1.OperationType{Type: v20231001preview.AWSCredentialType, Method: v1.OperationDelete}, Method: http.MethodDelete, Path: "/planes/aws/aws/providers/System.AWS/credentials/default", }, { diff --git a/pkg/ucp/frontend/azure/routes.go b/pkg/ucp/frontend/azure/routes.go index 50fb08e7d15..8c96af535c9 100644 --- a/pkg/ucp/frontend/azure/routes.go +++ b/pkg/ucp/frontend/azure/routes.go @@ -24,7 +24,7 @@ import ( armrpc_controller "github.com/radius-project/radius/pkg/armrpc/frontend/controller" "github.com/radius-project/radius/pkg/armrpc/frontend/defaultoperation" "github.com/radius-project/radius/pkg/armrpc/frontend/server" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" "github.com/radius-project/radius/pkg/ucp/datamodel/converter" azure_credential_ctrl "github.com/radius-project/radius/pkg/ucp/frontend/controller/credentials/azure" @@ -61,7 +61,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { handlerOptions := []server.HandlerOptions{ { ParentRouter: credentialCollectionRouter, - ResourceType: v20220901privatepreview.AzureCredentialType, + ResourceType: v20231001preview.AzureCredentialType, Method: v1.OperationList, ControllerFactory: func(opt armrpc_controller.Options) (armrpc_controller.Controller, error) { return defaultoperation.NewListResources(opt, @@ -74,7 +74,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { }, { ParentRouter: credentialResourceRouter, - ResourceType: v20220901privatepreview.AzureCredentialType, + ResourceType: v20231001preview.AzureCredentialType, Method: v1.OperationGet, ControllerFactory: func(opt armrpc_controller.Options) (armrpc_controller.Controller, error) { return defaultoperation.NewGetResource(opt, @@ -88,7 +88,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { { ParentRouter: credentialResourceRouter, Method: v1.OperationPut, - ResourceType: v20220901privatepreview.AzureCredentialType, + ResourceType: v20231001preview.AzureCredentialType, ControllerFactory: func(opt armrpc_controller.Options) (armrpc_controller.Controller, error) { return azure_credential_ctrl.NewCreateOrUpdateAzureCredential(opt, secretClient) }, @@ -96,7 +96,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { { ParentRouter: credentialResourceRouter, Method: v1.OperationDelete, - ResourceType: v20220901privatepreview.AzureCredentialType, + ResourceType: v20231001preview.AzureCredentialType, ControllerFactory: func(opt armrpc_controller.Options) (armrpc_controller.Controller, error) { return azure_credential_ctrl.NewDeleteAzureCredential(opt, secretClient) }, diff --git a/pkg/ucp/frontend/azure/routes_test.go b/pkg/ucp/frontend/azure/routes_test.go index 6906152b671..ec82fd2c207 100644 --- a/pkg/ucp/frontend/azure/routes_test.go +++ b/pkg/ucp/frontend/azure/routes_test.go @@ -26,7 +26,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" "github.com/radius-project/radius/pkg/armrpc/rpctest" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/dataprovider" "github.com/radius-project/radius/pkg/ucp/frontend/modules" "github.com/radius-project/radius/pkg/ucp/hostoptions" @@ -39,19 +39,19 @@ const pathBase = "/some-path-base" func Test_Routes(t *testing.T) { tests := []rpctest.HandlerTestSpec{ { - OperationType: v1.OperationType{Type: v20220901privatepreview.AzureCredentialType, Method: v1.OperationList}, + OperationType: v1.OperationType{Type: v20231001preview.AzureCredentialType, Method: v1.OperationList}, Method: http.MethodGet, Path: "/planes/azure/azurecloud/providers/System.Azure/credentials", }, { - OperationType: v1.OperationType{Type: v20220901privatepreview.AzureCredentialType, Method: v1.OperationGet}, + OperationType: v1.OperationType{Type: v20231001preview.AzureCredentialType, Method: v1.OperationGet}, Method: http.MethodGet, Path: "/planes/azure/azurecloud/providers/System.Azure/credentials/default", }, { - OperationType: v1.OperationType{Type: v20220901privatepreview.AzureCredentialType, Method: v1.OperationPut}, + OperationType: v1.OperationType{Type: v20231001preview.AzureCredentialType, Method: v1.OperationPut}, Method: http.MethodPut, Path: "/planes/azure/azurecloud/providers/System.Azure/credentials/default", }, { - OperationType: v1.OperationType{Type: v20220901privatepreview.AzureCredentialType, Method: v1.OperationDelete}, + OperationType: v1.OperationType{Type: v20231001preview.AzureCredentialType, Method: v1.OperationDelete}, Method: http.MethodDelete, Path: "/planes/azure/azurecloud/providers/System.Azure/credentials/default", }, { diff --git a/pkg/ucp/frontend/controller/credentials/aws/createorupdateawscredential_test.go b/pkg/ucp/frontend/controller/credentials/aws/createorupdateawscredential_test.go index fc4108b25c1..f6c9b46ff7f 100644 --- a/pkg/ucp/frontend/controller/credentials/aws/createorupdateawscredential_test.go +++ b/pkg/ucp/frontend/controller/credentials/aws/createorupdateawscredential_test.go @@ -26,7 +26,7 @@ import ( armrpc_rest "github.com/radius-project/radius/pkg/armrpc/rest" "github.com/radius-project/radius/pkg/armrpc/rpctest" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/secret" "github.com/radius-project/radius/pkg/ucp/store" "github.com/radius-project/radius/test/testutil" @@ -58,7 +58,7 @@ func Test_AWS_Credential(t *testing.T) { name: "test_credential_creation", filename: "aws-credential.json", headerfile: testHeaderFile, - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", expected: getAwsResponse(), fn: setupCredentialSuccessMocks, err: nil, @@ -76,7 +76,7 @@ func Test_AWS_Credential(t *testing.T) { name: "test_invalid_credential_request", filename: "invalid-request-aws-credential.json", headerfile: testHeaderFile, - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", expected: nil, fn: setupEmptyMocks, err: &v1.ErrModelConversion{ @@ -88,7 +88,7 @@ func Test_AWS_Credential(t *testing.T) { name: "test_credential_created", filename: "aws-credential.json", headerfile: testHeaderFile, - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", expected: getAwsResponse(), fn: setupCredentialNotFoundMocks, err: nil, @@ -97,7 +97,7 @@ func Test_AWS_Credential(t *testing.T) { name: "test_credential_notFoundError", filename: "aws-credential.json", headerfile: testHeaderFile, - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", fn: setupCredentialNotFoundErrorMocks, err: errors.New("Error"), }, @@ -105,7 +105,7 @@ func Test_AWS_Credential(t *testing.T) { name: "test_credential_get_failure", filename: "aws-credential.json", headerfile: testHeaderFile, - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", fn: setupCredentialGetFailMocks, err: errors.New("Failed Get"), }, @@ -113,7 +113,7 @@ func Test_AWS_Credential(t *testing.T) { name: "test_credential_secret_save_failure", filename: "aws-credential.json", headerfile: testHeaderFile, - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", fn: setupCredentialSecretSaveFailMocks, err: errors.New("Secret Save Failure"), }, @@ -123,7 +123,7 @@ func Test_AWS_Credential(t *testing.T) { t.Run(tt.name, func(t *testing.T) { tt.fn(*mockStorageClient, *mockSecretClient) - credentialVersionedInput := &v20220901privatepreview.AwsCredentialResource{} + credentialVersionedInput := &v20231001preview.AwsCredentialResource{} credentialInput := testutil.ReadFixture(tt.filename) err = json.Unmarshal(credentialInput, credentialVersionedInput) require.NoError(t, err) @@ -146,7 +146,7 @@ func Test_AWS_Credential(t *testing.T) { } func getAwsResponse() armrpc_rest.Response { - return armrpc_rest.NewOKResponseWithHeaders(&v20220901privatepreview.AwsCredentialResource{ + return armrpc_rest.NewOKResponseWithHeaders(&v20231001preview.AwsCredentialResource{ Location: to.Ptr("West US"), ID: to.Ptr("/planes/aws/awscloud/providers/System.AWS/credentials/default"), Name: to.Ptr("default"), @@ -154,11 +154,11 @@ func getAwsResponse() armrpc_rest.Response { Tags: map[string]*string{ "env": to.Ptr("dev"), }, - Properties: &v20220901privatepreview.AwsAccessKeyCredentialProperties{ + Properties: &v20231001preview.AwsAccessKeyCredentialProperties{ AccessKeyID: to.Ptr("00000000-0000-0000-0000-000000000000"), - Kind: to.Ptr(v20220901privatepreview.AWSCredentialKindAccessKey), - Storage: &v20220901privatepreview.InternalCredentialStorageProperties{ - Kind: to.Ptr(v20220901privatepreview.CredentialStorageKindInternal), + Kind: to.Ptr(v20231001preview.AWSCredentialKindAccessKey), + Storage: &v20231001preview.InternalCredentialStorageProperties{ + Kind: to.Ptr(v20231001preview.CredentialStorageKindInternal), SecretName: to.Ptr("aws-awscloud-default"), }, }, diff --git a/pkg/ucp/frontend/controller/credentials/aws/deleteawscredential_test.go b/pkg/ucp/frontend/controller/credentials/aws/deleteawscredential_test.go index 7274fd39d78..5ffcf49335c 100644 --- a/pkg/ucp/frontend/controller/credentials/aws/deleteawscredential_test.go +++ b/pkg/ucp/frontend/controller/credentials/aws/deleteawscredential_test.go @@ -52,7 +52,7 @@ func Test_Credential_Delete(t *testing.T) { }{ { name: "test_credential_deletion", - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupCredentialDeleteSuccessMocks, expected: rest.NewOKResponse(nil), @@ -60,7 +60,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_non_existent_credential_deletion", - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupNonExistentCredentialDeleteMocks, expected: armrpc_rest.NewNoContentResponse(), @@ -68,7 +68,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_failed_credential_existence_check", - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupCredentialExistenceCheckFailureMocks, expected: nil, @@ -76,7 +76,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_non_existent_secret_deletion", - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupNonExistentSecretDeleteMocks, expected: armrpc_rest.NewNoContentResponse(), @@ -84,7 +84,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_secret_deletion_failure", - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupSecretDeleteFailureMocks, expected: nil, @@ -92,7 +92,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_non_existing_credential_deletion_from_storage", - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupNonExistingCredentialDeleteFromStorageMocks, expected: armrpc_rest.NewNoContentResponse(), @@ -100,7 +100,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_failed_credential_deletion_from_storage", - url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupFailedCredentialDeleteFromStorageMocks, expected: nil, diff --git a/pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20220901privatepreview.json b/pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20231001preview.json similarity index 82% rename from pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20220901privatepreview.json rename to pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20231001preview.json index d5efce2c992..916b1c2f15f 100644 --- a/pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20220901privatepreview.json +++ b/pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20231001preview.json @@ -4,5 +4,5 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2022-09-01-privatepreview" + "Referer": "/planes/aws/awscloud/providers/System.AWS/credentials/default?api-version=2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20220901privatepreview_badapiversion.json b/pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20231001preview_badapiversion.json similarity index 100% rename from pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20220901privatepreview_badapiversion.json rename to pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20231001preview_badapiversion.json diff --git a/pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20220901privatepreview_invalidcredential.json b/pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20231001preview_invalidcredential.json similarity index 85% rename from pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20220901privatepreview_invalidcredential.json rename to pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20231001preview_invalidcredential.json index e9c2c4cbff8..ce31c932349 100644 --- a/pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20220901privatepreview_invalidcredential.json +++ b/pkg/ucp/frontend/controller/credentials/aws/testdata/requestheaders20231001preview_invalidcredential.json @@ -4,5 +4,5 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "/planes/aws/awscloud/providers/System.AWS//default?api-version=2022-09-01-privatepreview" + "Referer": "/planes/aws/awscloud/providers/System.AWS//default?api-version=2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/ucp/frontend/controller/credentials/aws/testfixtures.go b/pkg/ucp/frontend/controller/credentials/aws/testfixtures.go index d23f3c72bea..72e6289437f 100644 --- a/pkg/ucp/frontend/controller/credentials/aws/testfixtures.go +++ b/pkg/ucp/frontend/controller/credentials/aws/testfixtures.go @@ -17,6 +17,6 @@ limitations under the License. package aws var ( - testHeaderFile = "requestheaders20220901privatepreview.json" - testHeaderFileWithBadAPIVersion = "requestheaders20220901privatepreview_badapiversion.json" + testHeaderFile = "requestheaders20231001preview.json" + testHeaderFileWithBadAPIVersion = "requestheaders20231001preview_badapiversion.json" ) diff --git a/pkg/ucp/frontend/controller/credentials/azure/createorupdateazurecredential_test.go b/pkg/ucp/frontend/controller/credentials/azure/createorupdateazurecredential_test.go index 4785e23762a..ae96164ac21 100644 --- a/pkg/ucp/frontend/controller/credentials/azure/createorupdateazurecredential_test.go +++ b/pkg/ucp/frontend/controller/credentials/azure/createorupdateazurecredential_test.go @@ -26,7 +26,7 @@ import ( armrpc_rest "github.com/radius-project/radius/pkg/armrpc/rest" "github.com/radius-project/radius/pkg/armrpc/rpctest" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/secret" "github.com/radius-project/radius/pkg/ucp/store" "github.com/radius-project/radius/test/testutil" @@ -60,7 +60,7 @@ func Test_Azure_Credential(t *testing.T) { name: "test_credential_creation", filename: "azure-credential.json", headerfile: testHeaderFile, - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", expected: getAzureCredentialResponse(), fn: setupCredentialSuccessMocks, err: nil, @@ -78,7 +78,7 @@ func Test_Azure_Credential(t *testing.T) { name: "test_invalid_credential_request", filename: "invalid-request-azure-credential.json", headerfile: testHeaderFile, - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", expected: nil, fn: setupEmptyMocks, err: &v1.ErrModelConversion{ @@ -90,7 +90,7 @@ func Test_Azure_Credential(t *testing.T) { name: "test_credential_created", filename: "azure-credential.json", headerfile: testHeaderFile, - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", expected: getAzureCredentialResponse(), fn: setupCredentialNotFoundMocks, err: nil, @@ -99,7 +99,7 @@ func Test_Azure_Credential(t *testing.T) { name: "test_credential_notFound_error", filename: "azure-credential.json", headerfile: testHeaderFile, - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", fn: setupCredentialNotFoundErrorMocks, err: errors.New("Error"), }, @@ -107,7 +107,7 @@ func Test_Azure_Credential(t *testing.T) { name: "test_credential_get_failure", filename: "azure-credential.json", headerfile: testHeaderFile, - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", fn: setupCredentialGetFailMocks, err: errors.New("Failed Get"), }, @@ -115,7 +115,7 @@ func Test_Azure_Credential(t *testing.T) { name: "test_credential_secret_save_failure", filename: "azure-credential.json", headerfile: testHeaderFile, - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", fn: setupCredentialSecretSaveFailMocks, err: errors.New("Secret Save Failure"), }, @@ -124,7 +124,7 @@ func Test_Azure_Credential(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { tt.fn(*mockStorageClient, *mockSecretClient) - credentialVersionedInput := &v20220901privatepreview.AzureCredentialResource{} + credentialVersionedInput := &v20231001preview.AzureCredentialResource{} credentialInput := testutil.ReadFixture(tt.filename) err = json.Unmarshal(credentialInput, credentialVersionedInput) require.NoError(t, err) @@ -145,7 +145,7 @@ func Test_Azure_Credential(t *testing.T) { } func getAzureCredentialResponse() armrpc_rest.Response { - return armrpc_rest.NewOKResponseWithHeaders(&v20220901privatepreview.AzureCredentialResource{ + return armrpc_rest.NewOKResponseWithHeaders(&v20231001preview.AzureCredentialResource{ Location: to.Ptr("West US"), ID: to.Ptr("/planes/azure/azurecloud/providers/System.Azure/credentials/default"), Name: to.Ptr("default"), @@ -153,12 +153,12 @@ func getAzureCredentialResponse() armrpc_rest.Response { Tags: map[string]*string{ "env": to.Ptr("dev"), }, - Properties: &v20220901privatepreview.AzureServicePrincipalProperties{ + Properties: &v20231001preview.AzureServicePrincipalProperties{ ClientID: to.Ptr("00000000-0000-0000-0000-000000000000"), TenantID: to.Ptr("00000000-0000-0000-0000-000000000000"), - Kind: to.Ptr(v20220901privatepreview.AzureCredentialKindServicePrincipal), - Storage: &v20220901privatepreview.InternalCredentialStorageProperties{ - Kind: to.Ptr(v20220901privatepreview.CredentialStorageKindInternal), + Kind: to.Ptr(v20231001preview.AzureCredentialKindServicePrincipal), + Storage: &v20231001preview.InternalCredentialStorageProperties{ + Kind: to.Ptr(v20231001preview.CredentialStorageKindInternal), SecretName: to.Ptr("azure-azurecloud-default"), }, }, diff --git a/pkg/ucp/frontend/controller/credentials/azure/deleteazurecredential_test.go b/pkg/ucp/frontend/controller/credentials/azure/deleteazurecredential_test.go index ef6ae7ec6b3..59dc8d3299a 100644 --- a/pkg/ucp/frontend/controller/credentials/azure/deleteazurecredential_test.go +++ b/pkg/ucp/frontend/controller/credentials/azure/deleteazurecredential_test.go @@ -53,7 +53,7 @@ func Test_Credential_Delete(t *testing.T) { }{ { name: "test_credential_deletion", - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupCredentialDeleteSuccessMocks, expected: armrpc_rest.NewOKResponse(nil), @@ -61,7 +61,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_non_existent_credential_deletion", - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupNonExistentCredentialDeleteMocks, expected: armrpc_rest.NewNoContentResponse(), @@ -69,7 +69,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_failed_credential_existence_check", - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupCredentialExistenceCheckFailureMocks, expected: nil, @@ -77,7 +77,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_non_existent_secret_deletion", - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupNonExistentSecretDeleteMocks, expected: armrpc_rest.NewNoContentResponse(), @@ -85,7 +85,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_secret_deletion_failure", - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupSecretDeleteFailureMocks, expected: nil, @@ -93,7 +93,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_non_existing_credential_deletion_from_storage", - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupNonExistingCredentialDeleteFromStorageMocks, expected: armrpc_rest.NewNoContentResponse(), @@ -101,7 +101,7 @@ func Test_Credential_Delete(t *testing.T) { }, { name: "test_failed_credential_deletion_from_storage", - url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview", + url: "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview", headerfile: testHeaderFile, fn: setupFailedCredentialDeleteFromStorageMocks, expected: nil, diff --git a/pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20220901privatepreview.json b/pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20231001preview.json similarity index 81% rename from pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20220901privatepreview.json rename to pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20231001preview.json index 8305e102587..13ce7e250e0 100644 --- a/pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20220901privatepreview.json +++ b/pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20231001preview.json @@ -4,5 +4,5 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2022-09-01-privatepreview" + "Referer": "/planes/azure/azurecloud/providers/System.Azure/credentials/default?api-version=2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20220901privatepreview_badapiversion.json b/pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20231001preview_badapiversion.json similarity index 100% rename from pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20220901privatepreview_badapiversion.json rename to pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20231001preview_badapiversion.json diff --git a/pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20220901privatepreview_invalidcredential.json b/pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20231001preview_invalidcredential.json similarity index 84% rename from pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20220901privatepreview_invalidcredential.json rename to pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20231001preview_invalidcredential.json index 9f7542ded93..633cf6d0ed7 100644 --- a/pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20220901privatepreview_invalidcredential.json +++ b/pkg/ucp/frontend/controller/credentials/azure/testdata/requestheaders20231001preview_invalidcredential.json @@ -4,5 +4,5 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "/planes/azure/azurecloud/providers/System.Azure//default?api-version=2022-09-01-privatepreview" + "Referer": "/planes/azure/azurecloud/providers/System.Azure//default?api-version=2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/ucp/frontend/controller/credentials/azure/testfixtures.go b/pkg/ucp/frontend/controller/credentials/azure/testfixtures.go index 60af88eceba..f5e32a24c5c 100644 --- a/pkg/ucp/frontend/controller/credentials/azure/testfixtures.go +++ b/pkg/ucp/frontend/controller/credentials/azure/testfixtures.go @@ -17,6 +17,6 @@ limitations under the License. package azure var ( - testHeaderFile = "requestheaders20220901privatepreview.json" - testHeaderFileWithBadAPIVersion = "requestheaders20220901privatepreview_badapiversion.json" + testHeaderFile = "requestheaders20231001preview.json" + testHeaderFileWithBadAPIVersion = "requestheaders20231001preview_badapiversion.json" ) diff --git a/pkg/ucp/frontend/controller/planes/listplanes_test.go b/pkg/ucp/frontend/controller/planes/listplanes_test.go index 46d3f701e22..2c4e6799242 100644 --- a/pkg/ucp/frontend/controller/planes/listplanes_test.go +++ b/pkg/ucp/frontend/controller/planes/listplanes_test.go @@ -25,7 +25,7 @@ import ( armrpc_rest "github.com/radius-project/radius/pkg/armrpc/rest" "github.com/radius-project/radius/pkg/armrpc/rpctest" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" "github.com/radius-project/radius/pkg/ucp/store" "github.com/stretchr/testify/require" @@ -39,7 +39,7 @@ func Test_ListPlanes(t *testing.T) { planesCtrl, err := NewListPlanes(armrpc_controller.Options{StorageClient: mockStorageClient}) require.NoError(t, err) - url := "/planes?api-version=2022-09-01-privatepreview" + url := "/planes?api-version=2023-10-01-preview" query := store.Query{ RootScope: "/planes", @@ -78,13 +78,13 @@ func Test_ListPlanes(t *testing.T) { actualResponse, err := planesCtrl.Run(ctx, nil, request) require.NoError(t, err) - expectedPlane := v20220901privatepreview.PlaneResource{ + expectedPlane := v20231001preview.PlaneResource{ ID: &testPlaneId, Name: &testPlaneName, Type: &testPlaneType, Tags: nil, - Properties: &v20220901privatepreview.PlaneResourceProperties{ - Kind: to.Ptr(v20220901privatepreview.PlaneKindAWS), + Properties: &v20231001preview.PlaneResourceProperties{ + Kind: to.Ptr(v20231001preview.PlaneKindAWS), ResourceProviders: nil, URL: nil, ProvisioningState: nil, diff --git a/pkg/ucp/frontend/controller/planes/listplanesbytype_test.go b/pkg/ucp/frontend/controller/planes/listplanesbytype_test.go index 269dfe5a92c..afde35f25c7 100644 --- a/pkg/ucp/frontend/controller/planes/listplanesbytype_test.go +++ b/pkg/ucp/frontend/controller/planes/listplanesbytype_test.go @@ -25,7 +25,7 @@ import ( armrpc_rest "github.com/radius-project/radius/pkg/armrpc/rest" "github.com/radius-project/radius/pkg/armrpc/rpctest" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" "github.com/radius-project/radius/pkg/ucp/store" "github.com/stretchr/testify/require" @@ -39,7 +39,7 @@ func Test_ListPlanesByType(t *testing.T) { planesCtrl, err := NewListPlanesByType(armrpc_controller.Options{StorageClient: mockStorageClient}) require.NoError(t, err) - url := "/planes/radius?api-version=2022-09-01-privatepreview" + url := "/planes/radius?api-version=2023-10-01-preview" query := store.Query{ RootScope: "/planes", @@ -79,13 +79,13 @@ func Test_ListPlanesByType(t *testing.T) { actualResponse, err := planesCtrl.Run(ctx, nil, request) require.NoError(t, err) - expectedPlane := v20220901privatepreview.PlaneResource{ + expectedPlane := v20231001preview.PlaneResource{ ID: &testPlaneId, Name: &testPlaneName, Type: &testPlaneType, Tags: nil, - Properties: &v20220901privatepreview.PlaneResourceProperties{ - Kind: to.Ptr(v20220901privatepreview.PlaneKindAWS), + Properties: &v20231001preview.PlaneResourceProperties{ + Kind: to.Ptr(v20231001preview.PlaneKindAWS), ResourceProviders: nil, URL: nil, ProvisioningState: nil, diff --git a/pkg/ucp/frontend/controller/planes/testdata/requestheaders20220901privatepreview_nonexistentplane.json b/pkg/ucp/frontend/controller/planes/testdata/requestheaders20231001preview.json similarity index 73% rename from pkg/ucp/frontend/controller/planes/testdata/requestheaders20220901privatepreview_nonexistentplane.json rename to pkg/ucp/frontend/controller/planes/testdata/requestheaders20231001preview.json index 801326dff40..fd9f809acb5 100644 --- a/pkg/ucp/frontend/controller/planes/testdata/requestheaders20220901privatepreview_nonexistentplane.json +++ b/pkg/ucp/frontend/controller/planes/testdata/requestheaders20231001preview.json @@ -4,5 +4,5 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "/planes/abc/xyz?api-version=2022-09-01-privatepreview" + "Referer": "/planes/radius/local?api-version=2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/ucp/frontend/controller/planes/testdata/requestheaders20220901privatepreview_azure.json b/pkg/ucp/frontend/controller/planes/testdata/requestheaders20231001preview_azure.json similarity index 71% rename from pkg/ucp/frontend/controller/planes/testdata/requestheaders20220901privatepreview_azure.json rename to pkg/ucp/frontend/controller/planes/testdata/requestheaders20231001preview_azure.json index 0c07c4aec21..a4f8edcca8a 100644 --- a/pkg/ucp/frontend/controller/planes/testdata/requestheaders20220901privatepreview_azure.json +++ b/pkg/ucp/frontend/controller/planes/testdata/requestheaders20231001preview_azure.json @@ -4,5 +4,5 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "/planes/azure/public?api-version=2022-09-01-privatepreview" + "Referer": "/planes/azure/public?api-version=2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/ucp/frontend/controller/planes/testdata/requestheaders20220901privatepreview.json b/pkg/ucp/frontend/controller/planes/testdata/requestheaders20231001preview_nonexistentplane.json similarity index 71% rename from pkg/ucp/frontend/controller/planes/testdata/requestheaders20220901privatepreview.json rename to pkg/ucp/frontend/controller/planes/testdata/requestheaders20231001preview_nonexistentplane.json index 01b11d458a0..474a04e0773 100644 --- a/pkg/ucp/frontend/controller/planes/testdata/requestheaders20220901privatepreview.json +++ b/pkg/ucp/frontend/controller/planes/testdata/requestheaders20231001preview_nonexistentplane.json @@ -4,5 +4,5 @@ "Accept-Language": "en-US", "Content-Length": "305", "Content-Type": "application/json; charset=utf-8", - "Referer": "/planes/radius/local?api-version=2022-09-01-privatepreview" + "Referer": "/planes/abc/xyz?api-version=2023-10-01-preview" } \ No newline at end of file diff --git a/pkg/ucp/frontend/controller/resourcegroups/listresourcegroups_test.go b/pkg/ucp/frontend/controller/resourcegroups/listresourcegroups_test.go index f13816461b1..d869a790ab6 100644 --- a/pkg/ucp/frontend/controller/resourcegroups/listresourcegroups_test.go +++ b/pkg/ucp/frontend/controller/resourcegroups/listresourcegroups_test.go @@ -28,7 +28,7 @@ import ( armrpc_rest "github.com/radius-project/radius/pkg/armrpc/rest" "github.com/radius-project/radius/pkg/armrpc/rpctest" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" "github.com/radius-project/radius/pkg/ucp/store" ) @@ -41,7 +41,7 @@ func Test_ListResourceGroups(t *testing.T) { rgCtrl, err := NewListResourceGroups(armrpc_controller.Options{StorageClient: mockStorageClient}) require.NoError(t, err) - url := "/planes/radius/local/resourceGroups?api-version=2022-09-01-privatepreview" + url := "/planes/radius/local/resourceGroups?api-version=2023-10-01-preview" query := store.Query{ RootScope: "/planes/radius/local", @@ -79,7 +79,7 @@ func Test_ListResourceGroups(t *testing.T) { actualResponse, err := rgCtrl.Run(ctx, nil, request) require.NoError(t, err) - resourceGroup := v20220901privatepreview.ResourceGroupResource{ + resourceGroup := v20231001preview.ResourceGroupResource{ ID: &testResourceGroupID, Name: &testResourceGroupName, Type: to.Ptr(ResourceGroupType), diff --git a/pkg/ucp/frontend/controller/resourcegroups/listresources.go b/pkg/ucp/frontend/controller/resourcegroups/listresources.go index c0d5d35b4fd..61befa10621 100644 --- a/pkg/ucp/frontend/controller/resourcegroups/listresources.go +++ b/pkg/ucp/frontend/controller/resourcegroups/listresources.go @@ -24,7 +24,7 @@ import ( armrpc_controller "github.com/radius-project/radius/pkg/armrpc/frontend/controller" armrpc_rest "github.com/radius-project/radius/pkg/armrpc/rest" "github.com/radius-project/radius/pkg/middleware" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" "github.com/radius-project/radius/pkg/ucp/datamodel/converter" "github.com/radius-project/radius/pkg/ucp/resources" @@ -71,7 +71,7 @@ func (r *ListResources) Run(ctx context.Context, w http.ResponseWriter, req *htt query := store.Query{ RootScope: resourceGroupID.String(), - ResourceType: v20220901privatepreview.ResourceType, + ResourceType: v20231001preview.ResourceType, } result, err := r.StorageClient().Query(ctx, query) diff --git a/pkg/ucp/frontend/controller/resourcegroups/listresources_test.go b/pkg/ucp/frontend/controller/resourcegroups/listresources_test.go index 3a933d372fd..5d7256ed086 100644 --- a/pkg/ucp/frontend/controller/resourcegroups/listresources_test.go +++ b/pkg/ucp/frontend/controller/resourcegroups/listresources_test.go @@ -28,14 +28,14 @@ import ( armrpc_rest "github.com/radius-project/radius/pkg/armrpc/rest" "github.com/radius-project/radius/pkg/armrpc/rpctest" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" "github.com/radius-project/radius/pkg/ucp/resources" "github.com/radius-project/radius/pkg/ucp/store" ) func Test_ListResources(t *testing.T) { - entryResource := v20220901privatepreview.GenericResource{ + entryResource := v20231001preview.GenericResource{ ID: to.Ptr("/planes/radius/local/resourceGroups/test-rg/providers/Applications.Core/applications/test-app"), Type: to.Ptr("Applications.Core/applications"), Name: to.Ptr("test-app"), @@ -69,7 +69,7 @@ func Test_ListResources(t *testing.T) { Return(&store.Object{Data: resourceGroupDatamodel}, nil). Times(1) - expectedQuery := store.Query{RootScope: resourceGroupID, ResourceType: v20220901privatepreview.ResourceType} + expectedQuery := store.Query{RootScope: resourceGroupID, ResourceType: v20231001preview.ResourceType} storage.EXPECT(). Query(gomock.Any(), expectedQuery). Return(&store.ObjectQueryResult{Items: []store.Object{{Data: entryDatamodel}}}, nil). @@ -79,7 +79,7 @@ func Test_ListResources(t *testing.T) { Value: []any{&entryResource}, }) - request, err := http.NewRequest(http.MethodGet, ctrl.Options().PathBase+id+"?api-version="+v20220901privatepreview.Version, nil) + request, err := http.NewRequest(http.MethodGet, ctrl.Options().PathBase+id+"?api-version="+v20231001preview.Version, nil) require.NoError(t, err) ctx := rpctest.NewARMRequestContext(request) response, err := ctrl.Run(ctx, nil, request) @@ -95,7 +95,7 @@ func Test_ListResources(t *testing.T) { Return(&store.Object{Data: resourceGroupDatamodel}, nil). Times(1) - expectedQuery := store.Query{RootScope: resourceGroupID, ResourceType: v20220901privatepreview.ResourceType} + expectedQuery := store.Query{RootScope: resourceGroupID, ResourceType: v20231001preview.ResourceType} storage.EXPECT(). Query(gomock.Any(), expectedQuery). Return(&store.ObjectQueryResult{Items: []store.Object{}}, nil). @@ -103,7 +103,7 @@ func Test_ListResources(t *testing.T) { expected := armrpc_rest.NewOKResponse(&v1.PaginatedList{}) - request, err := http.NewRequest(http.MethodGet, ctrl.Options().PathBase+id+"?api-version="+v20220901privatepreview.Version, nil) + request, err := http.NewRequest(http.MethodGet, ctrl.Options().PathBase+id+"?api-version="+v20231001preview.Version, nil) require.NoError(t, err) ctx := rpctest.NewARMRequestContext(request) response, err := ctrl.Run(ctx, nil, request) @@ -124,7 +124,7 @@ func Test_ListResources(t *testing.T) { expected := armrpc_rest.NewNotFoundResponse(parsed) - request, err := http.NewRequest(http.MethodGet, ctrl.Options().PathBase+id+"?api-version="+v20220901privatepreview.Version, nil) + request, err := http.NewRequest(http.MethodGet, ctrl.Options().PathBase+id+"?api-version="+v20231001preview.Version, nil) require.NoError(t, err) ctx := rpctest.NewARMRequestContext(request) response, err := ctrl.Run(ctx, nil, request) diff --git a/pkg/ucp/frontend/radius/routes.go b/pkg/ucp/frontend/radius/routes.go index 294e12eb9ef..b36810dff9c 100644 --- a/pkg/ucp/frontend/radius/routes.go +++ b/pkg/ucp/frontend/radius/routes.go @@ -24,7 +24,7 @@ import ( "github.com/radius-project/radius/pkg/armrpc/frontend/controller" "github.com/radius-project/radius/pkg/armrpc/frontend/defaultoperation" "github.com/radius-project/radius/pkg/armrpc/frontend/server" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/datamodel" "github.com/radius-project/radius/pkg/ucp/datamodel/converter" planes_ctrl "github.com/radius-project/radius/pkg/ucp/frontend/controller/planes" @@ -56,13 +56,13 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { handlerOptions := []server.HandlerOptions{ { ParentRouter: resourceGroupCollectionRouter, - ResourceType: v20220901privatepreview.ResourceGroupType, + ResourceType: v20231001preview.ResourceGroupType, Method: v1.OperationList, ControllerFactory: resourcegroups_ctrl.NewListResourceGroups, }, { ParentRouter: resourceGroupResourceRouter, - ResourceType: v20220901privatepreview.ResourceGroupType, + ResourceType: v20231001preview.ResourceGroupType, Method: v1.OperationGet, ControllerFactory: func(opt controller.Options) (controller.Controller, error) { return defaultoperation.NewGetResource(opt, @@ -75,7 +75,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { }, { ParentRouter: resourceGroupResourceRouter, - ResourceType: v20220901privatepreview.ResourceGroupType, + ResourceType: v20231001preview.ResourceGroupType, Method: v1.OperationPut, ControllerFactory: func(opt controller.Options) (controller.Controller, error) { return defaultoperation.NewDefaultSyncPut(opt, @@ -88,7 +88,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { }, { ParentRouter: resourceGroupResourceRouter, - ResourceType: v20220901privatepreview.ResourceGroupType, + ResourceType: v20231001preview.ResourceGroupType, Method: v1.OperationDelete, ControllerFactory: func(opt controller.Options) (controller.Controller, error) { return defaultoperation.NewDefaultSyncDelete(opt, @@ -101,7 +101,7 @@ func (m *Module) Initialize(ctx context.Context) (http.Handler, error) { }, { ParentRouter: resourceGroupResourceRouter, - ResourceType: v20220901privatepreview.ResourceType, + ResourceType: v20231001preview.ResourceType, Path: "/resources", Method: v1.OperationList, ControllerFactory: func(opt controller.Options) (controller.Controller, error) { diff --git a/pkg/ucp/frontend/radius/routes_test.go b/pkg/ucp/frontend/radius/routes_test.go index 5e3fd67667d..770feed7fbd 100644 --- a/pkg/ucp/frontend/radius/routes_test.go +++ b/pkg/ucp/frontend/radius/routes_test.go @@ -25,7 +25,7 @@ import ( "github.com/golang/mock/gomock" v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" "github.com/radius-project/radius/pkg/armrpc/rpctest" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/dataprovider" "github.com/radius-project/radius/pkg/ucp/frontend/modules" "github.com/radius-project/radius/pkg/ucp/hostoptions" @@ -48,19 +48,19 @@ func Test_Routes(t *testing.T) { Path: "/planes/radius/local/resourcegroups/test-rg/providers/applications.core/applications/test-app", SkipOperationTypeValidation: true, }, { - OperationType: v1.OperationType{Type: v20220901privatepreview.ResourceGroupType, Method: v1.OperationList}, + OperationType: v1.OperationType{Type: v20231001preview.ResourceGroupType, Method: v1.OperationList}, Method: http.MethodGet, Path: "/planes/radius/local/resourcegroups", }, { - OperationType: v1.OperationType{Type: v20220901privatepreview.ResourceGroupType, Method: v1.OperationGet}, + OperationType: v1.OperationType{Type: v20231001preview.ResourceGroupType, Method: v1.OperationGet}, Method: http.MethodGet, Path: "/planes/radius/local/resourcegroups/test-rg", }, { - OperationType: v1.OperationType{Type: v20220901privatepreview.ResourceGroupType, Method: v1.OperationPut}, + OperationType: v1.OperationType{Type: v20231001preview.ResourceGroupType, Method: v1.OperationPut}, Method: http.MethodPut, Path: "/planes/radius/local/resourcegroups/test-rg", }, { - OperationType: v1.OperationType{Type: v20220901privatepreview.ResourceGroupType, Method: v1.OperationDelete}, + OperationType: v1.OperationType{Type: v20231001preview.ResourceGroupType, Method: v1.OperationDelete}, Method: http.MethodDelete, Path: "/planes/radius/local/resourcegroups/test-rg", }, { diff --git a/pkg/ucp/frontend/versions/versions.go b/pkg/ucp/frontend/versions/versions.go index 8243b68f6d2..90b75d342b4 100644 --- a/pkg/ucp/frontend/versions/versions.go +++ b/pkg/ucp/frontend/versions/versions.go @@ -15,4 +15,4 @@ limitations under the License. */ package versions -const DefaultAPIVersion = "2022-09-01-privatepreview" +const DefaultAPIVersion = "2023-10-01-preview" diff --git a/pkg/ucp/integrationtests/azure/proxy_test.go b/pkg/ucp/integrationtests/azure/proxy_test.go index 69a5a327df4..c21e98039a0 100644 --- a/pkg/ucp/integrationtests/azure/proxy_test.go +++ b/pkg/ucp/integrationtests/azure/proxy_test.go @@ -24,7 +24,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/frontend/api" "github.com/radius-project/radius/pkg/ucp/integrationtests/testrp" "github.com/radius-project/radius/pkg/ucp/integrationtests/testserver" @@ -33,7 +33,7 @@ import ( const ( testProxyRequestAzurePath = "/subscriptions/sid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" - apiVersionParameter = "api-version=2022-09-01-privatepreview" + apiVersionParameter = "api-version=2023-10-01-preview" testAzurePlaneID = "/planes/azure/test" ) @@ -64,10 +64,10 @@ func Test_AzurePlane_ProxyRequest(t *testing.T) { } func createAzurePlane(ucp *testserver.TestServer, rp *testrp.Server) { - body := v20220901privatepreview.PlaneResource{ + body := v20231001preview.PlaneResource{ Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220901privatepreview.PlaneResourceProperties{ - Kind: to.Ptr(v20220901privatepreview.PlaneKindAzure), + Properties: &v20231001preview.PlaneResourceProperties{ + Kind: to.Ptr(v20231001preview.PlaneKindAzure), URL: to.Ptr("http://" + rp.Address()), }, } diff --git a/pkg/ucp/integrationtests/handler_test.go b/pkg/ucp/integrationtests/handler_test.go index 4046735a965..c131536c738 100644 --- a/pkg/ucp/integrationtests/handler_test.go +++ b/pkg/ucp/integrationtests/handler_test.go @@ -28,7 +28,7 @@ import ( func Test_Handler_MethodNotAllowed(t *testing.T) { ucp := testserver.StartWithMocks(t, testserver.NoModules) - response := ucp.MakeRequest(http.MethodDelete, "/planes?api-version=2022-09-01-privatepreview", nil) + response := ucp.MakeRequest(http.MethodDelete, "/planes?api-version=2023-10-01-preview", nil) require.Equal(t, "failed to parse route: undefined route path", response.Error.Error.Details[0].Message) } diff --git a/pkg/ucp/integrationtests/planes/aws_test.go b/pkg/ucp/integrationtests/planes/aws_test.go index c4e15829278..58e03151c04 100644 --- a/pkg/ucp/integrationtests/planes/aws_test.go +++ b/pkg/ucp/integrationtests/planes/aws_test.go @@ -25,13 +25,13 @@ import ( ) const ( - awsPlaneCollectionURL = "/planes/aws?api-version=2022-09-01-privatepreview" - awsPlaneResourceURL = "/planes/aws/aws?api-version=2022-09-01-privatepreview" - awsPlaneRequestFixture = "testdata/awsplane_v20220901privatepreview_requestbody.json" - awsPlaneResponseFixture = "testdata/awsplane_v20220901privatepreview_responsebody.json" - awsPlaneListResponseFixture = "testdata/awsplane_v20220901privatepreview_list_responsebody.json" - awsPlaneUpdatedRequestFixture = "testdata/awsplane_updated_v20220901privatepreview_requestbody.json" - awsPlaneUpdatedResponseFixture = "testdata/awsplane_updated_v20220901privatepreview_responsebody.json" + awsPlaneCollectionURL = "/planes/aws?api-version=2023-10-01-preview" + awsPlaneResourceURL = "/planes/aws/aws?api-version=2023-10-01-preview" + awsPlaneRequestFixture = "testdata/awsplane_v20231001preview_requestbody.json" + awsPlaneResponseFixture = "testdata/awsplane_v20231001preview_responsebody.json" + awsPlaneListResponseFixture = "testdata/awsplane_v20231001preview_list_responsebody.json" + awsPlaneUpdatedRequestFixture = "testdata/awsplane_updated_v20231001preview_requestbody.json" + awsPlaneUpdatedResponseFixture = "testdata/awsplane_updated_v20231001preview_responsebody.json" ) func Test_AWSPlane_PUT_Create(t *testing.T) { diff --git a/pkg/ucp/integrationtests/planes/planes_test.go b/pkg/ucp/integrationtests/planes/planes_test.go index 913b6144e4d..f06f0664a7b 100644 --- a/pkg/ucp/integrationtests/planes/planes_test.go +++ b/pkg/ucp/integrationtests/planes/planes_test.go @@ -24,9 +24,9 @@ import ( ) const ( - globalPlaneCollectionURL = "/planes?api-version=2022-09-01-privatepreview" - planeTypeCollectionURL = "/planes/radius?api-version=2022-09-01-privatepreview" - globalPlaneResponseFixture = "testdata/globalplane_v20220901privatepreview_list_responsebody.json" + globalPlaneCollectionURL = "/planes?api-version=2023-10-01-preview" + planeTypeCollectionURL = "/planes/radius?api-version=2023-10-01-preview" + globalPlaneResponseFixture = "testdata/globalplane_v20231001preview_list_responsebody.json" ) func Test_AllPlanes_LIST(t *testing.T) { diff --git a/pkg/ucp/integrationtests/planes/radius_test.go b/pkg/ucp/integrationtests/planes/radius_test.go index 52f5738f4b5..c995588f203 100644 --- a/pkg/ucp/integrationtests/planes/radius_test.go +++ b/pkg/ucp/integrationtests/planes/radius_test.go @@ -25,13 +25,13 @@ import ( ) const ( - radiusPlaneCollectionURL = "/planes/radius?api-version=2022-09-01-privatepreview" - radiusPlaneResourceURL = "/planes/radius/local?api-version=2022-09-01-privatepreview" - radiusPlaneRequestFixture = "testdata/radiusplane_v20220901privatepreview_requestbody.json" - radiusPlaneResponseFixture = "testdata/radiusplane_v20220901privatepreview_responsebody.json" - radiusPlaneListResponseFixture = "testdata/radiusplane_v20220901privatepreview_list_responsebody.json" - radiusPlaneUpdatedRequestFixture = "testdata/radiusplane_updated_v20220901privatepreview_requestbody.json" - radiusPlaneUpdatedResponseFixture = "testdata/radiusplane_updated_v20220901privatepreview_responsebody.json" + radiusPlaneCollectionURL = "/planes/radius?api-version=2023-10-01-preview" + radiusPlaneResourceURL = "/planes/radius/local?api-version=2023-10-01-preview" + radiusPlaneRequestFixture = "testdata/radiusplane_v20231001preview_requestbody.json" + radiusPlaneResponseFixture = "testdata/radiusplane_v20231001preview_responsebody.json" + radiusPlaneListResponseFixture = "testdata/radiusplane_v20231001preview_list_responsebody.json" + radiusPlaneUpdatedRequestFixture = "testdata/radiusplane_updated_v20231001preview_requestbody.json" + radiusPlaneUpdatedResponseFixture = "testdata/radiusplane_updated_v20231001preview_responsebody.json" ) func Test_RadiusPlane_PUT_Create(t *testing.T) { diff --git a/pkg/ucp/integrationtests/planes/testdata/awsplane_updated_v20220901privatepreview_requestbody.json b/pkg/ucp/integrationtests/planes/testdata/awsplane_updated_v20231001preview_requestbody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/awsplane_updated_v20220901privatepreview_requestbody.json rename to pkg/ucp/integrationtests/planes/testdata/awsplane_updated_v20231001preview_requestbody.json diff --git a/pkg/ucp/integrationtests/planes/testdata/awsplane_updated_v20220901privatepreview_responsebody.json b/pkg/ucp/integrationtests/planes/testdata/awsplane_updated_v20231001preview_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/awsplane_updated_v20220901privatepreview_responsebody.json rename to pkg/ucp/integrationtests/planes/testdata/awsplane_updated_v20231001preview_responsebody.json diff --git a/pkg/ucp/integrationtests/planes/testdata/awsplane_v20220901privatepreview_list_responsebody.json b/pkg/ucp/integrationtests/planes/testdata/awsplane_v20231001preview_list_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/awsplane_v20220901privatepreview_list_responsebody.json rename to pkg/ucp/integrationtests/planes/testdata/awsplane_v20231001preview_list_responsebody.json diff --git a/pkg/ucp/integrationtests/planes/testdata/awsplane_v20220901privatepreview_requestbody.json b/pkg/ucp/integrationtests/planes/testdata/awsplane_v20231001preview_requestbody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/awsplane_v20220901privatepreview_requestbody.json rename to pkg/ucp/integrationtests/planes/testdata/awsplane_v20231001preview_requestbody.json diff --git a/pkg/ucp/integrationtests/planes/testdata/awsplane_v20220901privatepreview_responsebody.json b/pkg/ucp/integrationtests/planes/testdata/awsplane_v20231001preview_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/awsplane_v20220901privatepreview_responsebody.json rename to pkg/ucp/integrationtests/planes/testdata/awsplane_v20231001preview_responsebody.json diff --git a/pkg/ucp/integrationtests/planes/testdata/globalplane_v20220901privatepreview_list_responsebody.json b/pkg/ucp/integrationtests/planes/testdata/globalplane_v20231001preview_list_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/globalplane_v20220901privatepreview_list_responsebody.json rename to pkg/ucp/integrationtests/planes/testdata/globalplane_v20231001preview_list_responsebody.json diff --git a/pkg/ucp/integrationtests/planes/testdata/radiusplane_updated_v20220901privatepreview_requestbody.json b/pkg/ucp/integrationtests/planes/testdata/radiusplane_updated_v20231001preview_requestbody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/radiusplane_updated_v20220901privatepreview_requestbody.json rename to pkg/ucp/integrationtests/planes/testdata/radiusplane_updated_v20231001preview_requestbody.json diff --git a/pkg/ucp/integrationtests/planes/testdata/radiusplane_updated_v20220901privatepreview_responsebody.json b/pkg/ucp/integrationtests/planes/testdata/radiusplane_updated_v20231001preview_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/radiusplane_updated_v20220901privatepreview_responsebody.json rename to pkg/ucp/integrationtests/planes/testdata/radiusplane_updated_v20231001preview_responsebody.json diff --git a/pkg/ucp/integrationtests/planes/testdata/radiusplane_v20220901privatepreview_list_responsebody.json b/pkg/ucp/integrationtests/planes/testdata/radiusplane_v20231001preview_list_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/radiusplane_v20220901privatepreview_list_responsebody.json rename to pkg/ucp/integrationtests/planes/testdata/radiusplane_v20231001preview_list_responsebody.json diff --git a/pkg/ucp/integrationtests/planes/testdata/radiusplane_v20220901privatepreview_requestbody.json b/pkg/ucp/integrationtests/planes/testdata/radiusplane_v20231001preview_requestbody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/radiusplane_v20220901privatepreview_requestbody.json rename to pkg/ucp/integrationtests/planes/testdata/radiusplane_v20231001preview_requestbody.json diff --git a/pkg/ucp/integrationtests/planes/testdata/radiusplane_v20220901privatepreview_responsebody.json b/pkg/ucp/integrationtests/planes/testdata/radiusplane_v20231001preview_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/planes/testdata/radiusplane_v20220901privatepreview_responsebody.json rename to pkg/ucp/integrationtests/planes/testdata/radiusplane_v20231001preview_responsebody.json diff --git a/pkg/ucp/integrationtests/planes/validation_test.go b/pkg/ucp/integrationtests/planes/validation_test.go index 8a864be18c2..aaab23573c6 100644 --- a/pkg/ucp/integrationtests/planes/validation_test.go +++ b/pkg/ucp/integrationtests/planes/validation_test.go @@ -22,14 +22,14 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/frontend/api" "github.com/radius-project/radius/pkg/ucp/integrationtests/testserver" "github.com/stretchr/testify/require" ) const ( - invalidAPIVersionErrorMessage = "API version 'unsupported-version' for type 'ucp/openapi' is not supported. The supported api-versions are '2022-09-01-privatepreview'." + invalidAPIVersionErrorMessage = "API version 'unsupported-version' for type 'ucp/openapi' is not supported. The supported api-versions are '2023-10-01-preview'." ) func Test_Planes_GET_BadAPIVersion(t *testing.T) { @@ -43,9 +43,9 @@ func Test_Planes_GET_BadAPIVersion(t *testing.T) { func Test_Planes_PUT_BadAPIVersion(t *testing.T) { ucp := testserver.StartWithMocks(t, api.DefaultModules) - requestBody := v20220901privatepreview.PlaneResource{ + requestBody := v20231001preview.PlaneResource{ Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220901privatepreview.PlaneResourceProperties{}, + Properties: &v20231001preview.PlaneResourceProperties{}, } response := ucp.MakeTypedRequest(http.MethodPut, "/planes/radius/local?api-version=unsupported-version", requestBody) diff --git a/pkg/ucp/integrationtests/radius/proxy_test.go b/pkg/ucp/integrationtests/radius/proxy_test.go index 96e45980d41..462d0dc5384 100644 --- a/pkg/ucp/integrationtests/radius/proxy_test.go +++ b/pkg/ucp/integrationtests/radius/proxy_test.go @@ -27,7 +27,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" backend_ctrl "github.com/radius-project/radius/pkg/armrpc/asyncoperation/controller" "github.com/radius-project/radius/pkg/to" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/frontend/api" "github.com/radius-project/radius/pkg/ucp/integrationtests/testrp" "github.com/radius-project/radius/pkg/ucp/integrationtests/testserver" @@ -36,7 +36,7 @@ import ( ) const ( - apiVersionParameter = "api-version=2022-09-01-privatepreview" + apiVersionParameter = "api-version=2023-10-01-preview" testRadiusPlaneID = "/planes/radius/test" testResourceNamespace = "System.Test" testResourceGroupID = testRadiusPlaneID + "/resourceGroups/test-rg" @@ -270,10 +270,10 @@ func Test_RadiusPlane_ResourceAsync(t *testing.T) { } func createRadiusPlane(ucp *testserver.TestServer, resourceProviders map[string]*string) { - body := v20220901privatepreview.PlaneResource{ + body := v20231001preview.PlaneResource{ Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220901privatepreview.PlaneResourceProperties{ - Kind: to.Ptr(v20220901privatepreview.PlaneKindUCPNative), + Properties: &v20231001preview.PlaneResourceProperties{ + Kind: to.Ptr(v20231001preview.PlaneKindUCPNative), ResourceProviders: resourceProviders, }, } @@ -282,9 +282,9 @@ func createRadiusPlane(ucp *testserver.TestServer, resourceProviders map[string] } func createResourceGroup(ucp *testserver.TestServer, id string) { - body := v20220901privatepreview.ResourceGroupResource{ + body := v20231001preview.ResourceGroupResource{ Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220901privatepreview.ResourceGroupProperties{}, + Properties: &v20231001preview.ResourceGroupProperties{}, } response := ucp.MakeTypedRequest(http.MethodPut, id+"?"+apiVersionParameter, body) response.EqualsStatusCode(http.StatusOK) diff --git a/pkg/ucp/integrationtests/resourcegroups/resourcegroups_test.go b/pkg/ucp/integrationtests/resourcegroups/resourcegroups_test.go index f8fd7231220..5106fcf3146 100644 --- a/pkg/ucp/integrationtests/resourcegroups/resourcegroups_test.go +++ b/pkg/ucp/integrationtests/resourcegroups/resourcegroups_test.go @@ -25,19 +25,19 @@ import ( ) const ( - radiusPlaneResourceURL = "/planes/radius/local?api-version=2022-09-01-privatepreview" - radiusPlaneRequestFixture = "../planes/testdata/radiusplane_v20220901privatepreview_requestbody.json" - radiusPlaneResponseFixture = "../planes/testdata/radiusplane_v20220901privatepreview_responsebody.json" - - resourceGroupCollectionURL = "/planes/radius/local/resourceGroups?api-version=2022-09-01-privatepreview" - resourceGroupResourceURL = "/planes/radius/local/resourcegroups/test-rg?api-version=2022-09-01-privatepreview" - resourceGroupRequestFixture = "testdata/resourcegroup_v20220901privatepreview_requestbody.json" - resourceGroupResponseFixture = "testdata/resourcegroup_v20220901privatepreview_responsebody.json" - resourceGroupListResponseFixture = "testdata/resourcegroup_v20220901privatepreview_list_responsebody.json" - resourceGroupUpdatedRequestFixture = "testdata/resourcegroup_updated_v20220901privatepreview_requestbody.json" - resourceGroupUpdatedResponseFixture = "testdata/resourcegroup_updated_v20220901privatepreview_responsebody.json" - resourceGroupInvalidRequestFixture = "testdata/resourcegroup_invalid_v20220901privatepreview_requestbody.json" - resourceGroupInvalidResponseFixture = "testdata/resourcegroup_invalid_v20220901privatepreview_responsebody.json" + radiusPlaneResourceURL = "/planes/radius/local?api-version=2023-10-01-preview" + radiusPlaneRequestFixture = "../planes/testdata/radiusplane_v20231001preview_requestbody.json" + radiusPlaneResponseFixture = "../planes/testdata/radiusplane_v20231001preview_responsebody.json" + + resourceGroupCollectionURL = "/planes/radius/local/resourceGroups?api-version=2023-10-01-preview" + resourceGroupResourceURL = "/planes/radius/local/resourcegroups/test-rg?api-version=2023-10-01-preview" + resourceGroupRequestFixture = "testdata/resourcegroup_v20231001preview_requestbody.json" + resourceGroupResponseFixture = "testdata/resourcegroup_v20231001preview_responsebody.json" + resourceGroupListResponseFixture = "testdata/resourcegroup_v20231001preview_list_responsebody.json" + resourceGroupUpdatedRequestFixture = "testdata/resourcegroup_updated_v20231001preview_requestbody.json" + resourceGroupUpdatedResponseFixture = "testdata/resourcegroup_updated_v20231001preview_responsebody.json" + resourceGroupInvalidRequestFixture = "testdata/resourcegroup_invalid_v20231001preview_requestbody.json" + resourceGroupInvalidResponseFixture = "testdata/resourcegroup_invalid_v20231001preview_responsebody.json" ) func createRadiusPlane(server *testserver.TestServer) { diff --git a/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_invalid_v20220901privatepreview_requestbody.json b/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_invalid_v20231001preview_requestbody.json similarity index 100% rename from pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_invalid_v20220901privatepreview_requestbody.json rename to pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_invalid_v20231001preview_requestbody.json diff --git a/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_invalid_v20220901privatepreview_responsebody.json b/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_invalid_v20231001preview_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_invalid_v20220901privatepreview_responsebody.json rename to pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_invalid_v20231001preview_responsebody.json diff --git a/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_updated_v20220901privatepreview_requestbody.json b/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_updated_v20231001preview_requestbody.json similarity index 100% rename from pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_updated_v20220901privatepreview_requestbody.json rename to pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_updated_v20231001preview_requestbody.json diff --git a/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_updated_v20220901privatepreview_responsebody.json b/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_updated_v20231001preview_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_updated_v20220901privatepreview_responsebody.json rename to pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_updated_v20231001preview_responsebody.json diff --git a/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20220901privatepreview_list_responsebody.json b/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20231001preview_list_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20220901privatepreview_list_responsebody.json rename to pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20231001preview_list_responsebody.json diff --git a/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20220901privatepreview_requestbody.json b/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20231001preview_requestbody.json similarity index 100% rename from pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20220901privatepreview_requestbody.json rename to pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20231001preview_requestbody.json diff --git a/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20220901privatepreview_responsebody.json b/pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20231001preview_responsebody.json similarity index 100% rename from pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20220901privatepreview_responsebody.json rename to pkg/ucp/integrationtests/resourcegroups/testdata/resourcegroup_v20231001preview_responsebody.json diff --git a/pkg/ucp/integrationtests/testrp/resource.go b/pkg/ucp/integrationtests/testrp/resource.go index f244bb1a61e..7525974e968 100644 --- a/pkg/ucp/integrationtests/testrp/resource.go +++ b/pkg/ucp/integrationtests/testrp/resource.go @@ -16,7 +16,7 @@ limitations under the License. package testrp -const Version = "2022-03-15-privatepreview" +const Version = "2023-10-01-preview" type TestResourceList struct { Value []TestResource `json:"value"` diff --git a/pkg/ucp/store/cosmosdb/cosmosdbstorageclient_test.go b/pkg/ucp/store/cosmosdb/cosmosdbstorageclient_test.go index a696d9d7536..8953cca204f 100644 --- a/pkg/ucp/store/cosmosdb/cosmosdbstorageclient_test.go +++ b/pkg/ucp/store/cosmosdb/cosmosdbstorageclient_test.go @@ -86,8 +86,8 @@ func getTestEnvironmentModel(rootScope string, resourceName string) *datamodel.E }, } - env.InternalMetadata.CreatedAPIVersion = "2022-03-15-privatepreview" - env.InternalMetadata.UpdatedAPIVersion = "2022-03-15-privatepreview" + env.InternalMetadata.CreatedAPIVersion = "2023-10-01-preview" + env.InternalMetadata.UpdatedAPIVersion = "2023-10-01-preview" return env } diff --git a/pkg/validator/apivalidator.go b/pkg/validator/apivalidator.go index 84f628eb678..0202003cce4 100644 --- a/pkg/validator/apivalidator.go +++ b/pkg/validator/apivalidator.go @@ -30,12 +30,12 @@ import ( ) const ( - // This comes from the path: /Users/vinayada/radius/radius/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/openapi.json + // This comes from the path: /Users/vinayada/radius/radius/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/openapi.json // This spec path is parsed and this string needs to be provider/resourceType. // For UCP, the provider is UCP and since all UCP resource types are in a single json, the file is named openapi.json. // Therefore, resourceType = ucp UCPEndpointType = "ucp/openapi" - UCPApiVersion = "2022-09-01-privatepreview" + UCPApiVersion = "2023-10-01-preview" ) // Options represents the options for APIValidator. diff --git a/pkg/validator/apivalidator_test.go b/pkg/validator/apivalidator_test.go index 44d9e05d3fa..fff03c2f0ce 100644 --- a/pkg/validator/apivalidator_test.go +++ b/pkg/validator/apivalidator_test.go @@ -86,7 +86,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodGet, rootScope: "", route: operationGetRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", url: "http://localhost:8080/providers/applications.core/notfound", responseCode: http.StatusNotFound, validationErr: &v1.ErrorResponse{ @@ -101,7 +101,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: "", route: operationGetRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", url: "http://localhost:8080/providers/applications.core/operations", responseCode: http.StatusMethodNotAllowed, validationErr: &v1.ErrorResponse{ @@ -116,7 +116,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodGet, rootScope: "", route: operationGetRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", url: "http://localhost:8080/providers/applications.core/operations", responseCode: http.StatusAccepted, validationErr: nil, @@ -126,7 +126,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-valid.json", url: resourceIDUrl, responseCode: http.StatusAccepted, @@ -137,7 +137,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-valid-selfhost.json", url: resourceIDUrl, responseCode: http.StatusAccepted, @@ -148,7 +148,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodGet, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", url: resourceIDUrl, responseCode: http.StatusAccepted, validationErr: nil, @@ -158,7 +158,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodGet, rootScope: planeRootScope + resourceGroupResource, route: environmentCollectionRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", url: armResourceGroupScopedCollectionURL, responseCode: http.StatusAccepted, validationErr: nil, @@ -168,7 +168,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodGet, rootScope: planeRootScope, route: environmentCollectionRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", url: armSubscriptionScopedCollectionURL, responseCode: http.StatusAccepted, validationErr: nil, @@ -178,7 +178,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodGet, rootScope: planeRootScope + resourceGroupResource, route: environmentCollectionRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", url: ucpResourceGroupScopeCollectionURL, responseCode: http.StatusAccepted, validationErr: nil, @@ -188,7 +188,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodGet, rootScope: planeRootScope, route: environmentCollectionRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", url: ucpPlaneScopedCollectionURL, responseCode: http.StatusAccepted, validationErr: nil, @@ -198,7 +198,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodDelete, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", url: resourceIDUrl, responseCode: http.StatusAccepted, validationErr: nil, @@ -215,7 +215,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr validationErr: &v1.ErrorResponse{ Error: v1.ErrorDetails{ Code: "InvalidApiVersionParameter", - Message: "API version '2022-06-20-privatepreview' for type 'applications.core/environments' is not supported. The supported api-versions are '2022-03-15-privatepreview'.", + Message: "API version '2022-06-20-privatepreview' for type 'applications.core/environments' is not supported. The supported api-versions are '2023-10-01-preview'.", }, }, }, @@ -224,7 +224,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-invalid-missing-location.json", url: resourceIDUrl, responseCode: http.StatusBadRequest, @@ -247,7 +247,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-invalid-missing-kind.json", url: resourceIDUrl, responseCode: http.StatusBadRequest, @@ -270,7 +270,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-invalid-missing-locationandkind.json", url: resourceIDUrl, responseCode: http.StatusBadRequest, @@ -297,7 +297,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-invalid-json.json", url: resourceIDUrl, responseCode: 400, @@ -320,7 +320,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-valid.json", url: longARMResourceURL, responseCode: 400, @@ -343,7 +343,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-valid.json", url: longUCPResourceURL, responseCode: 400, @@ -366,7 +366,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-valid.json", url: underscoreARMResourceURL, responseCode: 400, @@ -389,7 +389,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-valid.json", url: underscoreUCPResourceURL, responseCode: 400, @@ -412,7 +412,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-valid.json", url: digitARMResourceURL, responseCode: 400, @@ -435,7 +435,7 @@ func runTest(t *testing.T, resourceIDUrl, targetScope, planeRootScope string, pr method: http.MethodPut, rootScope: planeRootScope + resourceGroupResource, route: environmentResourceRoute, - apiVersion: "2022-03-15-privatepreview", + apiVersion: "2023-10-01-preview", contentFilePath: "put-environments-valid.json", url: digitUCPResourceURL, responseCode: 400, diff --git a/pkg/validator/loader_test.go b/pkg/validator/loader_test.go index 0c609332e46..dbfd6062d5d 100644 --- a/pkg/validator/loader_test.go +++ b/pkg/validator/loader_test.go @@ -30,9 +30,9 @@ func Test_GetValidatorKey(t *testing.T) { version string expected string }{ - {"applications.core/environments", "2022-03-15-privatepreview", "applications.core/environments-2022-03-15-privatepreview"}, - {"applications.Core/environments", "2022-03-15-privatepreview", "applications.core/environments-2022-03-15-privatepreview"}, - {"Applications.Core/environments", "2022-03-15-privatepreview", "applications.core/environments-2022-03-15-privatepreview"}, + {"applications.core/environments", "2023-10-01-preview", "applications.core/environments-2023-10-01-preview"}, + {"applications.Core/environments", "2023-10-01-preview", "applications.core/environments-2023-10-01-preview"}, + {"Applications.Core/environments", "2023-10-01-preview", "applications.core/environments-2023-10-01-preview"}, } for _, tt := range keyTests { @@ -46,12 +46,12 @@ func Test_ParseSpecFilePath(t *testing.T) { parsed map[string]string }{ { - path: "specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/environments.json", + path: "specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/environments.json", parsed: map[string]string{ "productname": "applications", "provider": "applications.core", "state": "preview", - "version": "2022-03-15-privatepreview", + "version": "2023-10-01-preview", "resourcetype": "environments", }, }, @@ -75,7 +75,7 @@ func Test_ParseSpecFilePath(t *testing.T) { func Test_Loader(t *testing.T) { l, err := LoadSpec(context.Background(), "applications.core", swagger.SpecFiles, []string{"{rootScope:.*}"}, "rootScope") require.NoError(t, err) - v, ok := l.GetValidator("applications.core/environments", "2022-03-15-privatepreview") + v, ok := l.GetValidator("applications.core/environments", "2023-10-01-preview") require.True(t, ok) require.NotNil(t, v) } diff --git a/pkg/validator/validator_test.go b/pkg/validator/validator_test.go index 0eb8293b8b6..d9702f6c28c 100644 --- a/pkg/validator/validator_test.go +++ b/pkg/validator/validator_test.go @@ -32,7 +32,7 @@ import ( func Test_FindParam(t *testing.T) { l, err := LoadSpec(context.Background(), "applications.core", swagger.SpecFiles, []string{"/subscriptions/{subscriptionID}/resourceGroups/{rgName}"}, "rootScope") require.NoError(t, err) - v, ok := l.GetValidator("applications.core/environments", "2022-03-15-privatepreview") + v, ok := l.GetValidator("applications.core/environments", "2023-10-01-preview") require.True(t, ok) validator := v.(*validator) @@ -68,7 +68,7 @@ func Test_ToRouteParams(t *testing.T) { }) t.Run("azure subscription path", func(t *testing.T) { - req, err := http.NewRequest("", "http://radius/subscriptions/00000000-0000-0000-0000-000000000000/providers/applications.core/environments?api-version=2022-03-15-privatepreview", nil) + req, err := http.NewRequest("", "http://radius/subscriptions/00000000-0000-0000-0000-000000000000/providers/applications.core/environments?api-version=2023-10-01-preview", nil) require.NoError(t, err) rctx := chi.NewRouteContext() rctx.URLParams.Add("subscriptionID", "00000000-0000-0000-0000-000000000000") @@ -77,14 +77,14 @@ func Test_ToRouteParams(t *testing.T) { expected := middleware.RouteParams{ {Name: "rootScope", Value: "/subscriptions/00000000-0000-0000-0000-000000000000"}, - {Name: "api-version", Value: "2022-03-15-privatepreview"}, + {Name: "api-version", Value: "2023-10-01-preview"}, {Name: "subscriptionID", Value: "00000000-0000-0000-0000-000000000000"}, } require.Equal(t, expected, ps) }) t.Run("azure resource-group path", func(t *testing.T) { - req, err := http.NewRequest("", "http://radius/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/env0?api-version=2022-03-15-privatepreview", nil) + req, err := http.NewRequest("", "http://radius/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg/providers/applications.core/environments/env0?api-version=2023-10-01-preview", nil) require.NoError(t, err) rctx := chi.NewRouteContext() rctx.URLParams.Add("subscriptionID", "00000000-0000-0000-0000-000000000000") @@ -94,7 +94,7 @@ func Test_ToRouteParams(t *testing.T) { expected := middleware.RouteParams{ {Name: "rootScope", Value: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/radius-test-rg"}, - {Name: "api-version", Value: "2022-03-15-privatepreview"}, + {Name: "api-version", Value: "2023-10-01-preview"}, {Name: "subscriptionID", Value: "00000000-0000-0000-0000-000000000000"}, {Name: "environmentName", Value: "env0"}, } @@ -102,7 +102,7 @@ func Test_ToRouteParams(t *testing.T) { }) t.Run("ucp plane path", func(t *testing.T) { - req, err := http.NewRequest("", "http://radius/planes/radius/local/providers/applications.core/environments?api-version=2022-03-15-privatepreview", nil) + req, err := http.NewRequest("", "http://radius/planes/radius/local/providers/applications.core/environments?api-version=2023-10-01-preview", nil) require.NoError(t, err) rctx := chi.NewRouteContext() rctx.URLParams.Add("planeType", "radius") @@ -112,7 +112,7 @@ func Test_ToRouteParams(t *testing.T) { expected := middleware.RouteParams{ {Name: "rootScope", Value: "/planes/radius/local"}, - {Name: "api-version", Value: "2022-03-15-privatepreview"}, + {Name: "api-version", Value: "2023-10-01-preview"}, {Name: "planeType", Value: "radius"}, {Name: "planeName", Value: "local"}, } @@ -120,7 +120,7 @@ func Test_ToRouteParams(t *testing.T) { }) t.Run("ucp resource-group path", func(t *testing.T) { - req, err := http.NewRequest("", "http://radius/planes/radius/local/resourceGroups/radius-test-rg/providers/applications.core/environments/env0?api-version=2022-03-15-privatepreview", nil) + req, err := http.NewRequest("", "http://radius/planes/radius/local/resourceGroups/radius-test-rg/providers/applications.core/environments/env0?api-version=2023-10-01-preview", nil) require.NoError(t, err) rctx := chi.NewRouteContext() rctx.URLParams.Add("planeType", "radius") @@ -131,7 +131,7 @@ func Test_ToRouteParams(t *testing.T) { expected := middleware.RouteParams{ {Name: "rootScope", Value: "/planes/radius/local/resourceGroups/radius-test-rg"}, - {Name: "api-version", Value: "2022-03-15-privatepreview"}, + {Name: "api-version", Value: "2023-10-01-preview"}, {Name: "planeType", Value: "radius"}, {Name: "planeName", Value: "local"}, {Name: "environmentName", Value: "env0"}, diff --git a/swagger/doc.go b/swagger/doc.go index 276098a4ea0..2adbbdef1ec 100644 --- a/swagger/doc.go +++ b/swagger/doc.go @@ -28,7 +28,7 @@ We use OpenAPI Spec v2 as a source of truth to: OpenAPI specification files must be stored in the structured directory: - specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview + specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview ------------ ---------------------- ------- ------------------------- Product Name RP Namespace preview API version or diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_CreateOrUpdate.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_CreateOrUpdate.json index 14c050a9278..e34eb83055d 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "applicationName": "app0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ApplicationResource": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_Delete.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_Delete.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_Delete.json index fb1d0bce845..44dafd485ea 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "applicationName": "app0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_Get.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_Get.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_Get.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_Get.json index ff352ff3883..1d7e56248c8 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_Get.json @@ -3,7 +3,7 @@ "title": "Get an application resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "applicationName": "app0" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_List.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_List.json similarity index 94% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_List.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_List.json index a043784e0d7..47dd4b8e258 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_List.json @@ -3,7 +3,7 @@ "title": "Get applications by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -45,7 +45,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_ListByScope.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_ListByScope.json similarity index 89% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_ListByScope.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_ListByScope.json index 0367e5fb542..8f728b603ad 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_ListByScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_ListByScope.json @@ -3,7 +3,7 @@ "title": "Get applications by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -28,7 +28,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/applications?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/applications?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_Update.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_Update.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_Update.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_Update.json index b4dc7bc7d5c..d59b56bebe4 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Applications_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "applicationName": "app0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ApplicationResource": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_CreateOrUpdate.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_CreateOrUpdate.json index e565785399e..65816a2f8c7 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "containerName": "app0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ContainerResource": { "properties": { "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_CreateOrUpdate_BaseManifest.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_CreateOrUpdate_BaseManifest.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_CreateOrUpdate_BaseManifest.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_CreateOrUpdate_BaseManifest.json index c9198a6a577..b8dbc7abc60 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_CreateOrUpdate_BaseManifest.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_CreateOrUpdate_BaseManifest.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "containerName": "app0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ContainerResource": { "properties": { "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_Delete.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_Delete.json similarity index 85% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_Delete.json index 9a9bf28c14b..99ae7550886 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "containerName": "app0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_Get.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_Get.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_Get.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_Get.json index 371b16c101f..cdc446eb74d 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_Get.json @@ -3,7 +3,7 @@ "title": "Get an container resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "containerName": "container0" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_List.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_List.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_List.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_List.json index a19eab3370a..8312e6d76f5 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_List.json @@ -3,7 +3,7 @@ "title": "List containers at resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -96,7 +96,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/containers?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/containers?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_ListByScope.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_ListByScope.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_ListByScope.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_ListByScope.json index 48084fdec08..5fdcfdd5760 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_ListByScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Containers_ListByScope.json @@ -3,7 +3,7 @@ "title": "List containers at root scope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -99,7 +99,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/containers?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/containers?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_CreateOrUpdate.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_CreateOrUpdate.json index 1f2ba81c859..62af5e98fec 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "environmentName": "env0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "EnvironmentResource": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_DeleteEnv0.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_DeleteEnv0.json similarity index 85% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_DeleteEnv0.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_DeleteEnv0.json index 3f57144f674..0bc8914c889 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_DeleteEnv0.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_DeleteEnv0.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "environmentName": "env0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_GetEnv0.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_GetEnv0.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_GetEnv0.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_GetEnv0.json index 43070c47721..17f91750b1b 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_GetEnv0.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_GetEnv0.json @@ -3,7 +3,7 @@ "title": "Get an environment resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "environmentName": "env0" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_GetRecipeMetadata.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_GetRecipeMetadata.json similarity index 94% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_GetRecipeMetadata.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_GetRecipeMetadata.json index d17ab65f660..3ab0db80cda 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_GetRecipeMetadata.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_GetRecipeMetadata.json @@ -3,7 +3,7 @@ "title": "Get recipe metadata from environment", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "environmentName": "env0", "recipeName": "mongotest" }, diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_List.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_List.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_List.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_List.json index 639bf67f6b6..0dba7a53ee5 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_List.json @@ -3,7 +3,7 @@ "title": "Get environments by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -118,7 +118,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/environments?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/environments?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_ListByScope.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_ListByScope.json similarity index 94% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_ListByScope.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_ListByScope.json index cc9fe2cf6d5..2ad10e8dc35 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_ListByScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_ListByScope.json @@ -3,7 +3,7 @@ "title": "Get environments by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -58,7 +58,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/environments?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/environments?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_PatchEnv0.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_PatchEnv0.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_PatchEnv0.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_PatchEnv0.json index a12a1ad8e27..54298decfe0 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_PatchEnv0.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Environments_PatchEnv0.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "environmentName": "env0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "EnvironmentResource": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_CreateOrUpdate.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_CreateOrUpdate.json index 36a863f2f1d..76b4f159d16 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "extenderName": "extender0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ExtenderParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_CreateOrUpdateWithRecipe.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_CreateOrUpdateWithRecipe.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_CreateOrUpdateWithRecipe.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_CreateOrUpdateWithRecipe.json index f7b994db37e..15503ec0808 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_CreateOrUpdateWithRecipe.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_CreateOrUpdateWithRecipe.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "extenderName": "extender0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ExtenderParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_Delete.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_Delete.json similarity index 86% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_Delete.json index f8241d9c175..08aacc41cee 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "extenderName": "extender0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_Get.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_Get.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_Get.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_Get.json index a6883eaa245..5a8ddbe87a9 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_Get.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "extenderName": "extender0" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_List.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_List.json similarity index 92% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_List.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_List.json index 544a601a762..9246caa3335 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_List.json @@ -3,7 +3,7 @@ "title": "List extender resources by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -27,7 +27,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/extenders?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/extenders?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_ListByRootScope.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_ListByRootScope.json similarity index 88% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_ListByRootScope.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_ListByRootScope.json index 29aaa22970b..b5e64de39af 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_ListByRootScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List extender resources by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -27,7 +27,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/extenders?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/extenders?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_ListSecrets.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_ListSecrets.json similarity index 90% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_ListSecrets.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_ListSecrets.json index 3ba02d58b59..502d4831043 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_ListSecrets.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_ListSecrets.json @@ -5,7 +5,7 @@ "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "extenderName": "extender0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_Update.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_Update.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_Update.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_Update.json index ebdcfcd21a4..854d2f8b51d 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Extenders_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "extenderName": "extender0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ExtenderParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_CreateOrUpdate.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_CreateOrUpdate.json index cecb497c191..9d3e8c65683 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "gatewayName": "gateway0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "GatewayResource": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_Delete.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_Delete.json similarity index 84% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_Delete.json index 10c4503eb1c..f4f82c181a6 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "gatewayName": "gateway0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_Get.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_Get.json similarity index 95% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_Get.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_Get.json index e71430e547c..0e133935e50 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_Get.json @@ -3,7 +3,7 @@ "title": "Get an gateway resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "gatewayName": "gateway0" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_List.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_List.json similarity index 92% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_List.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_List.json index 35f79c6018a..72e2d4df848 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_List.json @@ -3,7 +3,7 @@ "title": "List gateway resources", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -30,7 +30,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/gateways?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/gateways?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_ListByScope.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_ListByScope.json similarity index 93% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_ListByScope.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_ListByScope.json index 7e69b93d1fb..d0ae6fe7d2e 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_ListByScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Gateways_ListByScope.json @@ -3,7 +3,7 @@ "title": "List gateway resources by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -52,7 +52,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/gateways?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/gateways?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_CreateOrUpdate.json similarity index 94% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_CreateOrUpdate.json index 41f0d241024..43774c36861 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "httpRouteName": "route0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "HttpRouteResource": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_Delete.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_Delete.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_Delete.json index 0a2aa565419..18576a8128d 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "httpRouteName": "route0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_Get.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_Get.json similarity index 93% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_Get.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_Get.json index e9e24114615..a05a33f0542 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_Get.json @@ -3,7 +3,7 @@ "title": "Get a httpRoutes resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "httpRouteName": "route0" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_List.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_List.json similarity index 92% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_List.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_List.json index 134bef7b10c..ba6942a4701 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_List.json @@ -3,7 +3,7 @@ "title": "List httpRoutes resources by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -28,7 +28,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/httproutes?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/httproutes?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_ListByScope.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_ListByScope.json similarity index 89% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_ListByScope.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_ListByScope.json index cd929b0da15..7fa44644e92 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_ListByScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_ListByScope.json @@ -3,7 +3,7 @@ "title": "List httpRoutes resources by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -28,7 +28,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/httproutes?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/httproutes?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_Update.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_Update.json similarity index 94% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_Update.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_Update.json index 46cd2cf0745..78aa9a4126a 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/HttpRoutes_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "httpRouteName": "route0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "HttpRouteResource": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Operations_List.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Operations_List.json similarity index 99% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Operations_List.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Operations_List.json index d5a1aaa939b..298ccc61764 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Operations_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Operations_List.json @@ -2,7 +2,7 @@ "operationId": "Operations_List", "title": "Get the operations for the Applications.Core resource provider", "parameters": { - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_CreateOrUpdate.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_CreateOrUpdate.json index 8350409c65a..e5292579194 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "secretazkv", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SecretStoreResource": { "location": "global", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_CreateOrUpdateValueFrom.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_CreateOrUpdateValueFrom.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_CreateOrUpdateValueFrom.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_CreateOrUpdateValueFrom.json index 470379feb98..6a1e7daaa87 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_CreateOrUpdateValueFrom.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_CreateOrUpdateValueFrom.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "secretazkv", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SecretStoreResource": { "location": "global", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Delete.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Delete.json similarity index 85% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Delete.json index 2511b390564..464984749d6 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "volumeName": "keyvault0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Get.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Get.json similarity index 94% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Get.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Get.json index 4ed53c64f24..32a9ff7fcf2 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Get.json @@ -3,7 +3,7 @@ "title": "Get a secret store", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "secretStoreName": "secret0" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Get_AzureKeyVault.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Get_AzureKeyVault.json similarity index 96% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Get_AzureKeyVault.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Get_AzureKeyVault.json index 635c47fbfb6..8f5c082c708 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Get_AzureKeyVault.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Get_AzureKeyVault.json @@ -3,7 +3,7 @@ "title": "Get a secret store for Azure Keyvault", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "secretStoreName": "secretazkv" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_List.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_List.json similarity index 95% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_List.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_List.json index 3e66a39aba9..4d95d3f6653 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_List.json @@ -3,7 +3,7 @@ "title": "List secret stores", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -53,7 +53,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/secretStores?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/secretStores?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_ListSecrets.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_ListSecrets.json similarity index 89% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_ListSecrets.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_ListSecrets.json index b5e9ed9e71b..04d8bb7175a 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_ListSecrets.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_ListSecrets.json @@ -3,7 +3,7 @@ "title": "List secret stores", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "secretStoreName": "secret0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Update.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Update.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Update.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Update.json index c04faeab9e3..5b8e00b362d 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/SecretStores_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "secretazkv", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SecretStoreResource": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_CreateOrUpdate.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_CreateOrUpdate.json index db34af30744..39d41f18586 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "volumeName": "keyvault0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "HttpRouteResource": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_Delete.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_Delete.json similarity index 84% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_Delete.json index ec812ffa7e4..2540fbbc956 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "volumeName": "keyvault0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_Get.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_Get.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_Get.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_Get.json index 5d3c065c62d..65624ce9c88 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_Get.json @@ -3,7 +3,7 @@ "title": "Get a volume", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "volumeName": "keyvault0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_List.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_List.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_List.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_List.json index f52dc9ae535..0bf504f3b85 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_List.json @@ -3,7 +3,7 @@ "title": "List volumes by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -93,7 +93,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/volumes?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/volumes?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_ListByScope.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_ListByScope.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_ListByScope.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_ListByScope.json index 4d14bacbc3f..530811cb18e 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_ListByScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_ListByScope.json @@ -3,7 +3,7 @@ "title": "List volumes by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -94,7 +94,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/volumes?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/volumes?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_Update.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_Update.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_Update.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_Update.json index 413bb773d34..a8c25aa466c 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/examples/Volumes_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "volumeName": "keyvault0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "HttpRouteResource": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/openapi.json b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/openapi.json similarity index 99% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/openapi.json rename to swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/openapi.json index 2cb9c487757..ca851d19e3f 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/openapi.json +++ b/swagger/specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/openapi.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Applications.Core Management APIs", - "version": "2022-03-15-privatepreview", + "version": "2023-10-01-preview", "description": "REST APIs for Applications.Core", "x-typespec-generated": [ { @@ -4961,16 +4961,16 @@ "type": "string", "description": "Supported API versions for the Applications.Core resource provider.", "enum": [ - "2022-03-15-privatepreview" + "2023-10-01-preview" ], "x-ms-enum": { "name": "Versions", "modelAsString": true, "values": [ { - "name": "v2022_03_15_privatepreview", - "value": "2022-03-15-privatepreview", - "description": "2022-03-15-privatepreview" + "name": "v2023_10_01_preview", + "value": "2023-10-01-preview", + "description": "2023-10-01-preview" } ] } diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_CreateOrUpdate.json similarity index 98% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_CreateOrUpdate.json index bcc72c4ab8f..12d7590b534 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "pubSubBrokerName": "daprpubsub0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "PubSubBrokerParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_CreateOrUpdateWithRecipe.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_CreateOrUpdateWithRecipe.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_CreateOrUpdateWithRecipe.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_CreateOrUpdateWithRecipe.json index 83391aca675..dc6c0dd2d2a 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_CreateOrUpdateWithRecipe.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_CreateOrUpdateWithRecipe.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "pubSubBrokerName": "daprpubsub0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "PubSubBrokerParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_Delete.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_Delete.json similarity index 86% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_Delete.json index be9fe774636..1a2b2092807 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup/resourceGroups/testGroup", "pubSubBrokerName": "daprpubsub0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_Get.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_Get.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_Get.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_Get.json index eaaad281b03..a42b3a0e4a5 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_Get.json @@ -3,7 +3,7 @@ "title": "Get a PubSubBroker resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "pubSubBrokerName": "daprpubsub0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_List.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_List.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_List.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_List.json index 28213b5b371..8375beaa8bb 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_List.json @@ -3,7 +3,7 @@ "title": "List a PubSubBroker resource by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -66,7 +66,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/pubSubBrokers?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/pubSubBrokers?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_ListByRootScope.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_ListByRootScope.json similarity index 93% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_ListByRootScope.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_ListByRootScope.json index a10cf160c70..f339de48399 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_ListByRootScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List a PubSubBroker resource by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -49,7 +49,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/pubSubBrokers?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/pubSubBrokers?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_Update.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_Update.json similarity index 98% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_Update.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_Update.json index f22de307738..d5c98f29d1d 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/PubSubBrokers_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "pubSubBrokerName": "daprpubsub0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "PubSubBrokerParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_CreateOrUpdate.json similarity index 98% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_CreateOrUpdate.json index 7cdd6b3396a..9fd05878729 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "daprsecretstore0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SecretStoreParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_Delete.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_Delete.json similarity index 85% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_Delete.json index d00bd593fe2..0744553b204 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "daprsecretstore0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_Get.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_Get.json similarity index 95% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_Get.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_Get.json index 38340c89f72..33e674b2903 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_Get.json @@ -3,7 +3,7 @@ "title": "Get a SecretStore resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "secretStoreName": "daprsecretstore0" }, "responses": { diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_List.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_List.json similarity index 95% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_List.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_List.json index 4c2a74ee3e6..fc273195f1c 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_List.json @@ -3,7 +3,7 @@ "title": "List SecretStore resources by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -44,7 +44,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/secretStores?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/secretStores?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_ListByRootScope.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_ListByRootScope.json similarity index 93% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_ListByRootScope.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_ListByRootScope.json index b66685650bd..b01f25fdfb1 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_ListByRootScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List SecretStore resources by rootScope", "parameters": { "rootScope": "/planes/radius/local/resourceGroups", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -44,7 +44,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/secretStores?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/secretStores?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_Update.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_Update.json similarity index 98% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_Update.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_Update.json index 974e788940d..319e3d8dc54 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/SecretStores_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "daprsecretstore0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SecretStoreParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_CreateOrUpdate.json similarity index 98% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_CreateOrUpdate.json index 48912c21865..2baaa6b55b1 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "stateStoreName": "daprstatestore0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "StateStoreParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_CreateOrUpdateWithRecipe.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_CreateOrUpdateWithRecipe.json similarity index 97% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_CreateOrUpdateWithRecipe.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_CreateOrUpdateWithRecipe.json index df781c63f4c..149fec66728 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_CreateOrUpdateWithRecipe.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_CreateOrUpdateWithRecipe.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "stateStoreName": "daprstatestore0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "StateStoreParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_Delete.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_Delete.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_Delete.json index f65fe45f3a6..bfe774ce31f 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "stateStoreName": "daprstatestore0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_Get.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_Get.json similarity index 95% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_Get.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_Get.json index f3c635f3aed..1605c358111 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_Get.json @@ -3,7 +3,7 @@ "title": "Get a StateStore resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "stateStoreName": "daprstatestore0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_List.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_List.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_List.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_List.json index c6a84c66f8f..8db892bac72 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_List.json @@ -3,7 +3,7 @@ "title": "List StateStore resources by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -85,7 +85,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/stateStores?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/stateStores?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_ListByRootScope.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_ListByRootScope.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_ListByRootScope.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_ListByRootScope.json index faa2d33d608..2c98dc98d6d 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_ListByRootScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List StateStore resources by rootScope", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -71,7 +71,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/stateStores?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/stateStores?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_Update.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_Update.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_Update.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_Update.json index a93dca0ae81..4ffd10fdedc 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/examples/StateStores_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "stateStoreName": "daprstatestore0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "StateStoreParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/openapi.json b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/openapi.json similarity index 99% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/openapi.json rename to swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/openapi.json index d80cf1e782f..69eeb0d50fc 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/openapi.json +++ b/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/openapi.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Applications.Dapr Resource Management APIs", - "version": "2022-03-15-privatepreview", + "version": "2023-10-01-preview", "description": "REST API for Applications.Dapr", "x-typespec-generated": [ { @@ -1670,16 +1670,16 @@ "type": "string", "description": "Supported API versions for the Applications.Dapr resource provider.", "enum": [ - "2022-03-15-privatepreview" + "2023-10-01-preview" ], "x-ms-enum": { "name": "Versions", "modelAsString": true, "values": [ { - "name": "v2022_03_15_privatepreview", - "value": "2022-03-15-privatepreview", - "description": "2022-03-15-privatepreview" + "name": "v2023_10_01_preview", + "value": "2023-10-01-preview", + "description": "2023-10-01-preview" } ] } diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_CreateOrUpdateRecipe.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_CreateOrUpdateRecipe.json similarity index 97% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_CreateOrUpdateRecipe.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_CreateOrUpdateRecipe.json index 42e4018d113..392896fcc8c 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_CreateOrUpdateRecipe.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_CreateOrUpdateRecipe.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "mongoDatabaseName": "mongo0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "MongoDatabaseParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_CreateOrUpdateValues.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_CreateOrUpdateValues.json similarity index 98% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_CreateOrUpdateValues.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_CreateOrUpdateValues.json index 0d6be4423b0..897dc206766 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_CreateOrUpdateValues.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_CreateOrUpdateValues.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "mongoDatabaseName": "mongo0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "MongoDatabaseParameters": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_Delete.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_Delete.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_Delete.json index c5f7221cbf2..752653650f7 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "mongoDatabaseName": "mongo0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_Get.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_Get.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_Get.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_Get.json index 79e1b7ae906..a0a7b8f5d0c 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_Get.json @@ -3,7 +3,7 @@ "title": "Get a MongoDatabase resource", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "mongoDatabaseName": "mongo0" }, "responses": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_List.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_List.json similarity index 96% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_List.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_List.json index 0739f0cbb0f..c280d951c50 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_List.json @@ -3,7 +3,7 @@ "title": "List MongoDatabase resources by resource group", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -66,7 +66,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/mongoDatabases?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/mongoDatabases?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_ListByRootScope.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_ListByRootScope.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_ListByRootScope.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_ListByRootScope.json index 4113d8a7078..1aa71c6e079 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_ListByRootScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List MongoDatabase resources by rootScope", "parameters": { "rootScope": "planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -67,7 +67,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/mongoDatabases?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/mongoDatabases?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_ListSecrets.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_ListSecrets.json similarity index 90% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_ListSecrets.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_ListSecrets.json index 504f90ffb26..7f894c4e9bd 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_ListSecrets.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_ListSecrets.json @@ -3,7 +3,7 @@ "title": "List the secrets of a MongoDatabase resource", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "mongoDatabaseName": "mongo0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_Update.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_Update.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_Update.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_Update.json index d3461506a77..a9d61d4d0e9 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/MongoDatabases_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "mongoDatabaseName": "mongo0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "MongoDatabaseParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_CreateOrUpdate.json similarity index 98% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_CreateOrUpdate.json index 003bc22fc36..57510928650 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "redisCacheName": "redis0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "RedisCacheParameters": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_CreateOrUpdateRecipe.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_CreateOrUpdateRecipe.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_CreateOrUpdateRecipe.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_CreateOrUpdateRecipe.json index 838f7332d16..64512247560 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_CreateOrUpdateRecipe.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_CreateOrUpdateRecipe.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "redisCacheName": "redis0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "RedisCacheParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_CreateOrUpdateValues.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_CreateOrUpdateValues.json similarity index 98% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_CreateOrUpdateValues.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_CreateOrUpdateValues.json index 417b0a25888..88d9dcfb89f 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_CreateOrUpdateValues.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_CreateOrUpdateValues.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "redisCacheName": "redis0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "RedisCacheParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_Delete.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_Delete.json similarity index 85% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_Delete.json index dbedada922a..e468f72cd66 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "redisCacheName": "redis0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_Get.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_Get.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_Get.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_Get.json index 0bfe5aad6fd..aca26b7c225 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_Get.json @@ -3,7 +3,7 @@ "title": "Get a RedisCache resource", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "redisCacheName": "redis0" }, "responses": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_List.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_List.json similarity index 96% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_List.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_List.json index 20eff8c4336..21e6ae05926 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_List.json @@ -3,7 +3,7 @@ "title": "List RedisCache resources by resource group", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -62,7 +62,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/redisCaches?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/redisCaches?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_ListByRootScope.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_ListByRootScope.json similarity index 95% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_ListByRootScope.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_ListByRootScope.json index 7c74f8ef116..ecf024fb104 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_ListByRootScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List RedisCache resources by rootScope", "parameters": { "rootScope": "planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -61,7 +61,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/redisCaches?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/redisCaches?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_ListSecrets.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_ListSecrets.json similarity index 91% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_ListSecrets.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_ListSecrets.json index 7e0f2d95471..185cec6a7cd 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_ListSecrets.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_ListSecrets.json @@ -5,7 +5,7 @@ "rootScope": "planes/radius/local/resourceGroups/testGroup", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "redisCacheName": "redis0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_Update.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_Update.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_Update.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_Update.json index 04d8bed899b..f1ac392db3f 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/RedisCaches_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "redisCacheName": "redis0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "RedisCacheParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_CreateOrUpdate.json similarity index 97% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_CreateOrUpdate.json index fecc16494ad..7f4a9de8f22 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "sqlDatabaseName": "sql0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SQLDatabaseParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_Delete.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_Delete.json similarity index 85% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_Delete.json index f703412f871..a092eecce33 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "sqlDatabaseName": "sql0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_Get.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_Get.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_Get.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_Get.json index bf6cc2f5818..2de248c7b27 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_Get.json @@ -3,7 +3,7 @@ "title": "Get a SqlDatabase resource", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "sqlDatabaseName": "sql0" }, "responses": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_List.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_List.json similarity index 96% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_List.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_List.json index 928bbd95f90..04ca8b7bbf8 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_List.json @@ -3,7 +3,7 @@ "title": "List SqlDatabases resources by resource group", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -60,7 +60,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/sqlDatabases?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/sqlDatabases?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_ListByRootScope.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_ListByRootScope.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_ListByRootScope.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_ListByRootScope.json index 1f16e6e489d..9c6de5f03ac 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_ListByRootScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List SqlDatabases resources by rootScope", "parameters": { "rootScope": "planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -65,7 +65,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/sqlDatabases?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/sqlDatabases?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_Update.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_Update.json similarity index 97% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_Update.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_Update.json index 52e5223523a..13d60114477 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/examples/SQLDatabases_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "sqlDatabaseName": "sql0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SQLDatabaseParameters": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/openapi.json b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/openapi.json similarity index 99% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/openapi.json rename to swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/openapi.json index dc2fd9552e0..1dc96329803 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/openapi.json +++ b/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/openapi.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Applications.Datastores Resource Management APIs", - "version": "2022-03-15-privatepreview", + "version": "2023-10-01-preview", "description": "REST APIs for Applications.Datastores", "x-typespec-generated": [ { @@ -1967,16 +1967,16 @@ "type": "string", "description": "Supported API versions for the Applications.Databases resource provider.", "enum": [ - "2022-03-15-privatepreview" + "2023-10-01-preview" ], "x-ms-enum": { "name": "Versions", "modelAsString": true, "values": [ { - "name": "v2022_03_15_privatepreview", - "value": "2022-03-15-privatepreview", - "description": "2022-03-15-privatepreview" + "name": "v2023_10_01_preview", + "value": "2023-10-01-preview", + "description": "2023-10-01-preview" } ] } diff --git a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_CreateOrUpdate.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_CreateOrUpdate.json rename to swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_CreateOrUpdate.json index cdec52a79e2..0b51ad6fdbc 100644 --- a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_CreateOrUpdate.json +++ b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "rabbitMQQueueName": "rabbitmq0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "RabbitMQQueueParameters": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_Delete.json b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_Delete.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_Delete.json rename to swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_Delete.json index 03da6f1c26e..d78bb91dd57 100644 --- a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_Delete.json +++ b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "rabbitMQQueueName": "rabbitmq0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_Get.json b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_Get.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_Get.json rename to swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_Get.json index d3e9364fc31..ddd1cb632dd 100644 --- a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_Get.json +++ b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_Get.json @@ -3,7 +3,7 @@ "title": "Get a RabbitMQQueue resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "rabbitMQQueueName": "rabbitmq0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_List.json b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_List.json similarity index 93% rename from swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_List.json rename to swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_List.json index 3e1c12abe36..83383819e0e 100644 --- a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_List.json +++ b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_List.json @@ -3,7 +3,7 @@ "title": "List RabbitMQQueue resources by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -40,7 +40,7 @@ } } ], - "nextLink": "https://serviceRoot/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup/providers/Applications.Messaging/rabbitMQQueues?api-version=2022-01-25-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup/providers/Applications.Messaging/rabbitMQQueues?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_ListByRootScope.json b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_ListByRootScope.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_ListByRootScope.json rename to swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_ListByRootScope.json index d24590182c2..d932a9a7a37 100644 --- a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_ListByRootScope.json +++ b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List RabbitMQQueue resources by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -43,7 +43,7 @@ } } ], - "nextLink": "https://serviceRoot/00000000-0000-0000-0000-000000000000/providers/Applications.Messaging/rabbitMQQueues?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/00000000-0000-0000-0000-000000000000/providers/Applications.Messaging/rabbitMQQueues?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_ListSecrets.json b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_ListSecrets.json similarity index 88% rename from swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_ListSecrets.json rename to swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_ListSecrets.json index e0d24405c66..686ec415e05 100644 --- a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_ListSecrets.json +++ b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_ListSecrets.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "resourceGroupName": "testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "rabbitMQQueueName": "rabbitmq0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_Update.json b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_Update.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_Update.json rename to swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_Update.json index a845925ed0f..61dff0e3234 100644 --- a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/examples/RabbitMQQueues_Update.json +++ b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/examples/RabbitMQQueues_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "rabbitMQQueueName": "rabbitmq0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "rabbitMQQueueParameters": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/openapi.json b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/openapi.json similarity index 99% rename from swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/openapi.json rename to swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/openapi.json index 6d094818df1..c8fea81d011 100644 --- a/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/openapi.json +++ b/swagger/specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/openapi.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Applications.Messaging Resource Management APIs", - "version": "2022-03-15-privatepreview", + "version": "2023-10-01-preview", "description": "REST APIs for Applications.Messaging", "x-typespec-generated": [ { @@ -888,16 +888,16 @@ "type": "string", "description": "Supported API versions for the Applications.Messaging resource provider.", "enum": [ - "2022-03-15-privatepreview" + "2023-10-01-preview" ], "x-ms-enum": { "name": "Versions", "modelAsString": true, "values": [ { - "name": "v2022_03_15_privatepreview", - "value": "2022-03-15-privatepreview", - "description": "2022-03-15-privatepreview" + "name": "v2023_10_01_preview", + "value": "2023-10-01-preview", + "description": "2023-10-01-preview" } ] } diff --git a/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_CreateOrUpdate.json new file mode 100644 index 00000000000..4b6cf1b500c --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_CreateOrUpdate.json @@ -0,0 +1,30 @@ +{ + "operationId": "TestAsyncResources_CreateOrUpdate", + "title": "Create or Update TestAsyncResource resources", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testAsyncResourceName": "resource0", + "api-version": "2022-08-19-preview", + "TestAsyncResource": { + "location": "global", + "properties": { + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_Delete.json b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_Delete.json new file mode 100644 index 00000000000..dc4fd265efa --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_Delete.json @@ -0,0 +1,14 @@ +{ + "operationId": "TestAsyncResources_Delete", + "title": "Delete a TestAsyncResource resource", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testAsyncResourceName": "resource0", + "api-version": "2022-08-19-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_Get.json b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_Get.json new file mode 100644 index 00000000000..8c4f351bc30 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_Get.json @@ -0,0 +1,22 @@ +{ + "operationId": "TestAsyncResources_Get", + "title": "Get a TestAsyncResource resource", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testAsyncResourceName": "resource0", + "api-version": "2022-08-19-preview" + }, + "responses": { + "200": { + "body": { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_List.json b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_List.json new file mode 100644 index 00000000000..7047cc5ad3d --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_List.json @@ -0,0 +1,35 @@ +{ + "operationId": "TestAsyncResources_ListByScope", + "title": "List TestAsyncResource resources by resourcegroup", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + }, + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource1", + "name": "resource1", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + } + ], + "nextLink": "https://serviceRoot/planes/radius/local/providers/Test.Resource/testAsyncResources?api-version=2022-08-19-preview&$skiptoken=X'12345'" + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_ListByScope.json b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_ListByScope.json new file mode 100644 index 00000000000..e76c6e46f3a --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_ListByScope.json @@ -0,0 +1,35 @@ +{ + "operationId": "TestAsyncResources_ListByScope", + "title": "List TestAsyncResource resources at root scope", + "parameters": { + "rootScope": "/planes/radius/local", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + }, + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource1", + "name": "resource1", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + } + ], + "nextLink": "https://serviceRoot/planes/radius/local/providers/Test.Resource/testAsyncResources?api-version=2022-08-19-preview&$skiptoken=X'12345'" + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_Update.json b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_Update.json new file mode 100644 index 00000000000..e23e021d595 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/examples/TestAsyncResource_Update.json @@ -0,0 +1,30 @@ +{ + "operationId": "TestAsyncResources_Update", + "title": "Update TestAsyncResource resources", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testSyncResourceName": "resource0", + "api-version": "2022-08-19-preview", + "TestSyncResource": { + "location": "global", + "properties": { + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/openapi.json b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/openapi.json new file mode 100644 index 00000000000..0479c3f9534 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/preview/2022-08-19-preview/openapi.json @@ -0,0 +1,744 @@ +{ + "swagger": "2.0", + "info": { + "title": "Test.Resource Resource Management APIs", + "version": "2022-08-19-preview", + "description": "REST APIs for Test.Resource", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "TestAsyncResources" + } + ], + "paths": { + "/{rootScope}/providers/Test.Resource/testAsyncResources": { + "get": { + "operationId": "TestAsyncResources_ListByScope", + "tags": [ + "TestAsyncResources" + ], + "description": "List TestAsyncResource resources by Scope", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestAsyncResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List TestAsyncResource resources by resourcegroup": { + "$ref": "./examples/TestAsyncResource_List.json" + }, + "List TestAsyncResource resources at root scope": { + "$ref": "./examples/TestAsyncResource_ListByScope.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{rootScope}/providers/Test.Resource/testAsyncResources/{testAsyncResourceName}": { + "get": { + "operationId": "TestAsyncResources_Get", + "tags": [ + "TestAsyncResources" + ], + "description": "Get a TestAsyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testAsyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestAsyncResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a TestAsyncResource resource": { + "$ref": "./examples/TestAsyncResource_Get.json" + } + } + }, + "put": { + "operationId": "TestAsyncResources_CreateOrUpdate", + "tags": [ + "TestAsyncResources" + ], + "description": "Create a TestAsyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testAsyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/TestAsyncResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'TestAsyncResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/TestAsyncResource" + } + }, + "201": { + "description": "Resource 'TestAsyncResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/TestAsyncResource" + }, + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update TestAsyncResource resources": { + "$ref": "./examples/TestAsyncResource_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "TestAsyncResources_Update", + "tags": [ + "TestAsyncResources" + ], + "description": "Update a TestAsyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testAsyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/TestAsyncResourceUpdate" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestAsyncResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update TestAsyncResource resources": { + "$ref": "./examples/TestAsyncResource_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "TestAsyncResources_Delete", + "tags": [ + "TestAsyncResources" + ], + "description": "Delete a TestAsyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testAsyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a TestAsyncResource resource": { + "$ref": "./examples/TestAsyncResource_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Test.Resource/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "EnvironmentCompute": { + "type": "object", + "description": "Represents backing compute resource", + "properties": { + "kind": { + "type": "string", + "description": "Discriminator property for EnvironmentCompute." + }, + "resourceId": { + "type": "string", + "description": "The resource id of the compute resource for application environment." + }, + "identity": { + "$ref": "#/definitions/IdentitySettings", + "description": "Configuration for supported external identity providers" + } + }, + "discriminator": "kind", + "required": [ + "kind" + ] + }, + "IdentitySettingKind": { + "type": "string", + "description": "IdentitySettingKind is the kind of supported external identity setting", + "enum": [ + "undefined", + "azure.com.workload" + ], + "x-ms-enum": { + "name": "IdentitySettingKind", + "modelAsString": true, + "values": [ + { + "name": "undefined", + "value": "undefined", + "description": "undefined identity" + }, + { + "name": "azure.com.workload", + "value": "azure.com.workload", + "description": "azure ad workload identity" + } + ] + } + }, + "IdentitySettings": { + "type": "object", + "description": "IdentitySettings is the external identity setting.", + "properties": { + "kind": { + "$ref": "#/definitions/IdentitySettingKind", + "description": "kind of identity setting" + }, + "oidcIssuer": { + "type": "string", + "description": "The URI for your compute platform's OIDC issuer" + }, + "resource": { + "type": "string", + "description": "The resource ID of the provisioned identity" + } + }, + "required": [ + "kind" + ] + }, + "KubernetesCompute": { + "type": "object", + "description": "The Kubernetes compute configuration", + "properties": { + "namespace": { + "type": "string", + "description": "The namespace to use for the environment." + } + }, + "required": [ + "namespace" + ], + "allOf": [ + { + "$ref": "#/definitions/EnvironmentCompute" + } + ], + "x-ms-discriminator-value": "kubernetes" + }, + "OutputResource": { + "type": "object", + "description": "Properties of an output resource.", + "properties": { + "localId": { + "type": "string", + "description": "The logical identifier scoped to the owning Radius resource. This is only needed or used when a resource has a dependency relationship. LocalIDs do not have any particular format or meaning beyond being compared to determine dependency relationships." + }, + "id": { + "type": "string", + "description": "The UCP resource ID of the underlying resource." + }, + "radiusManaged": { + "type": "boolean", + "description": "Determines whether Radius manages the lifecycle of the underlying resource." + } + } + }, + "ProvisioningState": { + "type": "string", + "description": "Provisioning state of the portable resource at the time the operation was called", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Updating", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "The resource is being provisioned" + }, + { + "name": "Updating", + "value": "Updating", + "description": "The resource is updating" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "The resource is being deleted" + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The resource create request has been accepted" + } + ] + }, + "readOnly": true + }, + "ResourceStatus": { + "type": "object", + "description": "Status of a resource.", + "properties": { + "compute": { + "$ref": "#/definitions/EnvironmentCompute", + "description": "The compute resource associated with the resource." + }, + "outputResources": { + "type": "array", + "description": "Properties of an output resource", + "items": { + "$ref": "#/definitions/OutputResource" + }, + "x-ms-identifiers": [] + } + } + }, + "TestAsyncResource": { + "type": "object", + "description": "The TestAsyncResource which implements asynchornous API.", + "properties": { + "properties": { + "$ref": "#/definitions/TestAsyncResourceProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "TestAsyncResourceListResult": { + "type": "object", + "description": "The response of a TestAsyncResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The TestAsyncResource items on this page", + "items": { + "$ref": "#/definitions/TestAsyncResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "TestAsyncResourceProperties": { + "type": "object", + "description": "TestAsyncResource properties", + "properties": { + "environment": { + "type": "string", + "description": "Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)" + }, + "application": { + "type": "string", + "description": "Fully qualified resource ID for the application that the portable resource is consumed by" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the asynchronous operation.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/ResourceStatus", + "description": "Status of a resource.", + "readOnly": true + }, + "property1": { + "type": "string", + "description": "The property1 of TestASyncResource" + } + }, + "required": [ + "application", + "property1" + ] + }, + "TestAsyncResourceUpdate": { + "type": "object", + "description": "The type used for update operations of the TestAsyncResource.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/TestAsyncResourceUpdateProperties", + "x-ms-client-flatten": true + } + } + }, + "TestAsyncResourceUpdateProperties": { + "type": "object", + "description": "The updatable properties of the TestAsyncResource.", + "properties": { + "environment": { + "type": "string", + "description": "Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)" + }, + "application": { + "type": "string", + "description": "Fully qualified resource ID for the application that the portable resource is consumed by" + }, + "property1": { + "type": "string", + "description": "The property1 of TestASyncResource" + } + } + }, + "TestSyncResource": { + "type": "object", + "description": "The TestSyncResource type.", + "properties": { + "properties": { + "$ref": "#/definitions/TestSyncResourceProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "TestSyncResourceProperties": { + "type": "object", + "description": "TestSyncResource properties", + "properties": { + "environment": { + "type": "string", + "description": "Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)" + }, + "application": { + "type": "string", + "description": "Fully qualified resource ID for the application that the portable resource is consumed by" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the asynchronous operation.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/ResourceStatus", + "description": "Status of a resource.", + "readOnly": true + }, + "property1": { + "type": "string", + "description": "The property1 of TestSyncResource" + } + }, + "required": [ + "application", + "property1" + ] + }, + "Versions": { + "type": "string", + "description": "Supported API versions for the Test.Resource resource provider.", + "enum": [ + "2022-08-19-preview", + "2023-08-19" + ], + "x-ms-enum": { + "name": "Versions", + "modelAsString": true, + "values": [ + { + "name": "v2022_08_19_preview", + "value": "2022-08-19-preview", + "description": "2022-08-19-preview" + }, + { + "name": "v2023_08_19", + "value": "2023-08-19", + "description": "2023-08-19" + } + ] + } + } + }, + "parameters": { + "RootScopeParameter": { + "name": "rootScope", + "in": "path", + "description": "The scope in which the resource is present. UCP Scope is /planes/{planeType}/{planeName}/resourceGroup/{resourcegroupID} and Azure resource scope is /subscriptions/{subscriptionID}/resourceGroup/{resourcegroupID}", + "required": true, + "type": "string", + "minLength": 1, + "x-ms-parameter-location": "client", + "x-ms-skip-url-encoding": true + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_CreateOrUpdate.json new file mode 100644 index 00000000000..ab9354729d4 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_CreateOrUpdate.json @@ -0,0 +1,30 @@ +{ + "operationId": "TestAsyncResources_CreateOrUpdate", + "title": "Create or Update TestAsyncResource resources", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testAsyncResourceName": "resource0", + "api-version": "2023-08-19", + "TestAsyncResource": { + "location": "global", + "properties": { + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_Delete.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_Delete.json new file mode 100644 index 00000000000..bf27a5e0501 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_Delete.json @@ -0,0 +1,14 @@ +{ + "operationId": "TestAsyncResources_Delete", + "title": "Delete a TestAsyncResource resource", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testAsyncResourceName": "resource0", + "api-version": "2023-08-19" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_Get.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_Get.json new file mode 100644 index 00000000000..be851ac7066 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_Get.json @@ -0,0 +1,22 @@ +{ + "operationId": "TestAsyncResources_Get", + "title": "Get a TestAsyncResource resource", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testAsyncResourceName": "resource0", + "api-version": "2023-08-19" + }, + "responses": { + "200": { + "body": { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_List.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_List.json new file mode 100644 index 00000000000..3dee519fa01 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_List.json @@ -0,0 +1,35 @@ +{ + "operationId": "TestAsyncResources_ListByScope", + "title": "List TestAsyncResource resources by resourcegroup", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + }, + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource1", + "name": "resource1", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + } + ], + "nextLink": "https://serviceRoot/planes/radius/local/providers/Test.Resource/testAsyncResources?api-version=2023-08-19&$skiptoken=X'12345'" + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_ListByScope.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_ListByScope.json new file mode 100644 index 00000000000..437c8a8f411 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_ListByScope.json @@ -0,0 +1,35 @@ +{ + "operationId": "TestAsyncResources_ListByScope", + "title": "List TestAsyncResource resources at root scope", + "parameters": { + "rootScope": "/planes/radius/local", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + }, + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource1", + "name": "resource1", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + } + ], + "nextLink": "https://serviceRoot/planes/radius/local/providers/Test.Resource/testAsyncResources?api-version=2023-08-19&$skiptoken=X'12345'" + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_Update.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_Update.json new file mode 100644 index 00000000000..2c1ff5c348e --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestAsyncResource_Update.json @@ -0,0 +1,30 @@ +{ + "operationId": "TestAsyncResources_Update", + "title": "Update TestAsyncResource resources", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testSyncResourceName": "resource0", + "api-version": "2023-08-19", + "TestSyncResource": { + "location": "global", + "properties": { + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testAsyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testAsyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_CreateOrUpdate.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_CreateOrUpdate.json new file mode 100644 index 00000000000..d449d53a129 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_CreateOrUpdate.json @@ -0,0 +1,30 @@ +{ + "operationId": "TestSyncResources_CreateOrUpdate", + "title": "Create or Update TestSyncResource resources", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testSyncResourceName": "resource0", + "api-version": "2023-08-19", + "TestSyncResource": { + "location": "global", + "properties": { + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testSyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testSyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_Get.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_Get.json new file mode 100644 index 00000000000..a3b3d189328 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_Get.json @@ -0,0 +1,22 @@ +{ + "operationId": "TestSyncResources_Get", + "title": "Get a TestSyncResources resource", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testSyncResourceName": "resource0", + "api-version": "2023-08-19" + }, + "responses": { + "200": { + "body": { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testSyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testSyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_List.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_List.json new file mode 100644 index 00000000000..2738f17a34b --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_List.json @@ -0,0 +1,35 @@ +{ + "operationId": "TestSyncResources_ListByScope", + "title": "List TestSyncResource resources by resourcegroup", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "api-version": "2023-03-15-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testSyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testSyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + }, + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testSyncResources/resource1", + "name": "resource1", + "type": "Test.Resource/testSyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + } + ], + "nextLink": "https://serviceRoot/planes/radius/local/providers/Test.Resource/testSyncResources?api-version=2023-08-19&$skiptoken=X'12345'" + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_ListByScope.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_ListByScope.json new file mode 100644 index 00000000000..78a0e588033 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_ListByScope.json @@ -0,0 +1,35 @@ +{ + "operationId": "TestSyncResources_ListByScope", + "title": "List TestSyncResource resources at root scope", + "parameters": { + "rootScope": "/planes/radius/local", + "api-version": "2023-03-15-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testSyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testSyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + }, + { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testSyncResources/resource1", + "name": "resource1", + "type": "Test.Resource/testSyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0" + } + } + ], + "nextLink": "https://serviceRoot/planes/radius/local/providers/Test.Resource/testSyncResources?api-version=2023-08-19&$skiptoken=X'12345'" + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_Update.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_Update.json new file mode 100644 index 00000000000..f7103584669 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/examples/TestSyncResource_Update.json @@ -0,0 +1,30 @@ +{ + "operationId": "TestSyncResources_Update", + "title": "Update TestSyncResource resources", + "parameters": { + "rootScope": "/planes/radius/local/resourceGroups/testGroup", + "testSyncResourceName": "resource0", + "api-version": "2023-08-19", + "TestSyncResource": { + "location": "global", + "properties": { + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/planes/radius/local/resourceGroups/testGroup/providers/Test.Resource/testSyncResources/resource0", + "name": "resource0", + "type": "Test.Resource/testSyncResources", + "properties": { + "provisioningState": "Succeeded", + "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", + "property1": "test" + } + } + } + } +} diff --git a/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/openapi.json b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/openapi.json new file mode 100644 index 00000000000..0cd70b56f65 --- /dev/null +++ b/swagger/specification/applications/resource-manager/Test.Resource/stable/2023-08-19/openapi.json @@ -0,0 +1,1038 @@ +{ + "swagger": "2.0", + "info": { + "title": "Test.Resource Resource Management APIs", + "version": "2023-08-19", + "description": "REST APIs for Test.Resource", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "TestSyncResources" + }, + { + "name": "TestAsyncResources" + } + ], + "paths": { + "/{rootScope}/providers/Test.Resource/testAsyncResources": { + "get": { + "operationId": "TestAsyncResources_ListByScope", + "tags": [ + "TestAsyncResources" + ], + "description": "List TestAsyncResource resources by Scope", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestAsyncResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List TestAsyncResource resources by resourcegroup": { + "$ref": "./examples/TestAsyncResource_List.json" + }, + "List TestAsyncResource resources at root scope": { + "$ref": "./examples/TestAsyncResource_ListByScope.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{rootScope}/providers/Test.Resource/testAsyncResources/{testAsyncResourceName}": { + "get": { + "operationId": "TestAsyncResources_Get", + "tags": [ + "TestAsyncResources" + ], + "description": "Get a TestAsyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testAsyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestAsyncResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a TestAsyncResource resource": { + "$ref": "./examples/TestAsyncResource_Get.json" + } + } + }, + "put": { + "operationId": "TestAsyncResources_CreateOrUpdate", + "tags": [ + "TestAsyncResources" + ], + "description": "Create a TestAsyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testAsyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/TestAsyncResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'TestAsyncResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/TestAsyncResource" + } + }, + "201": { + "description": "Resource 'TestAsyncResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/TestAsyncResource" + }, + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update TestAsyncResource resources": { + "$ref": "./examples/TestAsyncResource_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "TestAsyncResources_Update", + "tags": [ + "TestAsyncResources" + ], + "description": "Update a TestAsyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testAsyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/TestAsyncResourceUpdate" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestAsyncResource" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update TestAsyncResource resources": { + "$ref": "./examples/TestAsyncResource_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "TestAsyncResources_Delete", + "tags": [ + "TestAsyncResources" + ], + "description": "Delete a TestAsyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testAsyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a TestAsyncResource resource": { + "$ref": "./examples/TestAsyncResource_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{rootScope}/providers/Test.Resource/testSyncResources": { + "get": { + "operationId": "TestSyncResources_ListByScope", + "tags": [ + "TestSyncResources" + ], + "description": "List TestSyncResource resources by Scope", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestSyncResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List TestSyncResource resources by resourcegroup": { + "$ref": "./examples/TestSyncResource_List.json" + }, + "List TestSyncResource resources at root scope": { + "$ref": "./examples/TestSyncResource_ListByScope.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{rootScope}/providers/Test.Resource/testSyncResources/{testSyncResourceName}": { + "get": { + "operationId": "TestSyncResources_Get", + "tags": [ + "TestSyncResources" + ], + "description": "Get a TestSyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testSyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestSyncResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a TestSyncResources resource": { + "$ref": "./examples/TestSyncResource_Get.json" + } + } + }, + "put": { + "operationId": "TestSyncResources_CreateOrUpdate", + "tags": [ + "TestSyncResources" + ], + "description": "Create a TestSyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testSyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/TestSyncResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'TestSyncResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/TestSyncResource" + } + }, + "201": { + "description": "Resource 'TestSyncResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/TestSyncResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update TestSyncResource resources": { + "$ref": "./examples/TestSyncResource_CreateOrUpdate.json" + } + } + }, + "patch": { + "operationId": "TestSyncResources_Update", + "tags": [ + "TestSyncResources" + ], + "description": "Update a TestSyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testSyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/TestSyncResourceUpdate" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/TestSyncResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update TestSyncResource resources": { + "$ref": "./examples/TestSyncResource_Update.json" + } + } + }, + "delete": { + "operationId": "TestSyncResources_Delete", + "tags": [ + "TestSyncResources" + ], + "description": "Delete a TestSyncResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RootScopeParameter" + }, + { + "name": "testSyncResourceName", + "in": "path", + "description": "The name of TestSyncResource", + "required": true, + "type": "string", + "maxLength": 63, + "pattern": "^[A-Za-z]([-A-Za-z0-9]*[A-Za-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Test.Resource/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "EnvironmentCompute": { + "type": "object", + "description": "Represents backing compute resource", + "properties": { + "kind": { + "type": "string", + "description": "Discriminator property for EnvironmentCompute." + }, + "resourceId": { + "type": "string", + "description": "The resource id of the compute resource for application environment." + }, + "identity": { + "$ref": "#/definitions/IdentitySettings", + "description": "Configuration for supported external identity providers" + } + }, + "discriminator": "kind", + "required": [ + "kind" + ] + }, + "IdentitySettingKind": { + "type": "string", + "description": "IdentitySettingKind is the kind of supported external identity setting", + "enum": [ + "undefined", + "azure.com.workload" + ], + "x-ms-enum": { + "name": "IdentitySettingKind", + "modelAsString": true, + "values": [ + { + "name": "undefined", + "value": "undefined", + "description": "undefined identity" + }, + { + "name": "azure.com.workload", + "value": "azure.com.workload", + "description": "azure ad workload identity" + } + ] + } + }, + "IdentitySettings": { + "type": "object", + "description": "IdentitySettings is the external identity setting.", + "properties": { + "kind": { + "$ref": "#/definitions/IdentitySettingKind", + "description": "kind of identity setting" + }, + "oidcIssuer": { + "type": "string", + "description": "The URI for your compute platform's OIDC issuer" + }, + "resource": { + "type": "string", + "description": "The resource ID of the provisioned identity" + } + }, + "required": [ + "kind" + ] + }, + "KubernetesCompute": { + "type": "object", + "description": "The Kubernetes compute configuration", + "properties": { + "namespace": { + "type": "string", + "description": "The namespace to use for the environment." + } + }, + "required": [ + "namespace" + ], + "allOf": [ + { + "$ref": "#/definitions/EnvironmentCompute" + } + ], + "x-ms-discriminator-value": "kubernetes" + }, + "OutputResource": { + "type": "object", + "description": "Properties of an output resource.", + "properties": { + "localId": { + "type": "string", + "description": "The logical identifier scoped to the owning Radius resource. This is only needed or used when a resource has a dependency relationship. LocalIDs do not have any particular format or meaning beyond being compared to determine dependency relationships." + }, + "id": { + "type": "string", + "description": "The UCP resource ID of the underlying resource." + }, + "radiusManaged": { + "type": "boolean", + "description": "Determines whether Radius manages the lifecycle of the underlying resource." + } + } + }, + "ProvisioningState": { + "type": "string", + "description": "Provisioning state of the portable resource at the time the operation was called", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Updating", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "The resource is being provisioned" + }, + { + "name": "Updating", + "value": "Updating", + "description": "The resource is updating" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "The resource is being deleted" + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The resource create request has been accepted" + } + ] + }, + "readOnly": true + }, + "ResourceStatus": { + "type": "object", + "description": "Status of a resource.", + "properties": { + "compute": { + "$ref": "#/definitions/EnvironmentCompute", + "description": "The compute resource associated with the resource." + }, + "outputResources": { + "type": "array", + "description": "Properties of an output resource", + "items": { + "$ref": "#/definitions/OutputResource" + }, + "x-ms-identifiers": [] + } + } + }, + "TestAsyncResource": { + "type": "object", + "description": "The TestAsyncResource which implements asynchornous API.", + "properties": { + "properties": { + "$ref": "#/definitions/TestAsyncResourceProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "TestAsyncResourceListResult": { + "type": "object", + "description": "The response of a TestAsyncResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The TestAsyncResource items on this page", + "items": { + "$ref": "#/definitions/TestAsyncResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "TestAsyncResourceProperties": { + "type": "object", + "description": "TestAsyncResource properties", + "properties": { + "environment": { + "type": "string", + "description": "Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)" + }, + "application": { + "type": "string", + "description": "Fully qualified resource ID for the application that the portable resource is consumed by" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the asynchronous operation.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/ResourceStatus", + "description": "Status of a resource.", + "readOnly": true + }, + "property1": { + "type": "string", + "description": "The property1 of TestASyncResource" + } + }, + "required": [ + "application", + "property1" + ] + }, + "TestAsyncResourceUpdate": { + "type": "object", + "description": "The type used for update operations of the TestAsyncResource.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/TestAsyncResourceUpdateProperties", + "x-ms-client-flatten": true + } + } + }, + "TestAsyncResourceUpdateProperties": { + "type": "object", + "description": "The updatable properties of the TestAsyncResource.", + "properties": { + "environment": { + "type": "string", + "description": "Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)" + }, + "application": { + "type": "string", + "description": "Fully qualified resource ID for the application that the portable resource is consumed by" + }, + "property1": { + "type": "string", + "description": "The property1 of TestASyncResource" + } + } + }, + "TestSyncResource": { + "type": "object", + "description": "The TestSyncResource type.", + "properties": { + "properties": { + "$ref": "#/definitions/TestSyncResourceProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "TestSyncResourceListResult": { + "type": "object", + "description": "The response of a TestSyncResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The TestSyncResource items on this page", + "items": { + "$ref": "#/definitions/TestSyncResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "TestSyncResourceProperties": { + "type": "object", + "description": "TestSyncResource properties", + "properties": { + "environment": { + "type": "string", + "description": "Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)" + }, + "application": { + "type": "string", + "description": "Fully qualified resource ID for the application that the portable resource is consumed by" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the asynchronous operation.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/ResourceStatus", + "description": "Status of a resource.", + "readOnly": true + }, + "property1": { + "type": "string", + "description": "The property1 of TestSyncResource" + } + }, + "required": [ + "application", + "property1" + ] + }, + "TestSyncResourceUpdate": { + "type": "object", + "description": "The type used for update operations of the TestSyncResource.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/TestSyncResourceUpdateProperties", + "x-ms-client-flatten": true + } + } + }, + "TestSyncResourceUpdateProperties": { + "type": "object", + "description": "The updatable properties of the TestSyncResource.", + "properties": { + "environment": { + "type": "string", + "description": "Fully qualified resource ID for the environment that the portable resource is linked to (if applicable)" + }, + "application": { + "type": "string", + "description": "Fully qualified resource ID for the application that the portable resource is consumed by" + }, + "property1": { + "type": "string", + "description": "The property1 of TestSyncResource" + } + } + }, + "Versions": { + "type": "string", + "description": "Supported API versions for the Test.Resource resource provider.", + "enum": [ + "2022-08-19-preview", + "2023-08-19" + ], + "x-ms-enum": { + "name": "Versions", + "modelAsString": true, + "values": [ + { + "name": "v2022_08_19_preview", + "value": "2022-08-19-preview", + "description": "2022-08-19-preview" + }, + { + "name": "v2023_08_19", + "value": "2023-08-19", + "description": "2023-08-19" + } + ] + } + } + }, + "parameters": { + "RootScopeParameter": { + "name": "rootScope", + "in": "path", + "description": "The scope in which the resource is present. UCP Scope is /planes/{planeType}/{planeName}/resourceGroup/{resourcegroupID} and Azure resource scope is /subscriptions/{subscriptionID}/resourceGroup/{resourcegroupID}", + "required": true, + "type": "string", + "minLength": 1, + "x-ms-parameter-location": "client", + "x-ms-skip-url-encoding": true + } + } +} diff --git a/swagger/specification/applications/resource-manager/readme.csharp.md b/swagger/specification/applications/resource-manager/readme.csharp.md index fdb375793f6..554d7b383eb 100644 --- a/swagger/specification/applications/resource-manager/readme.csharp.md +++ b/swagger/specification/applications/resource-manager/readme.csharp.md @@ -32,62 +32,62 @@ namespace: Applications.$(ApiVersionName) output-folder: $(csharp-sdks-folder)/$(ApiVersionName)/Generated batch: - - core-2022-03-15-privatepreview: true - ApiVersionName: Api2022_03_15_privatepreview - - link-2022-03-15-privatepreview: true - ApiVersionName: Api2022_03_15_privatepreview - - dapr-2022-03-15-privatepreview: true - ApiVersionName: Api2022_03_15_privatepreview - - datastores-2022-03-15-privatepreview: true - ApiVersionName: Api2022_03_15_privatepreview - - messaging-2022-03-15-privatepreview: true - ApiVersionName: Api2022_03_15_privatepreview + - core-2023-10-01-preview: true + ApiVersionName: Api2023_10_01_preview + - link-2023-10-01-preview: true + ApiVersionName: Api2023_10_01_preview + - dapr-2023-10-01-preview: true + ApiVersionName: Api2023_10_01_preview + - datastores-2023-10-01-preview: true + ApiVersionName: Api2023_10_01_preview + - messaging-2023-10-01-preview: true + ApiVersionName: Api2023_10_01_preview ``` -``` yaml $(core-2022-03-15-privatepreview) -tag: package-core-2022-03-15-privatepreview +``` yaml $(core-2023-10-01-preview) +tag: package-core-2023-10-01-preview ``` -``` yaml $(link-2022-03-15-privatepreview) -tag: package-link-2022-03-15-privatepreview +``` yaml $(link-2023-10-01-preview) +tag: package-link-2023-10-01-preview ``` -``` yaml $(dapr-2022-03-15-privatepreview) -tag: package-dapr-2022-03-15-privatepreview +``` yaml $(dapr-2023-10-01-preview) +tag: package-dapr-2023-10-01-preview ``` -``` yaml $(datastores-2022-03-15-privatepreview) -tag: package-datastores-2022-03-15-privatepreview +``` yaml $(datastores-2023-10-01-preview) +tag: package-datastores-2023-10-01-preview ``` -``` yaml $(messaging-2022-03-15-privatepreview) -tag: package-messaging-2022-03-15-privatepreview +``` yaml $(messaging-2023-10-01-preview) +tag: package-messaging-2023-10-01-preview ``` -### Tag: package-core-2022-03-15-privatepreview -``` yaml $(tag) == 'package-core-2022-03-15-privatepreview' -output-folder: $(csharp-sdks-folder)/applications/management/2022-03-15-privatepreview/core/src/Generated +### Tag: package-core-2023-10-01-preview +``` yaml $(tag) == 'package-core-2023-10-01-preview' +output-folder: $(csharp-sdks-folder)/applications/management/2023-10-01-preview/core/src/Generated input-file: -- Applications.Core/preview/2022-03-15-privatepreview/openapi.json +- Applications.Core/preview/2023-10-01-preview/openapi.json ``` -### Tag: package-dapr-2022-03-15-privatepreview -``` yaml $(tag) == 'package-dapr-2022-03-15-privatepreview' -output-folder: $(csharp-sdks-folder)/applications/management/2022-03-15-privatepreview/dapr/src/Generated +### Tag: package-dapr-2023-10-01-preview +``` yaml $(tag) == 'package-dapr-2023-10-01-preview' +output-folder: $(csharp-sdks-folder)/applications/management/2023-10-01-preview/dapr/src/Generated input-file: -- Applications.Dapr/preview/2022-03-15-privatepreview/openapi.json +- Applications.Dapr/preview/2023-10-01-preview/openapi.json ``` -### Tag: package-datastores-2022-03-15-privatepreview -``` yaml $(tag) == 'package-datastores-2022-03-15-privatepreview' -output-folder: $(csharp-sdks-folder)/applications/management/2022-03-15-privatepreview/datastores/src/Generated +### Tag: package-datastores-2023-10-01-preview +``` yaml $(tag) == 'package-datastores-2023-10-01-preview' +output-folder: $(csharp-sdks-folder)/applications/management/2023-10-01-preview/datastores/src/Generated input-file: -- Applications.Datastores/preview/2022-03-15-privatepreview/openapi.json +- Applications.Datastores/preview/2023-10-01-preview/openapi.json ``` -### Tag: package-messaging-2022-03-15-privatepreview -``` yaml $(tag) == 'package-messaging-2022-03-15-privatepreview' -output-folder: $(csharp-sdks-folder)/applications/management/2022-03-15-privatepreview/messaging/src/Generated +### Tag: package-messaging-2023-10-01-preview +``` yaml $(tag) == 'package-messaging-2023-10-01-preview' +output-folder: $(csharp-sdks-folder)/applications/management/2023-10-01-preview/messaging/src/Generated input-file: -- Applications.Messaging/preview/2022-03-15-privatepreview/openapi.json +- Applications.Messaging/preview/2023-10-01-preview/openapi.json ``` \ No newline at end of file diff --git a/swagger/specification/applications/resource-manager/readme.go.md b/swagger/specification/applications/resource-manager/readme.go.md index 378df4bafa3..5437da7b72a 100644 --- a/swagger/specification/applications/resource-manager/readme.go.md +++ b/swagger/specification/applications/resource-manager/readme.go.md @@ -13,54 +13,54 @@ go: ```yaml $(go) && $(multiapi) batch: - - tag: package-core-2022-03-15-privatepreview - - tag: package-link-2022-03-15-privatepreview - - tag: package-datastores-2022-03-15-privatepreview - - tag: package-dapr-2022-03-15-privatepreview - - tag: package-messaging-2022-03-15-privatepreview + - tag: package-core-2023-10-01-preview + - tag: package-link-2023-10-01-preview + - tag: package-datastores-2023-10-01-preview + - tag: package-dapr-2023-10-01-preview + - tag: package-messaging-2023-10-01-preview ``` -### Tag: package-core-2022-03-15-privatepreview and go +### Tag: package-core-2023-10-01-preview and go -These settings apply only when `--tag=package-core-2022-03-15-privatepreview --go` is specified on the command line. +These settings apply only when `--tag=package-core-2023-10-01-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -```yaml $(tag) == 'package-core-2022-03-15-privatepreview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2022-03-15-privatepreview/core +```yaml $(tag) == 'package-core-2023-10-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2023-10-01-preview/core ``` -### Tag: package-link-2022-03-15-privatepreview and go +### Tag: package-link-2023-10-01-preview and go -These settings apply only when `--tag=package-link-2022-03-15-privatepreview --go` is specified on the command line. +These settings apply only when `--tag=package-link-2023-10-01-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -```yaml $(tag) == 'package-link-2022-03-15-privatepreview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2022-03-15-privatepreview/link +```yaml $(tag) == 'package-link-2023-10-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2023-10-01-preview/link ``` -### Tag: package-dapr-2022-03-15-privatepreview and go +### Tag: package-dapr-2023-10-01-preview and go -These settings apply only when `--tag=package-dapr-2022-03-15-privatepreview --go` is specified on the command line. +These settings apply only when `--tag=package-dapr-2023-10-01-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -```yaml $(tag) == 'package-dapr-2022-03-15-privatepreview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2022-03-15-privatepreview/dapr +```yaml $(tag) == 'package-dapr-2023-10-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2023-10-01-preview/dapr ``` -### Tag: package-datastores-2022-03-15-privatepreview and go +### Tag: package-datastores-2023-10-01-preview and go -These settings apply only when `--tag=package-datastores-2022-03-15-privatepreview --go` is specified on the command line. +These settings apply only when `--tag=package-datastores-2023-10-01-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -```yaml $(tag) == 'package-datastores-2022-03-15-privatepreview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2022-03-15-privatepreview/datastores +```yaml $(tag) == 'package-datastores-2023-10-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2023-10-01-preview/datastores ``` -### Tag: package-messaging-2022-03-15-privatepreview and go +### Tag: package-messaging-2023-10-01-preview and go -These settings apply only when `--tag=package-messaging-2022-03-15-privatepreview --go` is specified on the command line. +These settings apply only when `--tag=package-messaging-2023-10-01-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -```yaml $(tag) == 'package-messaging-2022-03-15-privatepreview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2022-03-15-privatepreview/messaging +```yaml $(tag) == 'package-messaging-2023-10-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2023-10-01-preview/messaging ``` \ No newline at end of file diff --git a/swagger/specification/applications/resource-manager/readme.md b/swagger/specification/applications/resource-manager/readme.md index d84c42f28e3..4b316ec5eb6 100644 --- a/swagger/specification/applications/resource-manager/readme.md +++ b/swagger/specification/applications/resource-manager/readme.md @@ -30,44 +30,44 @@ openapi-type: arm ``` ``` yaml $(package-core) -tag: package-core-2022-03-15-privatepreview +tag: package-core-2023-10-01-preview ``` ``` yaml $(package-link) -tag: package-link-2022-03-15-privatepreview +tag: package-link-2023-10-01-preview ``` -### Tag: package-core-2022-03-15-privatepreview +### Tag: package-core-2023-10-01-preview -These settings apply only when `--tag=package-core-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=package-core-2023-10-01-preview` is specified on the command line. -``` yaml $(tag) == 'package-core-2022-03-15-privatepreview' +``` yaml $(tag) == 'package-core-2023-10-01-preview' input-file: - - Applications.Core/preview/2022-03-15-privatepreview/openapi.json + - Applications.Core/preview/2023-10-01-preview/openapi.json ``` -### Tag: package-dapr-2022-03-15-privatepreview +### Tag: package-dapr-2023-10-01-preview -These settings apply only when `--tag=package-dapr-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=package-dapr-2023-10-01-preview` is specified on the command line. -``` yaml $(tag) == 'package-dapr-2022-03-15-privatepreview' +``` yaml $(tag) == 'package-dapr-2023-10-01-preview' input-file: - - Applications.Dapr/preview/2022-03-15-privatepreview/openapi.json + - Applications.Dapr/preview/2023-10-01-preview/openapi.json ``` -### Tag: package-datastores-2022-03-15-privatepreview +### Tag: package-datastores-2023-10-01-preview -These settings apply only when `--tag=package-datastores-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=package-datastores-2023-10-01-preview` is specified on the command line. -``` yaml $(tag) == 'package-datastores-2022-03-15-privatepreview' +``` yaml $(tag) == 'package-datastores-2023-10-01-preview' input-file: - - Applications.Datastores/preview/2022-03-15-privatepreview/openapi.json + - Applications.Datastores/preview/2023-10-01-preview/openapi.json ``` -### Tag: package-messaging-2022-03-15-privatepreview +### Tag: package-messaging-2023-10-01-preview -These settings apply only when `--tag=package-messaging-2022-03-15-privatepreview` is specified on the command line. +These settings apply only when `--tag=package-messaging-2023-10-01-preview` is specified on the command line. -``` yaml $(tag) == 'package-messaging-2022-03-15-privatepreview' +``` yaml $(tag) == 'package-messaging-2023-10-01-preview' input-file: - - Applications.Messaging/preview/2022-03-15-privatepreview/openapi.json + - Applications.Messaging/preview/2023-10-01-preview/openapi.json ``` # Code Generation diff --git a/swagger/specification/applications/resource-manager/readme.python.md b/swagger/specification/applications/resource-manager/readme.python.md index 85acb122c39..f66bf972bb7 100644 --- a/swagger/specification/applications/resource-manager/readme.python.md +++ b/swagger/specification/applications/resource-manager/readme.python.md @@ -22,17 +22,17 @@ basic-setup-py: true output-folder: $(python-sdks-folder)/applications/azure-mgmt-applications ``` -### Tag: package-core-2022-03-15-privatepreview and python +### Tag: package-core-2023-10-01-preview and python -These settings apply only when `--tag=package-core-2022-03-15-privatepreview --python` is specified on the command line. +These settings apply only when `--tag=package-core-2023-10-01-preview --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-core-2022-03-15-privatepreview' -namespace: azure.mgmt.applications.core.v2022_03_15_privatepreview -output-folder: $(python-sdks-folder)/applications/azure-mgmt-applications/azure/mgmt/applications/core/v2022_03_15_privatepreview +``` yaml $(tag) == 'package-core-2023-10-01-preview' +namespace: azure.mgmt.applications.core.v2023_10_01_preview +output-folder: $(python-sdks-folder)/applications/azure-mgmt-applications/azure/mgmt/applications/core/v2023_10_01_preview python: - namespace: azure.mgmt.applications.core.v2022_03_15_privatepreview - output-folder: $(python-sdks-folder)/applications/azure-mgmt-applications/azure/mgmt/applications/core/v2022_03_15_privatepreview + namespace: azure.mgmt.applications.core.v2023_10_01_preview + output-folder: $(python-sdks-folder)/applications/azure-mgmt-applications/azure/mgmt/applications/core/v2023_10_01_preview ``` ### Python multi-api @@ -42,8 +42,8 @@ Generate all API versions currently shipped for this package ```yaml $(multiapi) && $(track2) clear-output-folder: true batch: - - tag: package-core-2022-03-15-privatepreview - - tag: package-link-2022-03-15-privatepreview + - tag: package-core-2023-10-01-preview + - tag: package-link-2023-10-01-preview - multiapiscript: true ``` diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_CreateOrUpdate.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_CreateOrUpdate.json similarity index 96% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_CreateOrUpdate.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_CreateOrUpdate.json index c7fef818332..2a8b8b8fc9b 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_CreateOrUpdate.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_CreateOrUpdate.json @@ -2,7 +2,7 @@ "operationId": "AwsCredentials_CreateOrUpdate", "title": "Create or update a AWS credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "aws", "planeName": "aws", "credentialName": "default", diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_Delete.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_Delete.json similarity index 84% rename from typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_Delete.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_Delete.json index 30907afdbe9..2e42882a8ad 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_Delete.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_Delete.json @@ -2,7 +2,7 @@ "operationId": "AwsCredentials_Delete", "title": "Delete a AWS credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "aws", "planeName": "awscloud", "credentialName": "default" diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_Get.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_Get.json similarity index 93% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_Get.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_Get.json index 1d6b3ee794f..d99d794a5b1 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_Get.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_Get.json @@ -2,7 +2,7 @@ "operationId": "AwsCredentials_Get", "title": "Get a AWS credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "aws", "planeName": "awscloud", "credentialName": "default" diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_List.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_List.json similarity index 94% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_List.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_List.json index 53baf9b1cb3..bd11cb7df23 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_List.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_List.json @@ -2,7 +2,7 @@ "operationId": "AwsCredentials_List", "title": "List AWS credentials", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "aws", "planeName": "awscloud" }, diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_Update.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_Update.json similarity index 96% rename from typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_Update.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_Update.json index f9de8aaac1b..8d5aacc379e 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_Update.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AWSCredential_Update.json @@ -2,7 +2,7 @@ "operationId": "AwsCredentials_Update", "title": "Update a AWS credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "aws", "planeName": "aws", "credentialName": "default", diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_CreateOrUpdate.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_CreateOrUpdate.json similarity index 97% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_CreateOrUpdate.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_CreateOrUpdate.json index f2aad4bdc48..e86d26fb194 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_CreateOrUpdate.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_CreateOrUpdate.json @@ -2,7 +2,7 @@ "operationId": "AzureCredentials_CreateOrUpdate", "title": "Create or update a Azure credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "azure", "planeName": "azurecloud", "credentialName": "default", diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_Delete.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_Delete.json similarity index 83% rename from typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_Delete.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_Delete.json index 6d034d1e3b9..87273e65abf 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_Delete.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_Delete.json @@ -2,7 +2,7 @@ "operationId": "AzureCredentials_Delete", "title": "Delete a Azure credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "azure", "planeName": "azurecloud", "credentialName": "default" diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_Get.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_Get.json similarity index 94% rename from typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_Get.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_Get.json index 90eede6d4a8..98b292f7aa0 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_Get.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_Get.json @@ -2,7 +2,7 @@ "operationId": "AzureCredentials_Get", "title": "Get a Azure credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "azure", "planeName": "azurecloud", "credentialName": "default" diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_List.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_List.json similarity index 94% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_List.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_List.json index 4f6ab2d815d..0238221ca5b 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_List.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_List.json @@ -2,7 +2,7 @@ "operationId": "AzureCredentials_List", "title": "List Azure credentials", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "azure", "planeName": "azurecloud" }, diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_Update.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_Update.json similarity index 97% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_Update.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_Update.json index 916dff73b8b..8e468ac5f5f 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_Update.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/AzureCredential_Update.json @@ -2,7 +2,7 @@ "operationId": "AzureCredentials_Update", "title": "Update a Azure credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "azure", "planeName": "azurecloud", "credentialName": "default", diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_CreateOrUpdate.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_CreateOrUpdate.json similarity index 93% rename from typespec/UCP/examples/2022-09-01-privatepreview/Planes_CreateOrUpdate.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_CreateOrUpdate.json index 12de0f2d687..07d60b21d00 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_CreateOrUpdate.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_CreateOrUpdate.json @@ -2,7 +2,7 @@ "operationId": "Planes_CreateOrUpdate", "title": "Create or update a plane", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius", "Plane": { diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_Delete.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_Delete.json similarity index 79% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_Delete.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_Delete.json index 9467f217ba9..509fe433d87 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_Delete.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_Delete.json @@ -2,7 +2,7 @@ "operationId": "Planes_Delete", "title": "Delete a plane", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "radius", "planeName": "local" }, diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_GetPlaneLocal.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_GetPlaneLocal.json similarity index 92% rename from typespec/UCP/examples/2022-09-01-privatepreview/Planes_GetPlaneLocal.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_GetPlaneLocal.json index ba3efe8c027..311c2d38975 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_GetPlaneLocal.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_GetPlaneLocal.json @@ -2,7 +2,7 @@ "operationId": "Planes_Get", "title": "Get a plane", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius" }, diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_List.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_List.json similarity index 93% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_List.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_List.json index 2f22f7beb50..0850bb286d4 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_List.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_List.json @@ -2,7 +2,7 @@ "operationId": "Planes_ListPlanes", "title": "List planes", "parameters": { - "api-version": "2022-09-01-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_ListPlanesByType.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_ListPlanesByType.json similarity index 93% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_ListPlanesByType.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_ListPlanesByType.json index 1544d77af20..48e657d01f2 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_ListPlanesByType.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_ListPlanesByType.json @@ -3,7 +3,7 @@ "title": "List planes by planeType", "parameters": { "planeType": "radius", - "api-version": "2022-09-01-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_Update.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_Update.json similarity index 93% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_Update.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_Update.json index 08b77b42ca3..27f6ea48c6d 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_Update.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Planes_Update.json @@ -2,7 +2,7 @@ "operationId": "Planes_Update", "title": "Update a plane", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius", "Plane": { diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_CreateOrUpdate.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_CreateOrUpdate.json similarity index 90% rename from typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_CreateOrUpdate.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_CreateOrUpdate.json index 889ee27bb1f..a8c322c8670 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_CreateOrUpdate.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_CreateOrUpdate.json @@ -2,7 +2,7 @@ "operationId": "ResourceGroups_CreateOrUpdate", "title": "Create or update a resource group", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "radius", "planeName": "local", "resourceGroupName": "rg1", diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_Delete.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_Delete.json similarity index 83% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_Delete.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_Delete.json index df56306964b..a6e1366c626 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_Delete.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_Delete.json @@ -2,7 +2,7 @@ "operationId": "ResourceGroups_Delete", "title": "Delete a resource group", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "resourceGroupName": "rg1", "planeType": "radius", "planeName": "local" diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_Get.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_Get.json similarity index 88% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_Get.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_Get.json index c64ec98f63e..4eab6c512b0 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_Get.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_Get.json @@ -2,7 +2,7 @@ "operationId": "ResourceGroups_Get", "title": "Get a resource group", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius", "resourceGroupName": "rg1" diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_List.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_List.json similarity index 91% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_List.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_List.json index 3e67b7150c9..50b43e8f8ac 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_List.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_List.json @@ -2,7 +2,7 @@ "operationId": "ResourceGroups_List", "title": "List resource groups", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius" }, diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_Update.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_Update.json similarity index 89% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_Update.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_Update.json index abcd61906ab..ab092fcd922 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_Update.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/ResourceGroups_Update.json @@ -2,7 +2,7 @@ "operationId": "ResourceGroups_Update", "title": "Update a resource group", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "radius", "planeName": "local", "resourceGroupName": "rg1", diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/Resources_List.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Resources_List.json similarity index 94% rename from typespec/UCP/examples/2022-09-01-privatepreview/Resources_List.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Resources_List.json index 47836a988a7..3323273ce21 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/Resources_List.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/examples/Resources_List.json @@ -2,7 +2,7 @@ "operationId": "Resources_List", "title": "List resources in a resource group.", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius", "resourceGroupName": "rg1" diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/openapi.json b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/openapi.json similarity index 99% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/openapi.json rename to swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/openapi.json index a1a88fa46c3..8a5ea79c48f 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/openapi.json +++ b/swagger/specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/openapi.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Universal Control Plane Resource Management APIs", - "version": "2022-09-01-privatepreview", + "version": "2023-10-01-preview", "description": "REST APIs for Universal Control Plane", "x-typespec-generated": [ { @@ -1782,7 +1782,7 @@ "type": "string", "description": "Supported API versions for Universal Control Plane resource provider.", "enum": [ - "2022-09-01-privatepreview" + "2023-10-01-preview" ], "x-ms-enum": { "name": "Versions", @@ -1790,8 +1790,8 @@ "values": [ { "name": "v2022_09_01_privatepreview", - "value": "2022-09-01-privatepreview", - "description": "2022-09-01-privatepreview" + "value": "2023-10-01-preview", + "description": "2023-10-01-preview" } ] } diff --git a/swagger/specs.go b/swagger/specs.go index 5b3a80ea5cd..13042dc488b 100644 --- a/swagger/specs.go +++ b/swagger/specs.go @@ -25,16 +25,16 @@ var ( // each file may depend on one or more files on the preceding // lines. - //go:embed specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/*.json - //go:embed specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/*.json - //go:embed specification/applications/resource-manager/Applications.Messaging/preview/2022-03-15-privatepreview/*.json - //go:embed specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/openapi.json + //go:embed specification/applications/resource-manager/Applications.Datastores/preview/2023-10-01-preview/*.json + //go:embed specification/applications/resource-manager/Applications.Dapr/preview/2023-10-01-preview/*.json + //go:embed specification/applications/resource-manager/Applications.Messaging/preview/2023-10-01-preview/*.json + //go:embed specification/applications/resource-manager/Applications.Core/preview/2023-10-01-preview/openapi.json //go:embed specification/common-types/resource-management/v2/types.json //go:embed specification/common-types/resource-management/v3/types.json SpecFiles embed.FS //go:embed specification/common-types/resource-management/v2/types.json //go:embed specification/common-types/resource-management/v3/types.json - //go:embed specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/*.json + //go:embed specification/ucp/resource-manager/UCP/preview/2023-10-01-preview/*.json SpecFilesUCP embed.FS ) diff --git a/test/functional/daprrp/resources/testdata/daprrp-resources-component-name-conflict.bicep b/test/functional/daprrp/resources/testdata/daprrp-resources-component-name-conflict.bicep index b8686753282..888c6ff068a 100644 --- a/test/functional/daprrp/resources/testdata/daprrp-resources-component-name-conflict.bicep +++ b/test/functional/daprrp/resources/testdata/daprrp-resources-component-name-conflict.bicep @@ -2,7 +2,7 @@ import radius as radius param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'daprrp-rs-component-name-conflict' location: 'global' properties: { @@ -11,7 +11,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } // Dapr Component #1 -resource pubsub 'Applications.Dapr/pubSubBrokers@2022-03-15-privatepreview' = { +resource pubsub 'Applications.Dapr/pubSubBrokers@2023-10-01-preview' = { name: 'dapr-component' location: 'global' properties: { @@ -27,7 +27,7 @@ resource pubsub 'Applications.Dapr/pubSubBrokers@2022-03-15-privatepreview' = { } // Dapr Component #2 -resource secretstore 'Applications.Dapr/secretStores@2022-03-15-privatepreview' = { +resource secretstore 'Applications.Dapr/secretStores@2023-10-01-preview' = { name: 'dapr-component' location: 'global' properties: { diff --git a/test/functional/daprrp/resources/testdata/daprrp-resources-pubsub-broker-manual.bicep b/test/functional/daprrp/resources/testdata/daprrp-resources-pubsub-broker-manual.bicep index af8a551059b..f2e3c1a2b14 100644 --- a/test/functional/daprrp/resources/testdata/daprrp-resources-pubsub-broker-manual.bicep +++ b/test/functional/daprrp/resources/testdata/daprrp-resources-pubsub-broker-manual.bicep @@ -4,14 +4,14 @@ param magpieimage string param environment string param namespace string = 'default' -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dpsb-manual-app' properties: { environment: environment } } -resource myapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource myapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'dpsb-manual-app-ctnr' properties: { application: app.id @@ -49,7 +49,7 @@ module redis '../../../shared/resources/testdata/modules/redis-selfhost.bicep' = } -resource pubsubBroker 'Applications.Dapr/pubSubBrokers@2022-03-15-privatepreview' = { +resource pubsubBroker 'Applications.Dapr/pubSubBrokers@2023-10-01-preview' = { name: 'dpsb-manual' properties: { application: app.id diff --git a/test/functional/daprrp/resources/testdata/daprrp-resources-pubsub-broker-recipe.bicep b/test/functional/daprrp/resources/testdata/daprrp-resources-pubsub-broker-recipe.bicep index 174727642b5..0fa7d537cc2 100644 --- a/test/functional/daprrp/resources/testdata/daprrp-resources-pubsub-broker-recipe.bicep +++ b/test/functional/daprrp/resources/testdata/daprrp-resources-pubsub-broker-recipe.bicep @@ -4,7 +4,7 @@ param magpieimage string param registry string param version string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'dpsb-recipe-env' properties: { compute: { @@ -23,7 +23,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dpsb-recipe-app' properties: { environment: env.id @@ -36,7 +36,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource myapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource myapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'dpsb-recipe-app-ctnr' properties: { application: app.id @@ -63,7 +63,7 @@ resource myapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource pubsubBroker 'Applications.Dapr/pubSubBrokers@2022-03-15-privatepreview' = { +resource pubsubBroker 'Applications.Dapr/pubSubBrokers@2023-10-01-preview' = { name: 'dpsb-recipe' properties: { application: app.id diff --git a/test/functional/daprrp/resources/testdata/daprrp-resources-secretstore-manual.bicep b/test/functional/daprrp/resources/testdata/daprrp-resources-secretstore-manual.bicep index 7863cc4e446..acd8f2652f1 100644 --- a/test/functional/daprrp/resources/testdata/daprrp-resources-secretstore-manual.bicep +++ b/test/functional/daprrp/resources/testdata/daprrp-resources-secretstore-manual.bicep @@ -6,7 +6,7 @@ param environment string param location string = resourceGroup().location -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'daprrp-rs-secretstore-manual' location: location properties: { @@ -14,7 +14,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource myapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource myapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'gnrc-scs-ctnr' properties: { application: app.id @@ -41,7 +41,7 @@ resource myapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource secretstore 'Applications.Dapr/secretStores@2022-03-15-privatepreview' = { +resource secretstore 'Applications.Dapr/secretStores@2023-10-01-preview' = { name: 'gnrc-scs-manual' location: location properties: { diff --git a/test/functional/daprrp/resources/testdata/daprrp-resources-secretstore-recipe.bicep b/test/functional/daprrp/resources/testdata/daprrp-resources-secretstore-recipe.bicep index 2960ce4a355..fcac516e9b1 100644 --- a/test/functional/daprrp/resources/testdata/daprrp-resources-secretstore-recipe.bicep +++ b/test/functional/daprrp/resources/testdata/daprrp-resources-secretstore-recipe.bicep @@ -6,7 +6,7 @@ param location string = resourceGroup().location param registry string param version string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'daprrp-env-secretstore-recipes-env' properties: { compute: { @@ -25,7 +25,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'daprrp-rs-secretstore-recipe' properties: { environment: env.id @@ -38,7 +38,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource myapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource myapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'gnrc-scs-ctnr-recipe' location: location properties: { @@ -66,7 +66,7 @@ resource myapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource secretstore 'Applications.Dapr/secretStores@2022-03-15-privatepreview' = { +resource secretstore 'Applications.Dapr/secretStores@2023-10-01-preview' = { name: 'gnrc-scs-recipe' location: location properties: { diff --git a/test/functional/daprrp/resources/testdata/daprrp-resources-serviceinvocation.bicep b/test/functional/daprrp/resources/testdata/daprrp-resources-serviceinvocation.bicep index f235c74aaf0..2e0d25e29e7 100644 --- a/test/functional/daprrp/resources/testdata/daprrp-resources-serviceinvocation.bicep +++ b/test/functional/daprrp/resources/testdata/daprrp-resources-serviceinvocation.bicep @@ -4,7 +4,7 @@ param location string = resourceGroup().location param environment string param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dapr-serviceinvocation' location: location properties: { @@ -12,7 +12,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource frontend 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource frontend 'Applications.Core/containers@2023-10-01-preview' = { name: 'dapr-frontend' location: location properties: { @@ -38,7 +38,7 @@ resource frontend 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource backend 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource backend 'Applications.Core/containers@2023-10-01-preview' = { name: 'dapr-backend' location: location properties: { diff --git a/test/functional/daprrp/resources/testdata/daprrp-resources-statestore-manual.bicep b/test/functional/daprrp/resources/testdata/daprrp-resources-statestore-manual.bicep index 80f3cf5addc..fcf87818eee 100644 --- a/test/functional/daprrp/resources/testdata/daprrp-resources-statestore-manual.bicep +++ b/test/functional/daprrp/resources/testdata/daprrp-resources-statestore-manual.bicep @@ -4,14 +4,14 @@ param magpieimage string param environment string param namespace string = 'default' -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'daprrp-rs-statestore-manual' properties: { environment: environment } } -resource myapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource myapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'dapr-sts-manual-ctnr' properties: { application: app.id @@ -49,7 +49,7 @@ module redis '../../../shared/resources/testdata/modules/redis-selfhost.bicep' = } -resource statestore 'Applications.Dapr/stateStores@2022-03-15-privatepreview' = { +resource statestore 'Applications.Dapr/stateStores@2023-10-01-preview' = { name: 'dapr-sts-manual' properties: { application: app.id diff --git a/test/functional/daprrp/resources/testdata/daprrp-resources-statestore-recipe.bicep b/test/functional/daprrp/resources/testdata/daprrp-resources-statestore-recipe.bicep index e5f6000af41..36ef27176ee 100644 --- a/test/functional/daprrp/resources/testdata/daprrp-resources-statestore-recipe.bicep +++ b/test/functional/daprrp/resources/testdata/daprrp-resources-statestore-recipe.bicep @@ -4,7 +4,7 @@ param magpieimage string param registry string param version string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'daprrp-env-recipes-env' properties: { compute: { @@ -23,7 +23,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'daprrp-rs-sts-recipe' properties: { environment: env.id @@ -36,7 +36,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'dapr-sts-recipe-ctnr' properties: { application: app.id @@ -63,7 +63,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource statestore 'Applications.Dapr/stateStores@2022-03-15-privatepreview' = { +resource statestore 'Applications.Dapr/stateStores@2023-10-01-preview' = { name: 'dapr-sts-recipe' properties: { application: app.id diff --git a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-microsoft-sql.bicep b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-microsoft-sql.bicep index a551d9dde63..2cc83b1dde8 100644 --- a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-microsoft-sql.bicep +++ b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-microsoft-sql.bicep @@ -25,7 +25,7 @@ param database string param server string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dsrp-resources-microsoft-sql' location: location properties: { @@ -33,7 +33,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource sqlapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource sqlapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'mssql-app-ctnr' location: location properties: { @@ -57,7 +57,7 @@ resource sqlapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource db 'Applications.Datastores/sqlDatabases@2022-03-15-privatepreview' = { +resource db 'Applications.Datastores/sqlDatabases@2023-10-01-preview' = { name: 'mssql-db' location: location properties: { diff --git a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe-context.bicep b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe-context.bicep index 127e9711842..a4899038a98 100644 --- a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe-context.bicep +++ b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe-context.bicep @@ -10,7 +10,7 @@ param version string param magpieimage string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'dsrp-resources-env-recipes-context-env' location: 'global' properties: { @@ -35,7 +35,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dsrp-resources-mongodb-recipe-context' location: 'global' properties: { @@ -49,7 +49,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'mdb-ctx-ctnr' location: 'global' properties: { @@ -73,7 +73,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource recipedb 'Applications.Datastores/mongoDatabases@2022-03-15-privatepreview' = { +resource recipedb 'Applications.Datastores/mongoDatabases@2023-10-01-preview' = { name: 'mdb-ctx' location: 'global' properties: { diff --git a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe-parameters.bicep b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe-parameters.bicep index 277bd94e650..b14b899b39c 100644 --- a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe-parameters.bicep +++ b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe-parameters.bicep @@ -10,7 +10,7 @@ param version string param magpieimage string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'dsrp-resources-env-recipe-parameters-env' location: 'global' properties: { @@ -39,7 +39,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dsrp-resources-mongodb-recipe-parameters' location: 'global' properties: { @@ -53,7 +53,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'mdb-param-ctnr' location: 'global' properties: { @@ -77,7 +77,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource recipedb 'Applications.Datastores/mongoDatabases@2022-03-15-privatepreview' = { +resource recipedb 'Applications.Datastores/mongoDatabases@2023-10-01-preview' = { name: 'mdb-recipe-param-db' location: 'global' properties: { diff --git a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe.bicep b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe.bicep index 1071ebb0e47..9041e75a93d 100644 --- a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe.bicep +++ b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-mongodb-recipe.bicep @@ -10,7 +10,7 @@ param version string param magpieimage string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'dsrp-resources-mongodb-recipe-env' location: 'global' properties: { @@ -35,7 +35,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dsrp-resources-mongodb-recipe' location: 'global' properties: { @@ -49,7 +49,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'mongodb-app-ctnr' location: 'global' properties: { @@ -73,7 +73,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource recipedb 'Applications.Datastores/mongoDatabases@2022-03-15-privatepreview' = { +resource recipedb 'Applications.Datastores/mongoDatabases@2023-10-01-preview' = { name: 'mongodb-db' location: 'global' properties: { diff --git a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-default-recipe.bicep b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-default-recipe.bicep index bc516eac1cf..dff0fccce72 100644 --- a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-default-recipe.bicep +++ b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-default-recipe.bicep @@ -6,7 +6,7 @@ param registry string param version string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'dsrp-resources-env-default-recipe-env' location: 'global' properties: { @@ -31,7 +31,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dsrp-resources-redis-default-recipe' location: 'global' properties: { @@ -45,7 +45,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource redis 'Applications.Datastores/redisCaches@2022-03-15-privatepreview' = { +resource redis 'Applications.Datastores/redisCaches@2023-10-01-preview' = { name: 'rds-default-recipe' location: 'global' properties: { diff --git a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-manual.bicep b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-manual.bicep index 50dd9271b9c..16c72805705 100644 --- a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-manual.bicep +++ b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-manual.bicep @@ -3,7 +3,7 @@ import radius as radius param magpieimage string param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dsrp-resources-redis-manual' location: 'global' properties:{ @@ -11,7 +11,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'rds-app-ctnr' location: 'global' properties: { @@ -35,7 +35,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource redisContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource redisContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'rds-ctnr' location: 'global' properties: { @@ -53,7 +53,7 @@ resource redisContainer 'Applications.Core/containers@2022-03-15-privatepreview' } } -resource redisRoute 'Applications.Core/httproutes@2022-03-15-privatepreview' = { +resource redisRoute 'Applications.Core/httproutes@2023-10-01-preview' = { name: 'rds-rte' location: 'global' properties: { @@ -61,7 +61,7 @@ resource redisRoute 'Applications.Core/httproutes@2022-03-15-privatepreview' = { } } -resource redis 'Applications.Datastores/redisCaches@2022-03-15-privatepreview' = { +resource redis 'Applications.Datastores/redisCaches@2023-10-01-preview' = { name: 'rds-rds' location: 'global' properties: { diff --git a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-recipe.bicep b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-recipe.bicep index f0d719bcbfc..2f518b36148 100644 --- a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-recipe.bicep +++ b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-redis-recipe.bicep @@ -6,7 +6,7 @@ param registry string param version string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'dsrp-resources-env-recipe-env' location: 'global' properties: { @@ -31,7 +31,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dsrp-resources-redis-recipe' location: 'global' properties: { @@ -45,7 +45,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource redis 'Applications.Datastores/redisCaches@2022-03-15-privatepreview' = { +resource redis 'Applications.Datastores/redisCaches@2023-10-01-preview' = { name: 'rds-recipe' location: 'global' properties: { diff --git a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-sqldb-manual.bicep b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-sqldb-manual.bicep index a5450a4ccec..424c3f42532 100644 --- a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-sqldb-manual.bicep +++ b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-sqldb-manual.bicep @@ -25,7 +25,7 @@ param username string = 'sa' @secure() param password string = newGuid() -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dsrp-resources-sql' location: location properties: { @@ -33,7 +33,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'sql-app-ctnr' location: location properties: { @@ -57,7 +57,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource db 'Applications.Datastores/sqlDatabases@2022-03-15-privatepreview' = { +resource db 'Applications.Datastores/sqlDatabases@2023-10-01-preview' = { name: 'sql-db' location: location properties: { @@ -74,7 +74,7 @@ resource db 'Applications.Datastores/sqlDatabases@2022-03-15-privatepreview' = { } } -resource sqlRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource sqlRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'sql-rte' location: location properties: { @@ -83,7 +83,7 @@ resource sqlRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { } } -resource sqlContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource sqlContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'sql-ctnr' location: location properties: { diff --git a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-sqldb-recipe.bicep b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-sqldb-recipe.bicep index 5c7123b1033..aa4f71e405e 100644 --- a/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-sqldb-recipe.bicep +++ b/test/functional/datastoresrp/resources/testdata/datastoresrp-resources-sqldb-recipe.bicep @@ -19,7 +19,7 @@ param registry string param version string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'dsrp-resources-env-sql-recipe-env' location: 'global' properties: { @@ -43,7 +43,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dsrp-resources-sqldb-recipe' location: location properties: { @@ -57,7 +57,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'sql-recipe-app-ctnr' location: location properties: { @@ -81,7 +81,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource db 'Applications.Datastores/sqlDatabases@2022-03-15-privatepreview' = { +resource db 'Applications.Datastores/sqlDatabases@2023-10-01-preview' = { name: 'sql-db-recipe' location: location properties: { diff --git a/test/functional/datastoresrp/resources/testdata/datastoresrp-rs-mongodb-manual.bicep b/test/functional/datastoresrp/resources/testdata/datastoresrp-rs-mongodb-manual.bicep index 3966151e2a2..6e35380e0aa 100644 --- a/test/functional/datastoresrp/resources/testdata/datastoresrp-rs-mongodb-manual.bicep +++ b/test/functional/datastoresrp/resources/testdata/datastoresrp-rs-mongodb-manual.bicep @@ -11,7 +11,7 @@ param environment string param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'dsrp-resources-mongodb-manual' location: 'global' properties: { @@ -19,7 +19,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'mdb-us-app-ctnr' location: 'global' properties: { @@ -37,7 +37,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { // https://hub.docker.com/_/mongo/ -resource mongoContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource mongoContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'mdb-us-ctnr' location: 'global' properties: { @@ -60,7 +60,7 @@ resource mongoContainer 'Applications.Core/containers@2022-03-15-privatepreview' } } -resource mongoRoute 'Applications.Core/httproutes@2022-03-15-privatepreview' = { +resource mongoRoute 'Applications.Core/httproutes@2023-10-01-preview' = { name: 'mdb-us-rte' location: 'global' properties: { @@ -69,7 +69,7 @@ resource mongoRoute 'Applications.Core/httproutes@2022-03-15-privatepreview' = { } } -resource mongo 'Applications.Datastores/mongoDatabases@2022-03-15-privatepreview' = { +resource mongo 'Applications.Datastores/mongoDatabases@2023-10-01-preview' = { name: 'mdb-us-db' location: 'global' properties: { diff --git a/test/functional/messagingrp/resources/testdata/msgrp-resources-rabbitmq-recipe.bicep b/test/functional/messagingrp/resources/testdata/msgrp-resources-rabbitmq-recipe.bicep index 8c6a4680a73..499281a5aa4 100644 --- a/test/functional/messagingrp/resources/testdata/msgrp-resources-rabbitmq-recipe.bicep +++ b/test/functional/messagingrp/resources/testdata/msgrp-resources-rabbitmq-recipe.bicep @@ -17,7 +17,7 @@ param registry string param version string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'msgrp-resources-environment-rabbitmq-recipe-env' location: 'global' properties: { @@ -40,7 +40,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'msgrp-resources-rabbitmq-recipe' location: 'global' properties: { @@ -54,7 +54,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'rmq-recipe-app-ctnr' location: location properties: { @@ -75,7 +75,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource rabbitmq 'Applications.Messaging/rabbitMQQueues@2022-03-15-privatepreview' = { +resource rabbitmq 'Applications.Messaging/rabbitMQQueues@2023-10-01-preview' = { name: 'rmq-recipe-resource' location: location properties: { diff --git a/test/functional/messagingrp/resources/testdata/msgrp-resources-rabbitmq.bicep b/test/functional/messagingrp/resources/testdata/msgrp-resources-rabbitmq.bicep index f417b52b31f..276eb1b2500 100644 --- a/test/functional/messagingrp/resources/testdata/msgrp-resources-rabbitmq.bicep +++ b/test/functional/messagingrp/resources/testdata/msgrp-resources-rabbitmq.bicep @@ -25,7 +25,7 @@ param username string = 'guest' @secure() param password string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'msgrp-resources-rabbitmq' location: location properties: { @@ -33,7 +33,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'rmq-app-ctnr' location: location properties: { @@ -54,7 +54,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource rabbitmqContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource rabbitmqContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'rmq-ctnr' location: location properties: { @@ -71,7 +71,7 @@ resource rabbitmqContainer 'Applications.Core/containers@2022-03-15-privateprevi } } -resource rabbitmqRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource rabbitmqRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'rmq-rte' properties: { application: app.id @@ -79,7 +79,7 @@ resource rabbitmqRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' } } -resource rabbitmq 'Applications.Messaging/rabbitMQQueues@2022-03-15-privatepreview' = { +resource rabbitmq 'Applications.Messaging/rabbitMQQueues@2023-10-01-preview' = { name: 'msg-rmq-rmq' properties: { application: app.id diff --git a/test/functional/samples/testdata/tutorial-environment.bicep b/test/functional/samples/testdata/tutorial-environment.bicep index a0ef81ed28a..bdb8ee03023 100644 --- a/test/functional/samples/testdata/tutorial-environment.bicep +++ b/test/functional/samples/testdata/tutorial-environment.bicep @@ -3,7 +3,7 @@ import radius as radius param registry string param version string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'tutorial' properties: { compute: { diff --git a/test/functional/shared/cli/cli_test.go b/test/functional/shared/cli/cli_test.go index a380184825a..ab7e9f2f2d6 100644 --- a/test/functional/shared/cli/cli_test.go +++ b/test/functional/shared/cli/cli_test.go @@ -36,7 +36,7 @@ import ( "github.com/radius-project/radius/pkg/cli/bicep" "github.com/radius-project/radius/pkg/cli/clients" "github.com/radius-project/radius/pkg/cli/objectformats" - "github.com/radius-project/radius/pkg/corerp/api/v20220315privatepreview" + "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" "github.com/radius-project/radius/test/functional" "github.com/radius-project/radius/test/functional/shared" "github.com/radius-project/radius/test/radcli" @@ -710,7 +710,7 @@ func DeleteAppWithoutDeletingResources(t *testing.T, ctx context.Context, option client := options.ManagementClient require.IsType(t, client, &clients.UCPApplicationsManagementClient{}) appManagementClient := client.(*clients.UCPApplicationsManagementClient) - appDeleteClient, err := v20220315privatepreview.NewApplicationsClient(appManagementClient.RootScope, &aztoken.AnonymousCredential{}, appManagementClient.ClientOptions) + appDeleteClient, err := v20231001preview.NewApplicationsClient(appManagementClient.RootScope, &aztoken.AnonymousCredential{}, appManagementClient.ClientOptions) require.NoError(t, err) // We don't care about the response for tests _, err = appDeleteClient.Delete(ctx, applicationName, nil) diff --git a/test/functional/shared/cli/testdata/corerp-kubernetes-cli-app-empty-resources.bicep b/test/functional/shared/cli/testdata/corerp-kubernetes-cli-app-empty-resources.bicep index de406e05441..dc16d2772ad 100644 --- a/test/functional/shared/cli/testdata/corerp-kubernetes-cli-app-empty-resources.bicep +++ b/test/functional/shared/cli/testdata/corerp-kubernetes-cli-app-empty-resources.bicep @@ -6,7 +6,7 @@ param location string = 'global' @description('Specifies the environment for resources.') param environment string = 'test' -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'kubernetes-cli-empty-resources' location: location properties: { diff --git a/test/functional/shared/cli/testdata/corerp-kubernetes-cli-parameters.bicep b/test/functional/shared/cli/testdata/corerp-kubernetes-cli-parameters.bicep index 649716e051e..d2cfe4fd673 100644 --- a/test/functional/shared/cli/testdata/corerp-kubernetes-cli-parameters.bicep +++ b/test/functional/shared/cli/testdata/corerp-kubernetes-cli-parameters.bicep @@ -12,7 +12,7 @@ param magpietag string = 'latest' @description('Specifies the registry of the image to be deployed.') param registry string -resource parametersApp 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource parametersApp 'Applications.Core/applications@2023-10-01-preview' = { name: 'kubernetes-cli-params' location: location properties: { @@ -20,7 +20,7 @@ resource parametersApp 'Applications.Core/applications@2022-03-15-privatepreview } } -resource containerc 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerc 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerC' location: location properties: { @@ -31,7 +31,7 @@ resource containerc 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource containerd 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerd 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerD' location: location properties: { diff --git a/test/functional/shared/cli/testdata/corerp-kubernetes-cli-run-portforward.bicep b/test/functional/shared/cli/testdata/corerp-kubernetes-cli-run-portforward.bicep index 249a9ffd83c..09fab41a0f4 100644 --- a/test/functional/shared/cli/testdata/corerp-kubernetes-cli-run-portforward.bicep +++ b/test/functional/shared/cli/testdata/corerp-kubernetes-cli-run-portforward.bicep @@ -5,7 +5,7 @@ param application string @description('Specifies the image to be deployed.') param magpieimage string -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'k8s-cli-run-portforward' location: 'global' properties: { diff --git a/test/functional/shared/cli/testdata/corerp-kubernetes-cli-run.bicep b/test/functional/shared/cli/testdata/corerp-kubernetes-cli-run.bicep index afae6ee7ada..9e3a1531ced 100644 --- a/test/functional/shared/cli/testdata/corerp-kubernetes-cli-run.bicep +++ b/test/functional/shared/cli/testdata/corerp-kubernetes-cli-run.bicep @@ -2,7 +2,7 @@ import radius as radius param application string -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'k8s-cli-run-logger' location: 'global' properties: { diff --git a/test/functional/shared/cli/testdata/corerp-kubernetes-cli-with-resources.bicep b/test/functional/shared/cli/testdata/corerp-kubernetes-cli-with-resources.bicep index 2cc826d40c1..d233c4931f8 100644 --- a/test/functional/shared/cli/testdata/corerp-kubernetes-cli-with-resources.bicep +++ b/test/functional/shared/cli/testdata/corerp-kubernetes-cli-with-resources.bicep @@ -9,7 +9,7 @@ param environment string = 'test' @description('Specifies the image to be deployed.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'kubernetes-cli-with-resources' location: location properties: { @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource containera 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containera 'Applications.Core/containers@2023-10-01-preview' = { name: 'containera-app-with-resources' location: location properties: { @@ -28,7 +28,7 @@ resource containera 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource containerb 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerb 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerb-app-with-resources' location: location properties: { diff --git a/test/functional/shared/cli/testdata/corerp-kubernetes-cli.bicep b/test/functional/shared/cli/testdata/corerp-kubernetes-cli.bicep index 1af0ff71d86..59dc9771eb6 100644 --- a/test/functional/shared/cli/testdata/corerp-kubernetes-cli.bicep +++ b/test/functional/shared/cli/testdata/corerp-kubernetes-cli.bicep @@ -9,7 +9,7 @@ param environment string = 'test' @description('Specifies the image to be deployed.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'kubernetes-cli' location: location properties: { @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource containera 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containera 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerA' location: location properties: { @@ -28,7 +28,7 @@ resource containera 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource containerb 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerb 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerB' location: location properties: { diff --git a/test/functional/shared/cli/testdata/corerp-kubernetes-cli.json b/test/functional/shared/cli/testdata/corerp-kubernetes-cli.json index cbf63ed88b1..b31b4de32b4 100644 --- a/test/functional/shared/cli/testdata/corerp-kubernetes-cli.json +++ b/test/functional/shared/cli/testdata/corerp-kubernetes-cli.json @@ -40,7 +40,7 @@ "resources": { "app": { "import": "radius", - "type": "Applications.Core/applications@2022-03-15-privatepreview", + "type": "Applications.Core/applications@2023-10-01-preview", "properties": { "name": "kubernetes-cli-json", "location": "[parameters('location')]", @@ -51,7 +51,7 @@ }, "containera": { "import": "radius", - "type": "Applications.Core/containers@2022-03-15-privatepreview", + "type": "Applications.Core/containers@2023-10-01-preview", "properties": { "name": "containerA-json", "location": "[parameters('location')]", @@ -68,7 +68,7 @@ }, "containerb": { "import": "radius", - "type": "Applications.Core/containers@2022-03-15-privatepreview", + "type": "Applications.Core/containers@2023-10-01-preview", "properties": { "name": "containerB-json", "location": "[parameters('location')]", diff --git a/test/functional/shared/cli/testdata/corerp-resources-recipe-env.bicep b/test/functional/shared/cli/testdata/corerp-resources-recipe-env.bicep index e2560b472e4..cdb0bd9fadd 100644 --- a/test/functional/shared/cli/testdata/corerp-resources-recipe-env.bicep +++ b/test/functional/shared/cli/testdata/corerp-resources-recipe-env.bicep @@ -3,7 +3,7 @@ import radius as radius @description('Specifies the location for resources.') param location string = 'global' -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-resources-recipe-env' location: location properties: { diff --git a/test/functional/shared/mechanics/testdata/corerp-mechanics-communication-cycle.bicep b/test/functional/shared/mechanics/testdata/corerp-mechanics-communication-cycle.bicep index 436abd2d9a4..4ccf44ef0a8 100644 --- a/test/functional/shared/mechanics/testdata/corerp-mechanics-communication-cycle.bicep +++ b/test/functional/shared/mechanics/testdata/corerp-mechanics-communication-cycle.bicep @@ -9,7 +9,7 @@ param environment string = 'test' @description('Specifies the image to be deployed.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-mechanics-communication-cycle' location: location properties: { @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource routea 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource routea 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'routea' location: location properties: { @@ -25,7 +25,7 @@ resource routea 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { } } -resource mechanicsg 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource mechanicsg 'Applications.Core/containers@2023-10-01-preview' = { name: 'mechanicsg' location: location properties: { @@ -47,7 +47,7 @@ resource mechanicsg 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource routeb 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource routeb 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'routeb' location: location properties: { @@ -55,7 +55,7 @@ resource routeb 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { } } -resource cyclea 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource cyclea 'Applications.Core/containers@2023-10-01-preview' = { name: 'cyclea' location: location properties: { diff --git a/test/functional/shared/mechanics/testdata/corerp-mechanics-invalid-resourceids.bicep b/test/functional/shared/mechanics/testdata/corerp-mechanics-invalid-resourceids.bicep index fd34af984eb..fc3d230c72e 100644 --- a/test/functional/shared/mechanics/testdata/corerp-mechanics-invalid-resourceids.bicep +++ b/test/functional/shared/mechanics/testdata/corerp-mechanics-invalid-resourceids.bicep @@ -9,7 +9,7 @@ param environment string = 'test' @description('Specifies the image to be deployed.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-mechanics-invalid-resourceids' location: location properties: { @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource httpRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource httpRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'invalid-rte' location: location properties: { @@ -25,7 +25,7 @@ resource httpRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { } } -resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { +resource gateway 'Applications.Core/gateways@2023-10-01-preview' = { name: 'invalid-gtwy' location: location properties: { @@ -39,7 +39,7 @@ resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'invalid-ctnr' location: location properties: { diff --git a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withanotherresource.step1.bicep b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withanotherresource.step1.bicep index adf2f7d2725..97b5b7c34e4 100644 --- a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withanotherresource.step1.bicep +++ b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withanotherresource.step1.bicep @@ -9,7 +9,7 @@ param environment string = 'test' @description('Specifies the image to be deployed.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-mechanics-redeploy-with-another-resource' location: location properties: { @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource mechanicsa 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource mechanicsa 'Applications.Core/containers@2023-10-01-preview' = { name: 'mechanicsa' location: location properties: { diff --git a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withanotherresource.step2.bicep b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withanotherresource.step2.bicep index 205f3efa28d..6d4c99baa6d 100644 --- a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withanotherresource.step2.bicep +++ b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withanotherresource.step2.bicep @@ -9,7 +9,7 @@ param environment string = 'test' @description('Specifies the image to be deployed.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-mechanics-redeploy-with-another-resource' location: location properties: { @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource mechanicsb 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource mechanicsb 'Applications.Core/containers@2023-10-01-preview' = { name: 'mechanicsb' location: location properties: { @@ -28,7 +28,7 @@ resource mechanicsb 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource mechanicsc 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource mechanicsc 'Applications.Core/containers@2023-10-01-preview' = { name: 'mechanicsc' location: location properties: { diff --git a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withtwoseparateresource.step1.bicep b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withtwoseparateresource.step1.bicep index 26a7eb3df06..08f1e295c9c 100644 --- a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withtwoseparateresource.step1.bicep +++ b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withtwoseparateresource.step1.bicep @@ -9,7 +9,7 @@ param environment string = 'test' @description('Specifies the image to be deployed.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-mechanics-redeploy-withtwoseparateresource' location: location properties: { @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource mechanicse 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource mechanicse 'Applications.Core/containers@2023-10-01-preview' = { name: 'mechanicse' location: location properties: { diff --git a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withtwoseparateresource.step2.bicep b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withtwoseparateresource.step2.bicep index ac58c0b6b51..aae6c2fdb75 100644 --- a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withtwoseparateresource.step2.bicep +++ b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withtwoseparateresource.step2.bicep @@ -9,7 +9,7 @@ param environment string = 'test' @description('Specifies the image to be deployed.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-mechanics-redeploy-withtwoseparateresource' location: location properties: { @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource mechanicsf 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource mechanicsf 'Applications.Core/containers@2023-10-01-preview' = { name: 'mechanicsf' location: location properties: { diff --git a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withupdatedresource.step1.bicep b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withupdatedresource.step1.bicep index b218aa28af8..7c6f7e7cb76 100644 --- a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withupdatedresource.step1.bicep +++ b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withupdatedresource.step1.bicep @@ -9,7 +9,7 @@ param environment string = 'test' @description('Specifies the image to be deployed.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-mechanics-redeploy-withupdatedresource' location: location properties: { @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource mechanicsd 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource mechanicsd 'Applications.Core/containers@2023-10-01-preview' = { name: 'mechanicsd' location: location properties: { diff --git a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withupdatedresource.step2.bicep b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withupdatedresource.step2.bicep index 2441fecd839..1638af4f6c8 100644 --- a/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withupdatedresource.step2.bicep +++ b/test/functional/shared/mechanics/testdata/corerp-mechanics-redeploy-withupdatedresource.step2.bicep @@ -9,7 +9,7 @@ param environment string = 'test' @description('Specifies the image to be deployed.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-mechanics-redeploy-withupdatedresource' location: location properties: { @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource mechanicsd 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource mechanicsd 'Applications.Core/containers@2023-10-01-preview' = { name: 'mechanicsd' location: location properties: { diff --git a/test/functional/shared/mechanics/testdata/modules/corerp-mechanics-nestedmodules-innerapp.bicep b/test/functional/shared/mechanics/testdata/modules/corerp-mechanics-nestedmodules-innerapp.bicep index 0b85b38b622..de0bc2d0e8a 100644 --- a/test/functional/shared/mechanics/testdata/modules/corerp-mechanics-nestedmodules-innerapp.bicep +++ b/test/functional/shared/mechanics/testdata/modules/corerp-mechanics-nestedmodules-innerapp.bicep @@ -3,7 +3,7 @@ import radius as radius param location string param environment string -resource innerApp 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource innerApp 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-mechanics-nestedmodules-innerapp-app' location: location properties: { diff --git a/test/functional/shared/mechanics/testdata/modules/corerp-mechanics-nestedmodules-outerapp.bicep b/test/functional/shared/mechanics/testdata/modules/corerp-mechanics-nestedmodules-outerapp.bicep index c55b856d783..b63904d2c56 100644 --- a/test/functional/shared/mechanics/testdata/modules/corerp-mechanics-nestedmodules-outerapp.bicep +++ b/test/functional/shared/mechanics/testdata/modules/corerp-mechanics-nestedmodules-outerapp.bicep @@ -3,7 +3,7 @@ import radius as radius param location string param environment string -resource outerApp 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource outerApp 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-mechanics-nestedmodules-outerapp-app' location: location properties: { diff --git a/test/functional/shared/resources/recipe_bicep_test.go b/test/functional/shared/resources/recipe_bicep_test.go index cfa86848f8e..b474e27744d 100644 --- a/test/functional/shared/resources/recipe_bicep_test.go +++ b/test/functional/shared/resources/recipe_bicep_test.go @@ -97,7 +97,7 @@ func Test_BicepRecipe_ParametersAndOutputs(t *testing.T) { require.Equal(t, 42.0, resource.Properties["c"]) require.Equal(t, "resource", resource.Properties["d"]) - response, err := test.Options.CustomAction.InvokeCustomAction(ctx, *resource.ID, "2022-03-15-privatepreview", "listSecrets") + response, err := test.Options.CustomAction.InvokeCustomAction(ctx, *resource.ID, "2023-10-01-preview", "listSecrets") require.NoError(t, err) t.Logf("secret data:\n %+v", response.Body) diff --git a/test/functional/shared/resources/recipe_terraform_test.go b/test/functional/shared/resources/recipe_terraform_test.go index e0c13cc0a98..7c78de375a1 100644 --- a/test/functional/shared/resources/recipe_terraform_test.go +++ b/test/functional/shared/resources/recipe_terraform_test.go @@ -316,7 +316,7 @@ func Test_TerraformRecipe_ParametersAndOutputs(t *testing.T) { require.Equal(t, 42.0, resource.Properties["c"]) require.Equal(t, "resource", resource.Properties["d"]) - response, err := test.Options.CustomAction.InvokeCustomAction(ctx, *resource.ID, "2022-03-15-privatepreview", "listSecrets") + response, err := test.Options.CustomAction.InvokeCustomAction(ctx, *resource.ID, "2023-10-01-preview", "listSecrets") require.NoError(t, err) expected := map[string]any{"e": "secret value"} diff --git a/test/functional/shared/resources/testdata/containers/corerp-resources-friendly-container-version-1.bicep b/test/functional/shared/resources/testdata/containers/corerp-resources-friendly-container-version-1.bicep index dfd90e4c4fb..7fa7b58f507 100644 --- a/test/functional/shared/resources/testdata/containers/corerp-resources-friendly-container-version-1.bicep +++ b/test/functional/shared/resources/testdata/containers/corerp-resources-friendly-container-version-1.bicep @@ -3,7 +3,7 @@ import radius as radius param magpieimage string param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-versioning' location: 'global' properties: { @@ -11,7 +11,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'friendly-ctnr' location: 'global' properties: { @@ -35,7 +35,7 @@ resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource redisContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource redisContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'friendly-rds-ctnr' location: 'global' properties: { @@ -53,7 +53,7 @@ resource redisContainer 'Applications.Core/containers@2022-03-15-privatepreview' } } -resource redisRoute 'Applications.Core/httproutes@2022-03-15-privatepreview' = { +resource redisRoute 'Applications.Core/httproutes@2023-10-01-preview' = { name: 'friendly-rds-rte' location: 'global' properties: { @@ -61,7 +61,7 @@ resource redisRoute 'Applications.Core/httproutes@2022-03-15-privatepreview' = { } } -resource redis 'Applications.Datastores/redisCaches@2022-03-15-privatepreview' = { +resource redis 'Applications.Datastores/redisCaches@2023-10-01-preview' = { name: 'friendly-rds-rds' location: 'global' properties: { diff --git a/test/functional/shared/resources/testdata/containers/corerp-resources-friendly-container-version-2.bicep b/test/functional/shared/resources/testdata/containers/corerp-resources-friendly-container-version-2.bicep index 3fa274d5463..8fa0362d7af 100644 --- a/test/functional/shared/resources/testdata/containers/corerp-resources-friendly-container-version-2.bicep +++ b/test/functional/shared/resources/testdata/containers/corerp-resources-friendly-container-version-2.bicep @@ -3,7 +3,7 @@ import radius as radius param magpieimage string param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-versioning' location: 'global' properties: { @@ -11,7 +11,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/containers@2023-10-01-preview' = { name: 'friendly-ctnr' location: 'global' properties: { diff --git a/test/functional/shared/resources/testdata/corerp-azure-connection-database-service.bicep b/test/functional/shared/resources/testdata/corerp-azure-connection-database-service.bicep index de3b4955c2f..0dde82220d3 100644 --- a/test/functional/shared/resources/testdata/corerp-azure-connection-database-service.bicep +++ b/test/functional/shared/resources/testdata/corerp-azure-connection-database-service.bicep @@ -6,7 +6,7 @@ param environment string param cosmosmongodbresourceid string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-azure-connection-database-service' location: 'global' properties: { @@ -14,7 +14,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource store 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource store 'Applications.Core/containers@2023-10-01-preview' = { name: 'db-service' location: 'global' properties: { diff --git a/test/functional/shared/resources/testdata/corerp-azure-container-manualscale.bicep b/test/functional/shared/resources/testdata/corerp-azure-container-manualscale.bicep index a4985c8e46b..4b15f584010 100644 --- a/test/functional/shared/resources/testdata/corerp-azure-container-manualscale.bicep +++ b/test/functional/shared/resources/testdata/corerp-azure-container-manualscale.bicep @@ -13,7 +13,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-manualscale' location: location properties: { @@ -27,7 +27,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-manualscale' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-app-env.bicep b/test/functional/shared/resources/testdata/corerp-resources-app-env.bicep index 67dd60aee07..2c9b4facefe 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-app-env.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-app-env.bicep @@ -3,7 +3,7 @@ import radius as radius @description('Specifies the location for resources.') param location string = 'global' -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-resources-app-env-env' location: location properties: { @@ -15,7 +15,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-app-env-app' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-application.bicep b/test/functional/shared/resources/testdata/corerp-resources-application.bicep index 7330fe5e2f6..f978ddd412c 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-application.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-application.bicep @@ -6,7 +6,7 @@ param location string = 'local' @description('Specifies the environment for resources.') param environment string = 'test' -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-application-app' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-bad-healthprobe.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-bad-healthprobe.bicep index 8f1fc0667a5..c256c3fba6f 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-bad-healthprobe.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-bad-healthprobe.bicep @@ -13,7 +13,7 @@ param port int = 5000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-bad-healthprobe' location: location properties: { @@ -27,7 +27,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-bad-healthprobe' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-cmd-args.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-cmd-args.bicep index e459a25959a..916fae8c05b 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-cmd-args.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-cmd-args.bicep @@ -6,7 +6,7 @@ param location string = 'global' @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-cmd-args' location: location properties: { @@ -20,7 +20,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-cmd-args' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-httproute.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-httproute.bicep index f555578ca3b..d2d717e3836 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-httproute.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-httproute.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-httproute' location: location properties: { @@ -26,7 +26,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-rte-ctnr' location: location properties: { @@ -47,7 +47,7 @@ resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource httproute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource httproute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'ctnr-rte-rte' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-liveness-readiness.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-liveness-readiness.bicep index 7422c404f3f..b720fe546a2 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-liveness-readiness.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-liveness-readiness.bicep @@ -13,7 +13,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-live-ready' location: location properties: { @@ -27,7 +27,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-live-ready' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-manifest-sidecar.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-manifest-sidecar.bicep index 8f9fbac81e0..d96ee99879f 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-manifest-sidecar.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-manifest-sidecar.bicep @@ -14,7 +14,7 @@ param environment string var manifest = loadTextContent('manifest/sidecar.yaml') -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-sidecar' location: location properties: { @@ -28,7 +28,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-sidecar' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-manifest.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-manifest.bicep index 513c5a1d53e..224545e7165 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-manifest.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-manifest.bicep @@ -14,7 +14,7 @@ param environment string var manifest = loadTextContent('manifest/basemanifest.yaml') -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-manifest' location: location properties: { @@ -28,7 +28,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-manifest' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-multiple-containers-multiple-ports-dns.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-multiple-containers-multiple-ports-dns.bicep index 936c4acee69..efb48cd7866 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-multiple-containers-multiple-ports-dns.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-multiple-containers-multiple-ports-dns.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-multiple-containers-multiple-ports-dns' location: location properties: { @@ -26,7 +26,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource containerqw 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerqw 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerqw' location: location properties: { @@ -46,7 +46,7 @@ resource containerqw 'Applications.Core/containers@2022-03-15-privatepreview' = } // canonically accurate ports :) -resource containerqe 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerqe 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerqe' location: location properties: { @@ -68,7 +68,7 @@ resource containerqe 'Applications.Core/containers@2022-03-15-privatepreview' = } } -resource containerqr 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerqr 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerqr' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-multiple-ports.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-multiple-ports.bicep index 5dca55bb982..89f7db3b107 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-multiple-ports.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-multiple-ports.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-multiple-ports' location: location properties: { @@ -26,7 +26,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource containerqt 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerqt 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerqt' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-nonexistent-container-image.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-nonexistent-container-image.bicep index 92d771b9504..ec9ee954502 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-nonexistent-container-image.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-nonexistent-container-image.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-badimage' location: location properties: { @@ -26,7 +26,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-ctnr-badimage' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-optional-port-scheme.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-optional-port-scheme.bicep index 282541c6421..e43cef321e4 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-optional-port-scheme.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-optional-port-scheme.bicep @@ -9,7 +9,7 @@ param magpieimage string @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-optional-port-scheme' location: location properties: { @@ -24,7 +24,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } // the container resource should use the optional port, protocol, and scheme variables if specified. -resource containerqy 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerqy 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerqy' location: location properties: { @@ -45,7 +45,7 @@ resource containerqy 'Applications.Core/containers@2022-03-15-privatepreview' = } // the container resource should use the optional port, protocol, and scheme variables if specified. -resource containerqu 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerqu 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerqu' location: location properties: { @@ -66,7 +66,7 @@ resource containerqu 'Applications.Core/containers@2022-03-15-privatepreview' = } // the container resource should still expose a port on the containerPort if the optional variables are not specified. -resource containerqi 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerqi 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerqi' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-pod-patching.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-pod-patching.bicep index 7dd27bd62a4..b4b9aae2da6 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-pod-patching.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-pod-patching.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-podpatch' location: location properties: { @@ -26,7 +26,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-podpatch' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-single-dns-request.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-single-dns-request.bicep index ec2b23eb5c5..feb0eec9263 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-single-dns-request.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-single-dns-request.bicep @@ -9,7 +9,7 @@ param magpieimage string @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-single-dns-request' location: location properties: { @@ -23,7 +23,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource containerqo 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerqo 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerqo' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-single-dns-service-creation.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-single-dns-service-creation.bicep index 2ff6539b16d..49240bdc1f6 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-single-dns-service-creation.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-single-dns-service-creation.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-single-dns-service-creation' location: location properties: { @@ -26,7 +26,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource containeras 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containeras 'Applications.Core/containers@2023-10-01-preview' = { name: 'containeras' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-two-containers-dns.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-two-containers-dns.bicep index 2e9c3b3fc43..71be712c6b5 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-two-containers-dns.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-two-containers-dns.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-two-containers-dns' location: location properties: { @@ -26,7 +26,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource containerad 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containerad 'Applications.Core/containers@2023-10-01-preview' = { name: 'containerad' location: location properties: { @@ -42,7 +42,7 @@ resource containerad 'Applications.Core/containers@2022-03-15-privatepreview' = } } -resource containeraf 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource containeraf 'Applications.Core/containers@2023-10-01-preview' = { name: 'containeraf' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container-workload.bicep b/test/functional/shared/resources/testdata/corerp-resources-container-workload.bicep index 3eeb27a8d59..fd2490f273c 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container-workload.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container-workload.bicep @@ -10,7 +10,7 @@ param magpieimage string #disable-next-line no-hardcoded-env-urls param oidcIssuer string = 'https://radiusoidc.blob.core.windows.net/kubeoidc/' -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'azstorage-workload-env' location: location properties: { @@ -31,7 +31,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container-workload' location: location properties: { @@ -45,7 +45,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'azstorage-ctnr' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-container.bicep b/test/functional/shared/resources/testdata/corerp-resources-container.bicep index 68b5f33ea02..412f540ceeb 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-container.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-container.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-container' location: location properties: { @@ -26,7 +26,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-ctnr' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-environment.bicep b/test/functional/shared/resources/testdata/corerp-resources-environment.bicep index c5cffb0bce7..26d4c83ea4b 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-environment.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-environment.bicep @@ -3,7 +3,7 @@ import radius as radius @description('Specifies the location for resources.') param location string = 'global' -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-resources-environment-env' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-extender-aws-s3-recipe.bicep b/test/functional/shared/resources/testdata/corerp-resources-extender-aws-s3-recipe.bicep index e16692c3219..70fb6ee2419 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-extender-aws-s3-recipe.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-extender-aws-s3-recipe.bicep @@ -6,7 +6,7 @@ param awsRegion string param registry string param version string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-resources-extenders-aws-s3-recipe-env' location: 'global' properties: { @@ -34,7 +34,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-extenders-aws-s3-recipe-app' location: 'global' properties: { @@ -48,7 +48,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource extender 'Applications.Core/extenders@2023-10-01-preview' = { name: 'corerp-resources-extenders-aws-s3-recipe' properties: { environment: env.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-extender-recipe.bicep b/test/functional/shared/resources/testdata/corerp-resources-extender-recipe.bicep index cde129c0b43..57db6b55d23 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-extender-recipe.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-extender-recipe.bicep @@ -4,7 +4,7 @@ param registry string param version string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-resources-extender-recipe-env' location: 'global' properties: { @@ -27,7 +27,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-extender-recipe' location: 'global' properties: { @@ -41,7 +41,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource extender 'Applications.Core/extenders@2023-10-01-preview' = { name: 'extender-recipe' properties: { environment: env.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-extender.bicep b/test/functional/shared/resources/testdata/corerp-resources-extender.bicep index f71897fa79d..bbd81118b9e 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-extender.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-extender.bicep @@ -3,7 +3,7 @@ import radius as radius param magpieimage string param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-extender' location: 'global' properties: { @@ -11,7 +11,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource twilio 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource twilio 'Applications.Core/extenders@2023-10-01-preview' = { name: 'extr-twilio' properties: { environment: environment @@ -24,7 +24,7 @@ resource twilio 'Applications.Core/extenders@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'extr-ctnr' location: 'global' properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-gateway-dns.bicep b/test/functional/shared/resources/testdata/corerp-resources-gateway-dns.bicep index f2488f865ce..55c1fb63221 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-gateway-dns.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-gateway-dns.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the image for the container resource.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-gateway-dns' location: location properties: { @@ -20,7 +20,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { +resource gateway 'Applications.Core/gateways@2023-10-01-preview' = { name: 'http-gtwy-gtwy-dns' location: location properties: { @@ -45,7 +45,7 @@ resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { } } -resource frontendcontainerdns 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource frontendcontainerdns 'Applications.Core/containers@2023-10-01-preview' = { name: 'frontendcontainerdns' location: location properties: { @@ -71,7 +71,7 @@ resource frontendcontainerdns 'Applications.Core/containers@2022-03-15-privatepr } } -resource backendcontainerdns 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource backendcontainerdns 'Applications.Core/containers@2023-10-01-preview' = { name: 'backendcontainerdns' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-gateway-failure.bicep b/test/functional/shared/resources/testdata/corerp-resources-gateway-failure.bicep index ef7a22b8a51..6d92764e138 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-gateway-failure.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-gateway-failure.bicep @@ -3,14 +3,14 @@ import radius as radius @description('ID of the Radius environment. Passed in automatically via the rad CLI') param environment string -resource demoApplication 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource demoApplication 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-gateway-failure-app' properties: { environment: environment } } -resource demoSecretStore 'Applications.Core/secretStores@2022-03-15-privatepreview' = { +resource demoSecretStore 'Applications.Core/secretStores@2023-10-01-preview' = { name: 'corerp-resources-gateway-failure-secretstore' properties: { application: demoApplication.id @@ -26,7 +26,7 @@ resource demoSecretStore 'Applications.Core/secretStores@2022-03-15-privateprevi } } -resource demoGateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { +resource demoGateway 'Applications.Core/gateways@2023-10-01-preview' = { name: 'corerp-resources-gateway-failure-gateway' properties: { application: demoApplication.id @@ -46,7 +46,7 @@ resource demoGateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { } } -resource demoRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource demoRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'corerp-resources-gateway-failure-route' properties: { application: demoApplication.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-gateway-kubernetesmetadata.bicep b/test/functional/shared/resources/testdata/corerp-resources-gateway-kubernetesmetadata.bicep index e8f3a4e8444..5941b50e6ce 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-gateway-kubernetesmetadata.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-gateway-kubernetesmetadata.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the image for the container resource.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-gateway-kme' location: location properties: { @@ -33,7 +33,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { +resource gateway 'Applications.Core/gateways@2023-10-01-preview' = { name: 'http-gtwy-kme' location: location properties: { @@ -58,7 +58,7 @@ resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { } } -resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'http-gtwy-front-rte-kme' location: location properties: { @@ -67,7 +67,7 @@ resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' } } -resource frontendContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource frontendContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'http-gtwy-front-ctnr-kme' location: location properties: { @@ -94,7 +94,7 @@ resource frontendContainer 'Applications.Core/containers@2022-03-15-privateprevi } } -resource backendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource backendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'http-gtwy-back-rte-kme' location: location properties: { @@ -102,7 +102,7 @@ resource backendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = } } -resource backendContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource backendContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'http-gtwy-back-ctnr-kme' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-gateway-sslpassthrough.bicep b/test/functional/shared/resources/testdata/corerp-resources-gateway-sslpassthrough.bicep index ca65fdbd041..a332b0a6d44 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-gateway-sslpassthrough.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-gateway-sslpassthrough.bicep @@ -22,7 +22,7 @@ param tlscrt string @secure() param tlskey string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-gateway-sslpassthrough' location: location properties: { @@ -30,7 +30,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { +resource gateway 'Applications.Core/gateways@2023-10-01-preview' = { name: 'ssl-gtwy-gtwy' location: location properties: { @@ -46,7 +46,7 @@ resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { } } -resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'ssl-gtwy-front-rte' location: location properties: { @@ -55,7 +55,7 @@ resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' } } -resource frontendContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource frontendContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'ssl-gtwy-front-ctnr' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-gateway-tlstermination.bicep b/test/functional/shared/resources/testdata/corerp-resources-gateway-tlstermination.bicep index 525de197774..1f95b502334 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-gateway-tlstermination.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-gateway-tlstermination.bicep @@ -15,14 +15,14 @@ param tlscrt string @secure() param tlskey string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-gateway-tlstermination' properties: { environment: environment } } -resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { +resource gateway 'Applications.Core/gateways@2023-10-01-preview' = { name: 'tls-gtwy-gtwy' properties: { application: app.id @@ -38,7 +38,7 @@ resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { } } -resource certificate 'Applications.Core/secretStores@2022-03-15-privatepreview' = { +resource certificate 'Applications.Core/secretStores@2023-10-01-preview' = { name: 'tls-gtwy-cert' properties: { application: app.id @@ -54,7 +54,7 @@ resource certificate 'Applications.Core/secretStores@2022-03-15-privatepreview' } } -resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'tls-gtwy-front-rte' properties: { application: app.id @@ -62,7 +62,7 @@ resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' } } -resource frontendContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource frontendContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'tls-gtwy-front-ctnr' properties: { application: app.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-gateway.bicep b/test/functional/shared/resources/testdata/corerp-resources-gateway.bicep index c3e21de36b1..40ba1a537f8 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-gateway.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-gateway.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the image for the container resource.') param magpieimage string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-gateway' location: location properties: { @@ -20,7 +20,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { +resource gateway 'Applications.Core/gateways@2023-10-01-preview' = { name: 'http-gtwy-gtwy' location: location properties: { @@ -45,7 +45,7 @@ resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = { } } -resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'http-gtwy-front-rte' location: location properties: { @@ -54,7 +54,7 @@ resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' } } -resource frontendContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource frontendContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'http-gtwy-front-ctnr' location: location properties: { @@ -81,7 +81,7 @@ resource frontendContainer 'Applications.Core/containers@2022-03-15-privateprevi } } -resource backendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource backendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'http-gtwy-back-rte' location: location properties: { @@ -89,7 +89,7 @@ resource backendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = } } -resource backendContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource backendContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'http-gtwy-back-ctnr' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-httproute-kubernetesmetadata.bicep b/test/functional/shared/resources/testdata/corerp-resources-httproute-kubernetesmetadata.bicep index 141b6783768..68eeb49211a 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-httproute-kubernetesmetadata.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-httproute-kubernetesmetadata.bicep @@ -12,7 +12,7 @@ param port int = 3000 @description('Specifies the environment for resources.') param environment string -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-app-rte-kme' location: location properties: { @@ -37,7 +37,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'ctnr-rte-kme-ctnr' location: location properties: { @@ -58,7 +58,7 @@ resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { } } -resource httproute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = { +resource httproute 'Applications.Core/httpRoutes@2023-10-01-preview' = { name: 'ctnr-rte-kme' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-kubemetadata-cascade.bicep b/test/functional/shared/resources/testdata/corerp-resources-kubemetadata-cascade.bicep index c9e0455fbfc..54a730d0db0 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-kubemetadata-cascade.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-kubemetadata-cascade.bicep @@ -9,7 +9,7 @@ param magpieimage string @description('Specifies the port of the container resource.') param port int = 3000 -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-kmd-cascade-env' location: location properties: { @@ -40,7 +40,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-kmd-cascade-app' location: location properties: { @@ -67,7 +67,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'corerp-kmd-cascade-ctnr' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-kubemetadata-container.bicep b/test/functional/shared/resources/testdata/corerp-resources-kubemetadata-container.bicep index 8a8ffedaf2a..608c97d2ffd 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-kubemetadata-container.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-kubemetadata-container.bicep @@ -9,7 +9,7 @@ param magpieimage string @description('Specifies the port of the container resource.') param port int = 3000 -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-kmd-env' location: location properties: { @@ -20,7 +20,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-kmd-app' location: location properties: { @@ -28,7 +28,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource container 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource container 'Applications.Core/containers@2023-10-01-preview' = { name: 'corerp-kmd-ctnr' location: location properties: { diff --git a/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep-resourcecreation.step0.bicep b/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep-resourcecreation.step0.bicep index 9b2a4c6da8f..c09b173e287 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep-resourcecreation.step0.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep-resourcecreation.step0.bicep @@ -14,7 +14,7 @@ param environmentRecipeName string = 'default' @description('The environment parameters to pass to the recipe. eg: {"message": "Hello World"}') param environmentParameters object = {} -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: basename properties: { compute: { @@ -34,7 +34,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: basename properties: { environment: env.id @@ -49,7 +49,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { // This resources is intentionally NOT using a recipe. It's being created so we can reference // it inside a recipe in the next step. -resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource extender 'Applications.Core/extenders@2023-10-01-preview' = { name: '${basename}-existing' properties: { application: app.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep-resourcecreation.step1.bicep b/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep-resourcecreation.step1.bicep index ffd637a24c6..c7978199257 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep-resourcecreation.step1.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep-resourcecreation.step1.bicep @@ -5,15 +5,15 @@ param basename string @description('The recipe name used to register the recipe. eg: default') param environmentRecipeName string = 'default' -resource env 'Applications.Core/environments@2022-03-15-privatepreview' existing = { +resource env 'Applications.Core/environments@2023-10-01-preview' existing = { name: basename } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' existing = { +resource app 'Applications.Core/applications@2023-10-01-preview' existing = { name: basename } -resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource extender 'Applications.Core/extenders@2023-10-01-preview' = { name: basename properties: { application: app.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep.bicep b/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep.bicep index fb2f560f4d8..39cca4d3bf7 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-recipe-bicep.bicep @@ -18,7 +18,7 @@ param environmentParameters object = {} @description('The resource parameters to pass to the recipe. eg: {"name": "hello-world"}') param resourceParameters object = {} -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: basename properties: { compute: { @@ -38,7 +38,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: basename properties: { environment: env.id @@ -51,7 +51,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource extender 'Applications.Core/extenders@2023-10-01-preview' = { name: basename properties: { application: app.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-recipe-notfound.bicep b/test/functional/shared/resources/testdata/corerp-resources-recipe-notfound.bicep index 2396a1dd0e9..e18d9d39dcc 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-recipe-notfound.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-recipe-notfound.bicep @@ -3,7 +3,7 @@ import radius as radius @description('The base name of the test, used to qualify resources and namespaces. eg: corerp-resources-terraform-helloworld') param basename string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: basename properties: { compute: { @@ -16,7 +16,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: basename properties: { environment: env.id @@ -29,7 +29,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource extender 'Applications.Core/extenders@2023-10-01-preview' = { name: basename properties: { application: app.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-terraform-azurestorage.bicep b/test/functional/shared/resources/testdata/corerp-resources-terraform-azurestorage.bicep index 0bf9aa8fb63..edd8140e006 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-terraform-azurestorage.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-terraform-azurestorage.bicep @@ -8,7 +8,7 @@ param moduleServer string @description('Name of the Radius Application.') param appName string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-resources-terraform-azstorage-env' properties: { compute: { @@ -37,7 +37,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: appName properties: { environment: env.id @@ -50,7 +50,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/extenders@2023-10-01-preview' = { name: 'corerp-resources-terraform-azstorage' properties: { application: app.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-terraform-context.bicep b/test/functional/shared/resources/testdata/corerp-resources-terraform-context.bicep index f2334ee6e40..c994f67c3ac 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-terraform-context.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-terraform-context.bicep @@ -3,7 +3,7 @@ import radius as radius @description('The URL of the server hosting test Terraform modules.') param moduleServer string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-resources-terraform-context' properties: { compute: { @@ -28,7 +28,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-terraform-context' properties: { environment: env.id @@ -41,7 +41,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/extenders@2023-10-01-preview' = { name: 'corerp-resources-terraform-context' properties: { application: app.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-terraform-recipe-terraform.bicep b/test/functional/shared/resources/testdata/corerp-resources-terraform-recipe-terraform.bicep index dea8afd4dfb..401102f47f3 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-terraform-recipe-terraform.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-terraform-recipe-terraform.bicep @@ -21,7 +21,7 @@ param environmentParameters object = {} @description('The resource parameters to pass to the recipe. eg: {"name": "hello-world"}') param resourceParameters object = {} -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: basename properties: { compute: { @@ -41,7 +41,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: basename properties: { environment: env.id @@ -54,7 +54,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/extenders@2023-10-01-preview' = { name: basename properties: { application: app.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-terraform-redis.bicep b/test/functional/shared/resources/testdata/corerp-resources-terraform-redis.bicep index 310ef9c9ef2..597fa5a421e 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-terraform-redis.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-terraform-redis.bicep @@ -9,7 +9,7 @@ param redisCacheName string @description('Name of the Radius Application.') param appName string -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-resources-terraform-redis-env' properties: { compute: { @@ -28,7 +28,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: appName properties: { environment: env.id @@ -41,7 +41,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource webapp 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource webapp 'Applications.Core/extenders@2023-10-01-preview' = { name: 'corerp-resources-terraform-redis' properties: { application: app.id diff --git a/test/functional/shared/resources/testdata/corerp-resources-volume-azure-keyvault.bicep b/test/functional/shared/resources/testdata/corerp-resources-volume-azure-keyvault.bicep index 278d3adb1fa..f7d91569e0d 100644 --- a/test/functional/shared/resources/testdata/corerp-resources-volume-azure-keyvault.bicep +++ b/test/functional/shared/resources/testdata/corerp-resources-volume-azure-keyvault.bicep @@ -24,7 +24,7 @@ param rootScope string = resourceGroup().id param oidcIssuer string = 'https://radiusoidc.blob.core.windows.net/kubeoidc/' -resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { +resource env 'Applications.Core/environments@2023-10-01-preview' = { name: 'corerp-azure-workload-env' location: location properties: { @@ -45,7 +45,7 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = { } } -resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { +resource app 'Applications.Core/applications@2023-10-01-preview' = { name: 'corerp-resources-volume-azure-keyvault' location: location properties: { @@ -59,7 +59,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = { } } -resource keyvaultVolContainer 'Applications.Core/containers@2022-03-15-privatepreview' = { +resource keyvaultVolContainer 'Applications.Core/containers@2023-10-01-preview' = { name: 'volume-azkv-ctnr' location: location properties: { @@ -82,7 +82,7 @@ resource keyvaultVolContainer 'Applications.Core/containers@2022-03-15-privatepr } } -resource keyvaultVolume 'Applications.Core/volumes@2022-03-15-privatepreview' = { +resource keyvaultVolume 'Applications.Core/volumes@2023-10-01-preview' = { name: 'volume-azkv' location: location properties: { diff --git a/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/_resource-creation.bicep b/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/_resource-creation.bicep index 13c5a601c50..57fd43d280d 100644 --- a/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/_resource-creation.bicep +++ b/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/_resource-creation.bicep @@ -6,7 +6,7 @@ var basename = context.resource.name // This is not a realistic user scenario (creating a Radius resource in a recipe). We're // doing things this way to test the UCP functionality without using cloud resources. -resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource extender 'Applications.Core/extenders@2023-10-01-preview' = { name: '${basename}-module' properties: { application: context.application.id diff --git a/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/language-failure.bicep b/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/language-failure.bicep index 1ca9e662a95..e35fde96b42 100644 --- a/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/language-failure.bicep +++ b/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/language-failure.bicep @@ -6,7 +6,7 @@ var basename = context.resource.name // This is not a realistic user scenario (creating a Radius resource in a recipe). We're // doing things this way to test a bicep language failure without using cloud resources. -resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource extender 'Applications.Core/extenders@2023-10-01-preview' = { name: '${basename}-failure' properties: { application: context.application.id diff --git a/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/resource-creation-failure.bicep b/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/resource-creation-failure.bicep index f626178d2cf..f4e37f52db8 100644 --- a/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/resource-creation-failure.bicep +++ b/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/resource-creation-failure.bicep @@ -6,7 +6,7 @@ var basename = context.resource.name // This is not a realistic user scenario (creating a Radius resource in a recipe). We're // doing things this way to test a provisioning failure without using cloud resources. -resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource extender 'Applications.Core/extenders@2023-10-01-preview' = { name: '${basename}-failure' properties: { application: 'not an id, just deal with it' diff --git a/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/resource-creation.bicep b/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/resource-creation.bicep index f5dbd707125..389fb83624a 100644 --- a/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/resource-creation.bicep +++ b/test/functional/shared/resources/testdata/recipes/test-bicep-recipes/resource-creation.bicep @@ -6,7 +6,7 @@ var basename = context.resource.name // This is not a realistic user scenario (creating a Radius resource in a recipe). We're // doing things this way to test the UCP functionality without using cloud resources. -resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { +resource extender 'Applications.Core/extenders@2023-10-01-preview' = { name: '${basename}-created' properties: { application: context.application.id @@ -17,7 +17,7 @@ resource extender 'Applications.Core/extenders@2022-03-15-privatepreview' = { } #disable-next-line no-unused-existing-resources -resource existing 'Applications.Core/extenders@2022-03-15-privatepreview' existing = { +resource existing 'Applications.Core/extenders@2023-10-01-preview' existing = { name: '${basename}-existing' } diff --git a/test/functional/shared/rptest.go b/test/functional/shared/rptest.go index 42a28655327..01896f92f81 100644 --- a/test/functional/shared/rptest.go +++ b/test/functional/shared/rptest.go @@ -44,7 +44,7 @@ var radiusControllerLogSync sync.Once const ( ContainerLogPathEnvVar = "RADIUS_CONTAINER_LOG_PATH" - APIVersion = "2022-03-15-privatepreview" + APIVersion = "2023-10-01-preview" TestNamespace = "kind-radius" AWSDeletionRetryLimit = 5 diff --git a/test/functional/ucp/aws_credential_test.go b/test/functional/ucp/aws_credential_test.go index c0c79abd924..35b3788beba 100644 --- a/test/functional/ucp/aws_credential_test.go +++ b/test/functional/ucp/aws_credential_test.go @@ -25,7 +25,7 @@ import ( "testing" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/stretchr/testify/require" ) diff --git a/test/functional/ucp/aws_test.go b/test/functional/ucp/aws_test.go index 25657113bb7..53fa44a39de 100644 --- a/test/functional/ucp/aws_test.go +++ b/test/functional/ucp/aws_test.go @@ -31,7 +31,7 @@ import ( awsconfig "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/service/cloudcontrol" "github.com/google/uuid" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/aws" "github.com/radius-project/radius/pkg/ucp/frontend/controller/awsproxy" "github.com/radius-project/radius/test/validation" @@ -58,7 +58,7 @@ func Test_AWS_DeleteResource(t *testing.T) { resourceIDParts := strings.Split(resourceID, "/") resourceIDParts = resourceIDParts[:len(resourceIDParts)-1] resourceID = strings.Join(resourceIDParts, "/") - deleteURL := fmt.Sprintf("%s%s/:delete?api-version=%s", url, resourceID, v20220901privatepreview.Version) + deleteURL := fmt.Sprintf("%s%s/:delete?api-version=%s", url, resourceID, v20231001preview.Version) deleteRequestBody := map[string]any{ "properties": map[string]any{ "BucketName": bucketName, @@ -120,7 +120,7 @@ func Test_AWS_ListResources(t *testing.T) { resourceIDParts := strings.Split(resourceID, "/") resourceIDParts = resourceIDParts[:len(resourceIDParts)-1] resourceID = strings.Join(resourceIDParts, "/") - listURL := fmt.Sprintf("%s%s?api-version=%s", url, resourceID, v20220901privatepreview.Version) + listURL := fmt.Sprintf("%s%s?api-version=%s", url, resourceID, v20231001preview.Version) // Issue the List Request listRequest, err := http.NewRequest(http.MethodGet, listURL, nil) diff --git a/test/functional/ucp/azure_credential_test.go b/test/functional/ucp/azure_credential_test.go index 718b8a22032..45e127001b8 100644 --- a/test/functional/ucp/azure_credential_test.go +++ b/test/functional/ucp/azure_credential_test.go @@ -25,7 +25,7 @@ import ( "testing" "github.com/radius-project/radius/pkg/to" - ucp "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + ucp "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/stretchr/testify/require" ) diff --git a/test/functional/ucp/plane_test.go b/test/functional/ucp/plane_test.go index 0cf26ddfb38..bea84d13cf3 100644 --- a/test/functional/ucp/plane_test.go +++ b/test/functional/ucp/plane_test.go @@ -26,7 +26,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" "github.com/radius-project/radius/pkg/to" - v20220901privatepreview "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/rest" "github.com/stretchr/testify/require" ) @@ -34,7 +34,7 @@ import ( func Test_Plane_Operations(t *testing.T) { test := NewUCPTest(t, "Test_Plane_Operations", func(t *testing.T, url string, roundTripper http.RoundTripper) { planeID := "/planes/testtype/testplane" - apiVersion := v20220901privatepreview.Version + apiVersion := v20231001preview.Version planeURL := fmt.Sprintf("%s%s?api-version=%s", url, planeID, apiVersion) // By default, we configure default planes in UCP. Verify that by calling List Planes @@ -46,13 +46,13 @@ func Test_Plane_Operations(t *testing.T) { }) // Create Plane - testPlane := v20220901privatepreview.PlaneResource{ + testPlane := v20231001preview.PlaneResource{ ID: to.Ptr(planeID), Type: to.Ptr("System.Planes/testtype"), Name: to.Ptr("testplane"), Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220901privatepreview.PlaneResourceProperties{ - Kind: to.Ptr(v20220901privatepreview.PlaneKindUCPNative), + Properties: &v20231001preview.PlaneResourceProperties{ + Kind: to.Ptr(v20231001preview.PlaneKindUCPNative), ResourceProviders: map[string]*string{ "example.com": to.Ptr("http://localhost:8000"), }, @@ -90,7 +90,7 @@ func Test_Plane_Operations(t *testing.T) { test.Test(t) } -func createPlane(t *testing.T, roundTripper http.RoundTripper, url string, plane v20220901privatepreview.PlaneResource) { +func createPlane(t *testing.T, roundTripper http.RoundTripper, url string, plane v20231001preview.PlaneResource) { body, err := json.Marshal(plane) require.NoError(t, err) createRequest, err := NewUCPRequest( @@ -128,7 +128,7 @@ func getPlane(t *testing.T, roundTripper http.RoundTripper, url string) (rest.Pl return plane, result.StatusCode } -func listPlanes(t *testing.T, roundTripper http.RoundTripper, url string) v20220901privatepreview.PlaneResourceListResult { +func listPlanes(t *testing.T, roundTripper http.RoundTripper, url string) v20231001preview.PlaneResourceListResult { listRequest, err := http.NewRequest( http.MethodGet, url, @@ -144,7 +144,7 @@ func listPlanes(t *testing.T, roundTripper http.RoundTripper, url string) v20220 defer body.Close() payload, err := io.ReadAll(body) require.NoError(t, err) - listOfPlanes := v20220901privatepreview.PlaneResourceListResult{} + listOfPlanes := v20231001preview.PlaneResourceListResult{} require.NoError(t, json.Unmarshal(payload, &listOfPlanes)) return listOfPlanes } diff --git a/test/functional/ucp/proxy_test.go b/test/functional/ucp/proxy_test.go index 2f934ca7970..1dd48ccf5f4 100644 --- a/test/functional/ucp/proxy_test.go +++ b/test/functional/ucp/proxy_test.go @@ -27,7 +27,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" "github.com/radius-project/radius/pkg/cli/kubernetes" "github.com/radius-project/radius/pkg/to" - v20220901privatepreview "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/stretchr/testify/require" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" @@ -52,16 +52,16 @@ func Test_ProxyOperations(t *testing.T) { // Create a Non UCP-Native Plane with TestRP so that UCP will use the TestRP service address to forward requests to the RP nonNativePlaneID := "/planes/testnonnativetype/nonnativeplane" - apiVersion := v20220901privatepreview.Version + apiVersion := v20231001preview.Version nonNativePlaneURL := fmt.Sprintf("%s%s?api-version=%s", url, nonNativePlaneID, apiVersion) - nonNativePlane := v20220901privatepreview.PlaneResource{ + nonNativePlane := v20231001preview.PlaneResource{ ID: to.Ptr(nonNativePlaneID), Type: to.Ptr("System.Planes/testnonnativetype"), Name: to.Ptr("nonnativeplane"), Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220901privatepreview.PlaneResourceProperties{ - Kind: to.Ptr(v20220901privatepreview.PlaneKindAWS), + Properties: &v20231001preview.PlaneResourceProperties{ + Kind: to.Ptr(v20231001preview.PlaneKindAWS), URL: to.Ptr(fmt.Sprintf("http://%s.%s:%d", TestRPServiceName, RadiusNamespace, TestRPPortNumber)), }, } @@ -85,13 +85,13 @@ func Test_ProxyOperations(t *testing.T) { // Create UCP-native plane with TestRP so that UCP will use the TestRP service address to forward requests to the RP nativePlaneID := "/planes/testnativetype/testnativeplane" nativeplaneURL := fmt.Sprintf("%s%s?api-version=%s", url, nativePlaneID, apiVersion) - nativePlane := v20220901privatepreview.PlaneResource{ + nativePlane := v20231001preview.PlaneResource{ ID: to.Ptr(nonNativePlaneID), Type: to.Ptr("System.Planes/testnativetype"), Name: to.Ptr("testnativeplane"), Location: to.Ptr(v1.LocationGlobal), - Properties: &v20220901privatepreview.PlaneResourceProperties{ - Kind: to.Ptr(v20220901privatepreview.PlaneKindUCPNative), + Properties: &v20231001preview.PlaneResourceProperties{ + Kind: to.Ptr(v20231001preview.PlaneKindUCPNative), ResourceProviders: map[string]*string{ "Applications.Test": to.Ptr(fmt.Sprintf("http://%s.%s:%d", TestRPServiceName, RadiusNamespace, TestRPPortNumber)), }, diff --git a/test/functional/ucp/resourcegroup_test.go b/test/functional/ucp/resourcegroup_test.go index af5b2e425ee..fd48571d6f0 100644 --- a/test/functional/ucp/resourcegroup_test.go +++ b/test/functional/ucp/resourcegroup_test.go @@ -27,7 +27,7 @@ import ( v1 "github.com/radius-project/radius/pkg/armrpc/api/v1" "github.com/radius-project/radius/pkg/to" - v20220901privatepreview "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + v20231001preview "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/radius-project/radius/pkg/ucp/frontend/controller/resourcegroups" "github.com/stretchr/testify/require" ) @@ -36,7 +36,7 @@ func Test_ResourceGroup_Operations(t *testing.T) { test := NewUCPTest(t, "Test_ResourceGroup_Operations", func(t *testing.T, url string, roundTripper http.RoundTripper) { // Create resource groups rgID := "/planes/radius/local/resourcegroups/test-RG" - apiVersion := v20220901privatepreview.Version + apiVersion := v20231001preview.Version rgURL := fmt.Sprintf("%s%s?api-version=%s", url, rgID, apiVersion) t.Cleanup(func() { @@ -53,7 +53,7 @@ func Test_ResourceGroup_Operations(t *testing.T) { // Get Resource Group by calling lower case URL. rg, statusCode := getResourceGroup(t, roundTripper, strings.ToLower(rgURL)) - expectedResourceGroup := v20220901privatepreview.ResourceGroupResource{ + expectedResourceGroup := v20231001preview.ResourceGroupResource{ ID: to.Ptr(rgID), Name: to.Ptr("test-RG"), Tags: map[string]*string{}, @@ -75,7 +75,7 @@ func Test_ResourceGroup_Operations(t *testing.T) { } func createResourceGroup(t *testing.T, roundTripper http.RoundTripper, url string) { - model := v20220901privatepreview.ResourceGroupResource{ + model := v20231001preview.ResourceGroupResource{ Location: to.Ptr(v1.LocationGlobal), } @@ -97,7 +97,7 @@ func createResourceGroup(t *testing.T, roundTripper http.RoundTripper, url strin t.Logf("Resource group: %s created/updated successfully", url) } -func listResourceGroups(t *testing.T, roundTripper http.RoundTripper, url string) v20220901privatepreview.ResourceGroupResourceListResult { +func listResourceGroups(t *testing.T, roundTripper http.RoundTripper, url string) v20231001preview.ResourceGroupResourceListResult { listRgsRequest, err := NewUCPRequest( http.MethodGet, url, @@ -114,14 +114,14 @@ func listResourceGroups(t *testing.T, roundTripper http.RoundTripper, url string payload, err := io.ReadAll(body) require.NoError(t, err) - items := v20220901privatepreview.ResourceGroupResourceListResult{} + items := v20231001preview.ResourceGroupResourceListResult{} err = json.Unmarshal(payload, &items) require.NoError(t, err) return items } -func getResourceGroup(t *testing.T, roundTripper http.RoundTripper, url string) (v20220901privatepreview.ResourceGroupResource, int) { +func getResourceGroup(t *testing.T, roundTripper http.RoundTripper, url string) (v20231001preview.ResourceGroupResource, int) { getRgRequest, err := NewUCPRequest( http.MethodGet, url, @@ -137,7 +137,7 @@ func getResourceGroup(t *testing.T, roundTripper http.RoundTripper, url string) payload, err := io.ReadAll(body) require.NoError(t, err) - resourceGroup := v20220901privatepreview.ResourceGroupResource{} + resourceGroup := v20231001preview.ResourceGroupResource{} err = json.Unmarshal(payload, &resourceGroup) require.NoError(t, err) diff --git a/test/radcli/shared.go b/test/radcli/shared.go index b0a85de67dc..c761d23dfa9 100644 --- a/test/radcli/shared.go +++ b/test/radcli/shared.go @@ -39,7 +39,7 @@ import ( "github.com/radius-project/radius/pkg/cli/kubernetes" "github.com/radius-project/radius/pkg/cli/output" "github.com/radius-project/radius/pkg/cli/prompt" - "github.com/radius-project/radius/pkg/ucp/api/v20220901privatepreview" + "github.com/radius-project/radius/pkg/ucp/api/v20231001preview" "github.com/spf13/cobra" "github.com/spf13/pflag" "github.com/spf13/viper" @@ -284,9 +284,9 @@ func CreateResource(resourceType string, resourceName string) generated.GenericR } // // CreateResourceGroup creates a ResourceGroupResource object with the given name and a generated ID. -func CreateResourceGroup(resourceGroupName string) v20220901privatepreview.ResourceGroupResource { +func CreateResourceGroup(resourceGroupName string) v20231001preview.ResourceGroupResource { id := fmt.Sprintf("/planes/radius/local/resourcegroups/%s", resourceGroupName) - return v20220901privatepreview.ResourceGroupResource{ + return v20231001preview.ResourceGroupResource{ Name: &resourceGroupName, ID: &id, } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_CreateOrUpdate.json b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_CreateOrUpdate.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_CreateOrUpdate.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Applications_CreateOrUpdate.json index 14c050a9278..e34eb83055d 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_CreateOrUpdate.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "applicationName": "app0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ApplicationResource": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_Delete.json b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_Delete.json similarity index 85% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_Delete.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Applications_Delete.json index fb1d0bce845..44dafd485ea 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_Delete.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "applicationName": "app0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_Get.json b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_Get.json similarity index 95% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_Get.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Applications_Get.json index ff352ff3883..1d7e56248c8 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Applications_Get.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_Get.json @@ -3,7 +3,7 @@ "title": "Get an application resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "applicationName": "app0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_List.json b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_List.json similarity index 94% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_List.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Applications_List.json index a043784e0d7..47dd4b8e258 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_List.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_List.json @@ -3,7 +3,7 @@ "title": "Get applications by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -45,7 +45,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_ListByScope.json b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_ListByScope.json similarity index 89% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_ListByScope.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Applications_ListByScope.json index 0367e5fb542..8f728b603ad 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_ListByScope.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_ListByScope.json @@ -3,7 +3,7 @@ "title": "Get applications by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -28,7 +28,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/applications?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/applications?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_Update.json b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_Update.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_Update.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Applications_Update.json index b4dc7bc7d5c..d59b56bebe4 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Applications_Update.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Applications_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "applicationName": "app0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ApplicationResource": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_CreateOrUpdate.json b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_CreateOrUpdate.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_CreateOrUpdate.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Containers_CreateOrUpdate.json index e565785399e..65816a2f8c7 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_CreateOrUpdate.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "containerName": "app0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ContainerResource": { "properties": { "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_CreateOrUpdate_BaseManifest.json b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_CreateOrUpdate_BaseManifest.json similarity index 98% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_CreateOrUpdate_BaseManifest.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Containers_CreateOrUpdate_BaseManifest.json index c9198a6a577..b8dbc7abc60 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_CreateOrUpdate_BaseManifest.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_CreateOrUpdate_BaseManifest.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "containerName": "app0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ContainerResource": { "properties": { "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_Delete.json b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_Delete.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_Delete.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Containers_Delete.json index 9a9bf28c14b..99ae7550886 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_Delete.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "containerName": "app0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_Get.json b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_Get.json similarity index 96% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_Get.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Containers_Get.json index 371b16c101f..cdc446eb74d 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_Get.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_Get.json @@ -3,7 +3,7 @@ "title": "Get an container resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "containerName": "container0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_List.json b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_List.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_List.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Containers_List.json index a19eab3370a..8312e6d76f5 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Containers_List.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_List.json @@ -3,7 +3,7 @@ "title": "List containers at resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -96,7 +96,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/containers?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/containers?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_ListByScope.json b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_ListByScope.json similarity index 96% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_ListByScope.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Containers_ListByScope.json index 48084fdec08..5fdcfdd5760 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_ListByScope.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_ListByScope.json @@ -3,7 +3,7 @@ "title": "List containers at root scope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -99,7 +99,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/containers?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/containers?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_Update.json b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_Update.json similarity index 98% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_Update.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Containers_Update.json index b923bd1ed68..b276b045fe8 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Containers_Update.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Containers_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "containerName": "container0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ContainerResource": { "properties": { "application": "/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/applications/app0", diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_CreateOrUpdate.json b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_CreateOrUpdate.json similarity index 98% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_CreateOrUpdate.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Environments_CreateOrUpdate.json index 1f2ba81c859..62af5e98fec 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_CreateOrUpdate.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "environmentName": "env0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "EnvironmentResource": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_DeleteEnv0.json b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_DeleteEnv0.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_DeleteEnv0.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Environments_DeleteEnv0.json index 3f57144f674..0bc8914c889 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_DeleteEnv0.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_DeleteEnv0.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "environmentName": "env0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_GetEnv0.json b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_GetEnv0.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_GetEnv0.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Environments_GetEnv0.json index 43070c47721..17f91750b1b 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_GetEnv0.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_GetEnv0.json @@ -3,7 +3,7 @@ "title": "Get an environment resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "environmentName": "env0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_GetRecipeMetadata.json b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_GetRecipeMetadata.json similarity index 94% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_GetRecipeMetadata.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Environments_GetRecipeMetadata.json index d17ab65f660..3ab0db80cda 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Environments_GetRecipeMetadata.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_GetRecipeMetadata.json @@ -3,7 +3,7 @@ "title": "Get recipe metadata from environment", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "environmentName": "env0", "recipeName": "mongotest" }, diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_List.json b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_List.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_List.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Environments_List.json index 639bf67f6b6..0dba7a53ee5 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_List.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_List.json @@ -3,7 +3,7 @@ "title": "Get environments by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -118,7 +118,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/environments?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/environments?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_ListByScope.json b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_ListByScope.json similarity index 94% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_ListByScope.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Environments_ListByScope.json index cc9fe2cf6d5..2ad10e8dc35 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_ListByScope.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_ListByScope.json @@ -3,7 +3,7 @@ "title": "Get environments by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -58,7 +58,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/environments?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/environments?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_PatchEnv0.json b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_PatchEnv0.json similarity index 98% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_PatchEnv0.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Environments_PatchEnv0.json index a12a1ad8e27..54298decfe0 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Environments_PatchEnv0.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Environments_PatchEnv0.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "environmentName": "env0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "EnvironmentResource": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_CreateOrUpdate.json b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_CreateOrUpdate.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_CreateOrUpdate.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Extenders_CreateOrUpdate.json index 36a863f2f1d..76b4f159d16 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_CreateOrUpdate.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "extenderName": "extender0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ExtenderParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_CreateOrUpdateWithRecipe.json b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_CreateOrUpdateWithRecipe.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_CreateOrUpdateWithRecipe.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Extenders_CreateOrUpdateWithRecipe.json index f7b994db37e..15503ec0808 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_CreateOrUpdateWithRecipe.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_CreateOrUpdateWithRecipe.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "extenderName": "extender0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ExtenderParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_Delete.json b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_Delete.json similarity index 86% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_Delete.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Extenders_Delete.json index f8241d9c175..08aacc41cee 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_Delete.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "extenderName": "extender0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_Get.json b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_Get.json similarity index 95% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_Get.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Extenders_Get.json index a6883eaa245..5a8ddbe87a9 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_Get.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_Get.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "extenderName": "extender0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_List.json b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_List.json similarity index 92% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_List.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Extenders_List.json index 544a601a762..9246caa3335 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_List.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_List.json @@ -3,7 +3,7 @@ "title": "List extender resources by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -27,7 +27,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/extenders?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/extenders?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_ListByRootScope.json b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_ListByRootScope.json similarity index 88% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_ListByRootScope.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Extenders_ListByRootScope.json index 29aaa22970b..b5e64de39af 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_ListByRootScope.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List extender resources by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -27,7 +27,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/extenders?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/extenders?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_ListSecrets.json b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_ListSecrets.json similarity index 90% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_ListSecrets.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Extenders_ListSecrets.json index 3ba02d58b59..502d4831043 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Extenders_ListSecrets.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_ListSecrets.json @@ -5,7 +5,7 @@ "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "extenderName": "extender0" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_Update.json b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_Update.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_Update.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Extenders_Update.json index ebdcfcd21a4..854d2f8b51d 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Extenders_Update.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Extenders_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup", "extenderName": "extender0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "ExtenderParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_CreateOrUpdate.json b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_CreateOrUpdate.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_CreateOrUpdate.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Gateways_CreateOrUpdate.json index cecb497c191..9d3e8c65683 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_CreateOrUpdate.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "gatewayName": "gateway0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "GatewayResource": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_Delete.json b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_Delete.json similarity index 84% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_Delete.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Gateways_Delete.json index 10c4503eb1c..f4f82c181a6 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_Delete.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "gatewayName": "gateway0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_Get.json b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_Get.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_Get.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Gateways_Get.json index e71430e547c..0e133935e50 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_Get.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_Get.json @@ -3,7 +3,7 @@ "title": "Get an gateway resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "gatewayName": "gateway0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_List.json b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_List.json similarity index 92% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_List.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Gateways_List.json index 35f79c6018a..72e2d4df848 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_List.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_List.json @@ -3,7 +3,7 @@ "title": "List gateway resources", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -30,7 +30,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/gateways?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/gateways?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_ListByScope.json b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_ListByScope.json similarity index 93% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_ListByScope.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Gateways_ListByScope.json index 7e69b93d1fb..d0ae6fe7d2e 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Gateways_ListByScope.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_ListByScope.json @@ -3,7 +3,7 @@ "title": "List gateway resources by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -52,7 +52,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/gateways?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/gateways?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_Update.json b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_Update.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_Update.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Gateways_Update.json index cbf4bb33832..18520dff3a5 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Gateways_Update.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Gateways_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "gatewayName": "gateway0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "GatewayResource": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_CreateOrUpdate.json b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_CreateOrUpdate.json similarity index 94% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_CreateOrUpdate.json rename to typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_CreateOrUpdate.json index 41f0d241024..43774c36861 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_CreateOrUpdate.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "httpRouteName": "route0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "HttpRouteResource": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_Delete.json b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_Delete.json similarity index 85% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_Delete.json rename to typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_Delete.json index 0a2aa565419..18576a8128d 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_Delete.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "httpRouteName": "route0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_Get.json b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_Get.json similarity index 93% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_Get.json rename to typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_Get.json index e9e24114615..a05a33f0542 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_Get.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_Get.json @@ -3,7 +3,7 @@ "title": "Get a httpRoutes resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "httpRouteName": "route0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_List.json b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_List.json similarity index 92% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_List.json rename to typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_List.json index 134bef7b10c..ba6942a4701 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_List.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_List.json @@ -3,7 +3,7 @@ "title": "List httpRoutes resources by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -28,7 +28,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/httproutes?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/httproutes?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_ListByScope.json b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_ListByScope.json similarity index 89% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_ListByScope.json rename to typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_ListByScope.json index cd929b0da15..7fa44644e92 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/HttpRoutes_ListByScope.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_ListByScope.json @@ -3,7 +3,7 @@ "title": "List httpRoutes resources by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -28,7 +28,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/httproutes?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/httproutes?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_Update.json b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_Update.json similarity index 94% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_Update.json rename to typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_Update.json index 46cd2cf0745..78aa9a4126a 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/HttpRoutes_Update.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/HttpRoutes_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "httpRouteName": "route0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "HttpRouteResource": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Operations_List.json b/typespec/Applications.Core/examples/2023-10-01-preview/Operations_List.json similarity index 99% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Operations_List.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Operations_List.json index d5a1aaa939b..298ccc61764 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Operations_List.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Operations_List.json @@ -2,7 +2,7 @@ "operationId": "Operations_List", "title": "Get the operations for the Applications.Core resource provider", "parameters": { - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_CreateOrUpdate.json b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_CreateOrUpdate.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_CreateOrUpdate.json rename to typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_CreateOrUpdate.json index 8350409c65a..e5292579194 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_CreateOrUpdate.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "secretazkv", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SecretStoreResource": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_CreateOrUpdateValueFrom.json b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_CreateOrUpdateValueFrom.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_CreateOrUpdateValueFrom.json rename to typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_CreateOrUpdateValueFrom.json index 470379feb98..6a1e7daaa87 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_CreateOrUpdateValueFrom.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_CreateOrUpdateValueFrom.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "secretazkv", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SecretStoreResource": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Delete.json b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Delete.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Delete.json rename to typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Delete.json index 2511b390564..464984749d6 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Delete.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "volumeName": "keyvault0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Get.json b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Get.json similarity index 94% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Get.json rename to typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Get.json index 4ed53c64f24..32a9ff7fcf2 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Get.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Get.json @@ -3,7 +3,7 @@ "title": "Get a secret store", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "secretStoreName": "secret0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Get_AzureKeyVault.json b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Get_AzureKeyVault.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Get_AzureKeyVault.json rename to typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Get_AzureKeyVault.json index 635c47fbfb6..8f5c082c708 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_Get_AzureKeyVault.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Get_AzureKeyVault.json @@ -3,7 +3,7 @@ "title": "Get a secret store for Azure Keyvault", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "secretStoreName": "secretazkv" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_List.json b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_List.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_List.json rename to typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_List.json index 3e66a39aba9..4d95d3f6653 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/SecretStores_List.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_List.json @@ -3,7 +3,7 @@ "title": "List secret stores", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -53,7 +53,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/secretStores?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/secretStores?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_ListSecrets.json b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_ListSecrets.json similarity index 89% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_ListSecrets.json rename to typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_ListSecrets.json index b5e9ed9e71b..04d8bb7175a 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_ListSecrets.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_ListSecrets.json @@ -3,7 +3,7 @@ "title": "List secret stores", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "secretStoreName": "secret0" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Update.json b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Update.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Update.json rename to typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Update.json index c04faeab9e3..5b8e00b362d 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/SecretStores_Update.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/SecretStores_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "secretazkv", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SecretStoreResource": { "location": "global", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_CreateOrUpdate.json b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_CreateOrUpdate.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_CreateOrUpdate.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Volumes_CreateOrUpdate.json index db34af30744..39d41f18586 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_CreateOrUpdate.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "volumeName": "keyvault0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "HttpRouteResource": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_Delete.json b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_Delete.json similarity index 84% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_Delete.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Volumes_Delete.json index ec812ffa7e4..2540fbbc956 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_Delete.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "volumeName": "keyvault0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_Get.json b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_Get.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_Get.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Volumes_Get.json index 5d3c065c62d..65624ce9c88 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_Get.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_Get.json @@ -3,7 +3,7 @@ "title": "Get a volume", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "volumeName": "keyvault0" }, "responses": { diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_List.json b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_List.json similarity index 97% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_List.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Volumes_List.json index f52dc9ae535..0bf504f3b85 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_List.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_List.json @@ -3,7 +3,7 @@ "title": "List volumes by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -93,7 +93,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/volumes?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Core/volumes?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_ListByScope.json b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_ListByScope.json similarity index 96% rename from typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_ListByScope.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Volumes_ListByScope.json index 4d14bacbc3f..530811cb18e 100644 --- a/typespec/Applications.Core/examples/2022-03-15-privatepreview/Volumes_ListByScope.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_ListByScope.json @@ -3,7 +3,7 @@ "title": "List volumes by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -94,7 +94,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/volumes?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Core/volumes?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_Update.json b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_Update.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_Update.json rename to typespec/Applications.Core/examples/2023-10-01-preview/Volumes_Update.json index 413bb773d34..a8c25aa466c 100644 --- a/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/examples/Volumes_Update.json +++ b/typespec/Applications.Core/examples/2023-10-01-preview/Volumes_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "volumeName": "keyvault0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "HttpRouteResource": { "location": "West US", "properties": { diff --git a/typespec/Applications.Core/main.tsp b/typespec/Applications.Core/main.tsp index 376431ea995..65fcd6adcd2 100644 --- a/typespec/Applications.Core/main.tsp +++ b/typespec/Applications.Core/main.tsp @@ -41,8 +41,8 @@ interface Operations extends Azure.ResourceManager.Operations {} @doc("Supported API versions for the Applications.Core resource provider.") enum Versions { - @doc("2022-03-15-privatepreview") + @doc("2023-10-01-preview") @useDependency(Azure.Core.Versions.v1_0_Preview_2) @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) - v2022_03_15_privatepreview: "2022-03-15-privatepreview", + v2023_10_01_preview: "2023-10-01-preview", } diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_CreateOrUpdate.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_CreateOrUpdate.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_CreateOrUpdate.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_CreateOrUpdate.json index bcc72c4ab8f..12d7590b534 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_CreateOrUpdate.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "pubSubBrokerName": "daprpubsub0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "PubSubBrokerParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_CreateOrUpdateWithRecipe.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_CreateOrUpdateWithRecipe.json similarity index 98% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_CreateOrUpdateWithRecipe.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_CreateOrUpdateWithRecipe.json index 83391aca675..dc6c0dd2d2a 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_CreateOrUpdateWithRecipe.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_CreateOrUpdateWithRecipe.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "pubSubBrokerName": "daprpubsub0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "PubSubBrokerParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_Delete.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_Delete.json similarity index 86% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_Delete.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_Delete.json index be9fe774636..1a2b2092807 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_Delete.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup/resourceGroups/testGroup", "pubSubBrokerName": "daprpubsub0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_Get.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_Get.json similarity index 96% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_Get.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_Get.json index eaaad281b03..a42b3a0e4a5 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_Get.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_Get.json @@ -3,7 +3,7 @@ "title": "Get a PubSubBroker resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "pubSubBrokerName": "daprpubsub0" }, "responses": { diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_List.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_List.json similarity index 96% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_List.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_List.json index 28213b5b371..8375beaa8bb 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/PubSubBrokers_List.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_List.json @@ -3,7 +3,7 @@ "title": "List a PubSubBroker resource by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -66,7 +66,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/pubSubBrokers?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/pubSubBrokers?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_ListByRootScope.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_ListByRootScope.json similarity index 93% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_ListByRootScope.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_ListByRootScope.json index a10cf160c70..f339de48399 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_ListByRootScope.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List a PubSubBroker resource by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -49,7 +49,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/pubSubBrokers?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/pubSubBrokers?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_Update.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_Update.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_Update.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_Update.json index f22de307738..d5c98f29d1d 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/PubSubBrokers_Update.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/PubSubBrokers_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "pubSubBrokerName": "daprpubsub0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "PubSubBrokerParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_CreateOrUpdate.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_CreateOrUpdate.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_CreateOrUpdate.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_CreateOrUpdate.json index 7cdd6b3396a..9fd05878729 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_CreateOrUpdate.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "daprsecretstore0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SecretStoreParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_Delete.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_Delete.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_Delete.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_Delete.json index d00bd593fe2..0744553b204 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_Delete.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "daprsecretstore0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_Get.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_Get.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_Get.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_Get.json index 38340c89f72..33e674b2903 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_Get.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_Get.json @@ -3,7 +3,7 @@ "title": "Get a SecretStore resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "secretStoreName": "daprsecretstore0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_List.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_List.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_List.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_List.json index 4c2a74ee3e6..fc273195f1c 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_List.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_List.json @@ -3,7 +3,7 @@ "title": "List SecretStore resources by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -44,7 +44,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/secretStores?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/secretStores?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_ListByRootScope.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_ListByRootScope.json similarity index 93% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_ListByRootScope.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_ListByRootScope.json index b66685650bd..b01f25fdfb1 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/SecretStores_ListByRootScope.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List SecretStore resources by rootScope", "parameters": { "rootScope": "/planes/radius/local/resourceGroups", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -44,7 +44,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/secretStores?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/secretStores?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_Update.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_Update.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_Update.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_Update.json index 974e788940d..319e3d8dc54 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/SecretStores_Update.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/SecretStores_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "secretStoreName": "daprsecretstore0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SecretStoreParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_CreateOrUpdate.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_CreateOrUpdate.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_CreateOrUpdate.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_CreateOrUpdate.json index 48912c21865..2baaa6b55b1 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_CreateOrUpdate.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "stateStoreName": "daprstatestore0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "StateStoreParameters": { "location": "West US", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_CreateOrUpdateWithRecipe.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_CreateOrUpdateWithRecipe.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_CreateOrUpdateWithRecipe.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_CreateOrUpdateWithRecipe.json index df781c63f4c..149fec66728 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_CreateOrUpdateWithRecipe.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_CreateOrUpdateWithRecipe.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "stateStoreName": "daprstatestore0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "StateStoreParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_Delete.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_Delete.json similarity index 85% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_Delete.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_Delete.json index f65fe45f3a6..bfe774ce31f 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_Delete.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "stateStoreName": "daprstatestore0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_Get.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_Get.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_Get.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_Get.json index f3c635f3aed..1605c358111 100644 --- a/swagger/specification/applications/resource-manager/Applications.Dapr/preview/2022-03-15-privatepreview/examples/StateStores_Get.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_Get.json @@ -3,7 +3,7 @@ "title": "Get a StateStore resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "stateStoreName": "daprstatestore0" }, "responses": { diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_List.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_List.json similarity index 97% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_List.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_List.json index c6a84c66f8f..8db892bac72 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_List.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_List.json @@ -3,7 +3,7 @@ "title": "List StateStore resources by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -85,7 +85,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/stateStores?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Dapr/stateStores?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_ListByRootScope.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_ListByRootScope.json similarity index 95% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_ListByRootScope.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_ListByRootScope.json index faa2d33d608..2c98dc98d6d 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_ListByRootScope.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List StateStore resources by rootScope", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -71,7 +71,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/stateStores?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Dapr/stateStores?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_Update.json b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_Update.json similarity index 98% rename from typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_Update.json rename to typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_Update.json index a93dca0ae81..4ffd10fdedc 100644 --- a/typespec/Applications.Dapr/examples/2022-03-15-privatepreview/StateStores_Update.json +++ b/typespec/Applications.Dapr/examples/2023-10-01-preview/StateStores_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "stateStoreName": "daprstatestore0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "StateStoreParameters": { "location": "West US", "properties": { diff --git a/typespec/Applications.Dapr/main.tsp b/typespec/Applications.Dapr/main.tsp index 5a31245fa5e..11c0f2f6083 100644 --- a/typespec/Applications.Dapr/main.tsp +++ b/typespec/Applications.Dapr/main.tsp @@ -36,8 +36,8 @@ interface Operations extends Azure.ResourceManager.Operations {} @doc("Supported API versions for the Applications.Dapr resource provider.") enum Versions { - @doc("2022-03-15-privatepreview") + @doc("2023-10-01-preview") @useDependency(Azure.Core.Versions.v1_0_Preview_2) @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) - v2022_03_15_privatepreview: "2022-03-15-privatepreview", + v2023_10_01_preview: "2023-10-01-preview", } diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_CreateOrUpdateRecipe.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_CreateOrUpdateRecipe.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_CreateOrUpdateRecipe.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_CreateOrUpdateRecipe.json index 42e4018d113..392896fcc8c 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_CreateOrUpdateRecipe.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_CreateOrUpdateRecipe.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "mongoDatabaseName": "mongo0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "MongoDatabaseParameters": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_CreateOrUpdateValues.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_CreateOrUpdateValues.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_CreateOrUpdateValues.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_CreateOrUpdateValues.json index 0d6be4423b0..897dc206766 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_CreateOrUpdateValues.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_CreateOrUpdateValues.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "mongoDatabaseName": "mongo0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "MongoDatabaseParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_Delete.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_Delete.json similarity index 85% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_Delete.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_Delete.json index c5f7221cbf2..752653650f7 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_Delete.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "mongoDatabaseName": "mongo0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_Get.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_Get.json similarity index 96% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_Get.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_Get.json index 79e1b7ae906..a0a7b8f5d0c 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_Get.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_Get.json @@ -3,7 +3,7 @@ "title": "Get a MongoDatabase resource", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "mongoDatabaseName": "mongo0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_List.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_List.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_List.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_List.json index 0739f0cbb0f..c280d951c50 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_List.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_List.json @@ -3,7 +3,7 @@ "title": "List MongoDatabase resources by resource group", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -66,7 +66,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/mongoDatabases?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/mongoDatabases?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_ListByRootScope.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_ListByRootScope.json similarity index 95% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_ListByRootScope.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_ListByRootScope.json index 4113d8a7078..1aa71c6e079 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/MongoDatabases_ListByRootScope.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List MongoDatabase resources by rootScope", "parameters": { "rootScope": "planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -67,7 +67,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/mongoDatabases?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/mongoDatabases?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_ListSecrets.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_ListSecrets.json similarity index 90% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_ListSecrets.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_ListSecrets.json index 504f90ffb26..7f894c4e9bd 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/MongoDatabases_ListSecrets.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/MongoDatabases_ListSecrets.json @@ -3,7 +3,7 @@ "title": "List the secrets of a MongoDatabase resource", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "mongoDatabaseName": "mongo0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_CreateOrUpdate.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_CreateOrUpdate.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_CreateOrUpdate.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_CreateOrUpdate.json index 003bc22fc36..57510928650 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_CreateOrUpdate.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "redisCacheName": "redis0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "RedisCacheParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_CreateOrUpdateRecipe.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_CreateOrUpdateRecipe.json similarity index 97% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_CreateOrUpdateRecipe.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_CreateOrUpdateRecipe.json index 838f7332d16..64512247560 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_CreateOrUpdateRecipe.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_CreateOrUpdateRecipe.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "redisCacheName": "redis0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "RedisCacheParameters": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_CreateOrUpdateValues.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_CreateOrUpdateValues.json similarity index 98% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_CreateOrUpdateValues.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_CreateOrUpdateValues.json index 417b0a25888..88d9dcfb89f 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_CreateOrUpdateValues.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_CreateOrUpdateValues.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "redisCacheName": "redis0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "RedisCacheParameters": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_Delete.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_Delete.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_Delete.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_Delete.json index dbedada922a..e468f72cd66 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_Delete.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "redisCacheName": "redis0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_Get.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_Get.json similarity index 96% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_Get.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_Get.json index 0bfe5aad6fd..aca26b7c225 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_Get.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_Get.json @@ -3,7 +3,7 @@ "title": "Get a RedisCache resource", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "redisCacheName": "redis0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_List.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_List.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_List.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_List.json index 20eff8c4336..21e6ae05926 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_List.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_List.json @@ -3,7 +3,7 @@ "title": "List RedisCache resources by resource group", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -62,7 +62,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/redisCaches?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/redisCaches?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_ListByRootScope.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_ListByRootScope.json similarity index 95% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_ListByRootScope.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_ListByRootScope.json index 7c74f8ef116..ecf024fb104 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/RedisCaches_ListByRootScope.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List RedisCache resources by rootScope", "parameters": { "rootScope": "planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -61,7 +61,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/redisCaches?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/redisCaches?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_ListSecrets.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_ListSecrets.json similarity index 91% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_ListSecrets.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_ListSecrets.json index 7e0f2d95471..185cec6a7cd 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_ListSecrets.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_ListSecrets.json @@ -5,7 +5,7 @@ "rootScope": "planes/radius/local/resourceGroups/testGroup", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "redisCacheName": "redis0" }, "responses": { diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_Update.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_Update.json similarity index 98% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_Update.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_Update.json index 04d8bed899b..f1ac392db3f 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/RedisCaches_Update.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/RedisCaches_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "redisCacheName": "redis0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "RedisCacheParameters": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_CreateOrUpdate.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_CreateOrUpdate.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_CreateOrUpdate.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_CreateOrUpdate.json index fecc16494ad..7f4a9de8f22 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_CreateOrUpdate.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "sqlDatabaseName": "sql0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SQLDatabaseParameters": { "location": "global", "properties": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_Delete.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_Delete.json similarity index 85% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_Delete.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_Delete.json index f703412f871..a092eecce33 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_Delete.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "sqlDatabaseName": "sql0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_Get.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_Get.json similarity index 96% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_Get.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_Get.json index bf6cc2f5818..2de248c7b27 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_Get.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_Get.json @@ -3,7 +3,7 @@ "title": "Get a SqlDatabase resource", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "sqlDatabaseName": "sql0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_List.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_List.json similarity index 96% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_List.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_List.json index 928bbd95f90..04ca8b7bbf8 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_List.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_List.json @@ -3,7 +3,7 @@ "title": "List SqlDatabases resources by resource group", "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -60,7 +60,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/sqlDatabases?api-version=2022-01-25-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/resourceGroups/testGroup/providers/Applications.Datastores/sqlDatabases?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_ListByRootScope.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_ListByRootScope.json similarity index 95% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_ListByRootScope.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_ListByRootScope.json index 1f16e6e489d..9c6de5f03ac 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_ListByRootScope.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List SqlDatabases resources by rootScope", "parameters": { "rootScope": "planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -65,7 +65,7 @@ } } ], - "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/sqlDatabases?api-version=2022-03-15-privatepreview&$skipToken=X'12345'" + "nextLink": "https://serviceRoot/planes/radius/local/providers/Applications.Datastores/sqlDatabases?api-version=2023-10-01-preview&$skipToken=X'12345'" } } } diff --git a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_ListSecrets.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_ListSecrets.json similarity index 90% rename from typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_ListSecrets.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_ListSecrets.json index d7445e926bf..97118868ef6 100644 --- a/typespec/Applications.Datastores/examples/2022-03-15-privatepreview/SQLDatabases_ListSecrets.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_ListSecrets.json @@ -5,7 +5,7 @@ "rootScope": "planes/radius/local/resourceGroups/testGroup", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "redisCacheName": "redis0" }, "responses": { diff --git a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_Update.json b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_Update.json similarity index 97% rename from swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_Update.json rename to typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_Update.json index 52e5223523a..13d60114477 100644 --- a/swagger/specification/applications/resource-manager/Applications.Datastores/preview/2022-03-15-privatepreview/examples/SQLDatabases_Update.json +++ b/typespec/Applications.Datastores/examples/2023-10-01-preview/SQLDatabases_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "planes/radius/local/resourceGroups/testGroup", "sqlDatabaseName": "sql0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "SQLDatabaseParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Datastores/main.tsp b/typespec/Applications.Datastores/main.tsp index 87e9a31c0e1..8192c91083f 100644 --- a/typespec/Applications.Datastores/main.tsp +++ b/typespec/Applications.Datastores/main.tsp @@ -36,8 +36,8 @@ interface Operations extends Azure.ResourceManager.Operations {} @doc("Supported API versions for the Applications.Databases resource provider.") enum Versions { - @doc("2022-03-15-privatepreview") + @doc("2023-10-01-preview") @useDependency(Azure.Core.Versions.v1_0_Preview_2) @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) - v2022_03_15_privatepreview: "2022-03-15-privatepreview", + v2023_10_01_preview: "2023-10-01-preview", } diff --git a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_CreateOrUpdate.json b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_CreateOrUpdate.json similarity index 97% rename from typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_CreateOrUpdate.json rename to typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_CreateOrUpdate.json index cdec52a79e2..0b51ad6fdbc 100644 --- a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_CreateOrUpdate.json +++ b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_CreateOrUpdate.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "rabbitMQQueueName": "rabbitmq0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "RabbitMQQueueParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_Delete.json b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_Delete.json similarity index 85% rename from typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_Delete.json rename to typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_Delete.json index 03da6f1c26e..d78bb91dd57 100644 --- a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_Delete.json +++ b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_Delete.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "rabbitMQQueueName": "rabbitmq0", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": {}, diff --git a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_Get.json b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_Get.json similarity index 95% rename from typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_Get.json rename to typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_Get.json index d3e9364fc31..ddd1cb632dd 100644 --- a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_Get.json +++ b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_Get.json @@ -3,7 +3,7 @@ "title": "Get a RabbitMQQueue resource", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "rabbitMQQueueName": "rabbitmq0" }, "responses": { diff --git a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_List.json b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_List.json similarity index 93% rename from typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_List.json rename to typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_List.json index 3e1c12abe36..83383819e0e 100644 --- a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_List.json +++ b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_List.json @@ -3,7 +3,7 @@ "title": "List RabbitMQQueue resources by resource group", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -40,7 +40,7 @@ } } ], - "nextLink": "https://serviceRoot/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup/providers/Applications.Messaging/rabbitMQQueues?api-version=2022-01-25-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/00000000-0000-0000-0000-000000000000/resourceGroups/testGroup/providers/Applications.Messaging/rabbitMQQueues?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_ListByRootScope.json b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_ListByRootScope.json similarity index 95% rename from typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_ListByRootScope.json rename to typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_ListByRootScope.json index d24590182c2..d932a9a7a37 100644 --- a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_ListByRootScope.json +++ b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_ListByRootScope.json @@ -3,7 +3,7 @@ "title": "List RabbitMQQueue resources by rootScope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { @@ -43,7 +43,7 @@ } } ], - "nextLink": "https://serviceRoot/00000000-0000-0000-0000-000000000000/providers/Applications.Messaging/rabbitMQQueues?api-version=2022-03-15-privatepreview&$skiptoken=X'12345'" + "nextLink": "https://serviceRoot/00000000-0000-0000-0000-000000000000/providers/Applications.Messaging/rabbitMQQueues?api-version=2023-10-01-preview&$skiptoken=X'12345'" } } } diff --git a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_ListSecrets.json b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_ListSecrets.json similarity index 88% rename from typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_ListSecrets.json rename to typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_ListSecrets.json index e0d24405c66..686ec415e05 100644 --- a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_ListSecrets.json +++ b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_ListSecrets.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "resourceGroupName": "testGroup", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "rabbitMQQueueName": "rabbitmq0" }, "responses": { diff --git a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_Update.json b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_Update.json similarity index 97% rename from typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_Update.json rename to typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_Update.json index a845925ed0f..61dff0e3234 100644 --- a/typespec/Applications.Messaging/examples/2022-03-15-privatepreview/RabbitMQQueues_Update.json +++ b/typespec/Applications.Messaging/examples/2023-10-01-preview/RabbitMQQueues_Update.json @@ -4,7 +4,7 @@ "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", "rabbitMQQueueName": "rabbitmq0", - "api-version": "2022-03-15-privatepreview", + "api-version": "2023-10-01-preview", "rabbitMQQueueParameters": { "location": "global", "properties": { diff --git a/typespec/Applications.Messaging/main.tsp b/typespec/Applications.Messaging/main.tsp index 1ce5c8f8745..5a865bad5bb 100644 --- a/typespec/Applications.Messaging/main.tsp +++ b/typespec/Applications.Messaging/main.tsp @@ -34,8 +34,8 @@ interface Operations extends Azure.ResourceManager.Operations {} @doc("Supported API versions for the Applications.Messaging resource provider.") enum Versions { - @doc("2022-03-15-privatepreview") + @doc("2023-10-01-preview") @useDependency(Azure.Core.Versions.v1_0_Preview_2) @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) - v2022_03_15_privatepreview: "2022-03-15-privatepreview", + v2023_10_01_preview: "2023-10-01-preview", } diff --git a/typespec/Test.Resource/examples/2022-08-19-preview/TestAsyncResource_List.json b/typespec/Test.Resource/examples/2022-08-19-preview/TestAsyncResource_List.json index bb7f6f5eff8..7047cc5ad3d 100644 --- a/typespec/Test.Resource/examples/2022-08-19-preview/TestAsyncResource_List.json +++ b/typespec/Test.Resource/examples/2022-08-19-preview/TestAsyncResource_List.json @@ -3,7 +3,7 @@ "title": "List TestAsyncResource resources by resourcegroup", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { diff --git a/typespec/Test.Resource/examples/2022-08-19-preview/TestAsyncResource_ListByScope.json b/typespec/Test.Resource/examples/2022-08-19-preview/TestAsyncResource_ListByScope.json index 37e52d21552..e76c6e46f3a 100644 --- a/typespec/Test.Resource/examples/2022-08-19-preview/TestAsyncResource_ListByScope.json +++ b/typespec/Test.Resource/examples/2022-08-19-preview/TestAsyncResource_ListByScope.json @@ -3,7 +3,7 @@ "title": "List TestAsyncResource resources at root scope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { diff --git a/typespec/Test.Resource/examples/2023-08-19/TestAsyncResource_List.json b/typespec/Test.Resource/examples/2023-08-19/TestAsyncResource_List.json index a3b3f205ed4..3dee519fa01 100644 --- a/typespec/Test.Resource/examples/2023-08-19/TestAsyncResource_List.json +++ b/typespec/Test.Resource/examples/2023-08-19/TestAsyncResource_List.json @@ -3,7 +3,7 @@ "title": "List TestAsyncResource resources by resourcegroup", "parameters": { "rootScope": "/planes/radius/local/resourceGroups/testGroup", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { diff --git a/typespec/Test.Resource/examples/2023-08-19/TestAsyncResource_ListByScope.json b/typespec/Test.Resource/examples/2023-08-19/TestAsyncResource_ListByScope.json index 07fde44c996..437c8a8f411 100644 --- a/typespec/Test.Resource/examples/2023-08-19/TestAsyncResource_ListByScope.json +++ b/typespec/Test.Resource/examples/2023-08-19/TestAsyncResource_ListByScope.json @@ -3,7 +3,7 @@ "title": "List TestAsyncResource resources at root scope", "parameters": { "rootScope": "/planes/radius/local", - "api-version": "2022-03-15-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_CreateOrUpdate.json b/typespec/UCP/examples/2023-10-01-preview/AWSCredential_CreateOrUpdate.json similarity index 96% rename from typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_CreateOrUpdate.json rename to typespec/UCP/examples/2023-10-01-preview/AWSCredential_CreateOrUpdate.json index c7fef818332..2a8b8b8fc9b 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_CreateOrUpdate.json +++ b/typespec/UCP/examples/2023-10-01-preview/AWSCredential_CreateOrUpdate.json @@ -2,7 +2,7 @@ "operationId": "AwsCredentials_CreateOrUpdate", "title": "Create or update a AWS credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "aws", "planeName": "aws", "credentialName": "default", diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_Delete.json b/typespec/UCP/examples/2023-10-01-preview/AWSCredential_Delete.json similarity index 84% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_Delete.json rename to typespec/UCP/examples/2023-10-01-preview/AWSCredential_Delete.json index 30907afdbe9..2e42882a8ad 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_Delete.json +++ b/typespec/UCP/examples/2023-10-01-preview/AWSCredential_Delete.json @@ -2,7 +2,7 @@ "operationId": "AwsCredentials_Delete", "title": "Delete a AWS credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "aws", "planeName": "awscloud", "credentialName": "default" diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_Get.json b/typespec/UCP/examples/2023-10-01-preview/AWSCredential_Get.json similarity index 93% rename from typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_Get.json rename to typespec/UCP/examples/2023-10-01-preview/AWSCredential_Get.json index 1d6b3ee794f..d99d794a5b1 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_Get.json +++ b/typespec/UCP/examples/2023-10-01-preview/AWSCredential_Get.json @@ -2,7 +2,7 @@ "operationId": "AwsCredentials_Get", "title": "Get a AWS credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "aws", "planeName": "awscloud", "credentialName": "default" diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_List.json b/typespec/UCP/examples/2023-10-01-preview/AWSCredential_List.json similarity index 94% rename from typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_List.json rename to typespec/UCP/examples/2023-10-01-preview/AWSCredential_List.json index 53baf9b1cb3..bd11cb7df23 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/AWSCredential_List.json +++ b/typespec/UCP/examples/2023-10-01-preview/AWSCredential_List.json @@ -2,7 +2,7 @@ "operationId": "AwsCredentials_List", "title": "List AWS credentials", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "aws", "planeName": "awscloud" }, diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_Update.json b/typespec/UCP/examples/2023-10-01-preview/AWSCredential_Update.json similarity index 96% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_Update.json rename to typespec/UCP/examples/2023-10-01-preview/AWSCredential_Update.json index f9de8aaac1b..8d5aacc379e 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AWSCredential_Update.json +++ b/typespec/UCP/examples/2023-10-01-preview/AWSCredential_Update.json @@ -2,7 +2,7 @@ "operationId": "AwsCredentials_Update", "title": "Update a AWS credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "aws", "planeName": "aws", "credentialName": "default", diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_CreateOrUpdate.json b/typespec/UCP/examples/2023-10-01-preview/AzureCredential_CreateOrUpdate.json similarity index 97% rename from typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_CreateOrUpdate.json rename to typespec/UCP/examples/2023-10-01-preview/AzureCredential_CreateOrUpdate.json index f2aad4bdc48..e86d26fb194 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_CreateOrUpdate.json +++ b/typespec/UCP/examples/2023-10-01-preview/AzureCredential_CreateOrUpdate.json @@ -2,7 +2,7 @@ "operationId": "AzureCredentials_CreateOrUpdate", "title": "Create or update a Azure credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "azure", "planeName": "azurecloud", "credentialName": "default", diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_Delete.json b/typespec/UCP/examples/2023-10-01-preview/AzureCredential_Delete.json similarity index 83% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_Delete.json rename to typespec/UCP/examples/2023-10-01-preview/AzureCredential_Delete.json index 6d034d1e3b9..87273e65abf 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_Delete.json +++ b/typespec/UCP/examples/2023-10-01-preview/AzureCredential_Delete.json @@ -2,7 +2,7 @@ "operationId": "AzureCredentials_Delete", "title": "Delete a Azure credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "azure", "planeName": "azurecloud", "credentialName": "default" diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_Get.json b/typespec/UCP/examples/2023-10-01-preview/AzureCredential_Get.json similarity index 94% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_Get.json rename to typespec/UCP/examples/2023-10-01-preview/AzureCredential_Get.json index 90eede6d4a8..98b292f7aa0 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/AzureCredential_Get.json +++ b/typespec/UCP/examples/2023-10-01-preview/AzureCredential_Get.json @@ -2,7 +2,7 @@ "operationId": "AzureCredentials_Get", "title": "Get a Azure credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "azure", "planeName": "azurecloud", "credentialName": "default" diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_List.json b/typespec/UCP/examples/2023-10-01-preview/AzureCredential_List.json similarity index 94% rename from typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_List.json rename to typespec/UCP/examples/2023-10-01-preview/AzureCredential_List.json index 4f6ab2d815d..0238221ca5b 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_List.json +++ b/typespec/UCP/examples/2023-10-01-preview/AzureCredential_List.json @@ -2,7 +2,7 @@ "operationId": "AzureCredentials_List", "title": "List Azure credentials", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "azure", "planeName": "azurecloud" }, diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_Update.json b/typespec/UCP/examples/2023-10-01-preview/AzureCredential_Update.json similarity index 97% rename from typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_Update.json rename to typespec/UCP/examples/2023-10-01-preview/AzureCredential_Update.json index 916dff73b8b..8e468ac5f5f 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/AzureCredential_Update.json +++ b/typespec/UCP/examples/2023-10-01-preview/AzureCredential_Update.json @@ -2,7 +2,7 @@ "operationId": "AzureCredentials_Update", "title": "Update a Azure credential", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "azure", "planeName": "azurecloud", "credentialName": "default", diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_CreateOrUpdate.json b/typespec/UCP/examples/2023-10-01-preview/Planes_CreateOrUpdate.json similarity index 93% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_CreateOrUpdate.json rename to typespec/UCP/examples/2023-10-01-preview/Planes_CreateOrUpdate.json index 12de0f2d687..07d60b21d00 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_CreateOrUpdate.json +++ b/typespec/UCP/examples/2023-10-01-preview/Planes_CreateOrUpdate.json @@ -2,7 +2,7 @@ "operationId": "Planes_CreateOrUpdate", "title": "Create or update a plane", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius", "Plane": { diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_Delete.json b/typespec/UCP/examples/2023-10-01-preview/Planes_Delete.json similarity index 79% rename from typespec/UCP/examples/2022-09-01-privatepreview/Planes_Delete.json rename to typespec/UCP/examples/2023-10-01-preview/Planes_Delete.json index 9467f217ba9..509fe433d87 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_Delete.json +++ b/typespec/UCP/examples/2023-10-01-preview/Planes_Delete.json @@ -2,7 +2,7 @@ "operationId": "Planes_Delete", "title": "Delete a plane", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "radius", "planeName": "local" }, diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_GetPlaneLocal.json b/typespec/UCP/examples/2023-10-01-preview/Planes_GetPlaneLocal.json similarity index 92% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_GetPlaneLocal.json rename to typespec/UCP/examples/2023-10-01-preview/Planes_GetPlaneLocal.json index ba3efe8c027..311c2d38975 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Planes_GetPlaneLocal.json +++ b/typespec/UCP/examples/2023-10-01-preview/Planes_GetPlaneLocal.json @@ -2,7 +2,7 @@ "operationId": "Planes_Get", "title": "Get a plane", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius" }, diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_List.json b/typespec/UCP/examples/2023-10-01-preview/Planes_List.json similarity index 93% rename from typespec/UCP/examples/2022-09-01-privatepreview/Planes_List.json rename to typespec/UCP/examples/2023-10-01-preview/Planes_List.json index 2f22f7beb50..0850bb286d4 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_List.json +++ b/typespec/UCP/examples/2023-10-01-preview/Planes_List.json @@ -2,7 +2,7 @@ "operationId": "Planes_ListPlanes", "title": "List planes", "parameters": { - "api-version": "2022-09-01-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_ListPlanesByType.json b/typespec/UCP/examples/2023-10-01-preview/Planes_ListPlanesByType.json similarity index 93% rename from typespec/UCP/examples/2022-09-01-privatepreview/Planes_ListPlanesByType.json rename to typespec/UCP/examples/2023-10-01-preview/Planes_ListPlanesByType.json index 1544d77af20..48e657d01f2 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_ListPlanesByType.json +++ b/typespec/UCP/examples/2023-10-01-preview/Planes_ListPlanesByType.json @@ -3,7 +3,7 @@ "title": "List planes by planeType", "parameters": { "planeType": "radius", - "api-version": "2022-09-01-privatepreview" + "api-version": "2023-10-01-preview" }, "responses": { "200": { diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_Update.json b/typespec/UCP/examples/2023-10-01-preview/Planes_Update.json similarity index 93% rename from typespec/UCP/examples/2022-09-01-privatepreview/Planes_Update.json rename to typespec/UCP/examples/2023-10-01-preview/Planes_Update.json index 08b77b42ca3..27f6ea48c6d 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/Planes_Update.json +++ b/typespec/UCP/examples/2023-10-01-preview/Planes_Update.json @@ -2,7 +2,7 @@ "operationId": "Planes_Update", "title": "Update a plane", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius", "Plane": { diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_CreateOrUpdate.json b/typespec/UCP/examples/2023-10-01-preview/ResourceGroups_CreateOrUpdate.json similarity index 90% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_CreateOrUpdate.json rename to typespec/UCP/examples/2023-10-01-preview/ResourceGroups_CreateOrUpdate.json index 889ee27bb1f..a8c322c8670 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/ResourceGroups_CreateOrUpdate.json +++ b/typespec/UCP/examples/2023-10-01-preview/ResourceGroups_CreateOrUpdate.json @@ -2,7 +2,7 @@ "operationId": "ResourceGroups_CreateOrUpdate", "title": "Create or update a resource group", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "radius", "planeName": "local", "resourceGroupName": "rg1", diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_Delete.json b/typespec/UCP/examples/2023-10-01-preview/ResourceGroups_Delete.json similarity index 83% rename from typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_Delete.json rename to typespec/UCP/examples/2023-10-01-preview/ResourceGroups_Delete.json index df56306964b..a6e1366c626 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_Delete.json +++ b/typespec/UCP/examples/2023-10-01-preview/ResourceGroups_Delete.json @@ -2,7 +2,7 @@ "operationId": "ResourceGroups_Delete", "title": "Delete a resource group", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "resourceGroupName": "rg1", "planeType": "radius", "planeName": "local" diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_Get.json b/typespec/UCP/examples/2023-10-01-preview/ResourceGroups_Get.json similarity index 88% rename from typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_Get.json rename to typespec/UCP/examples/2023-10-01-preview/ResourceGroups_Get.json index c64ec98f63e..4eab6c512b0 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_Get.json +++ b/typespec/UCP/examples/2023-10-01-preview/ResourceGroups_Get.json @@ -2,7 +2,7 @@ "operationId": "ResourceGroups_Get", "title": "Get a resource group", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius", "resourceGroupName": "rg1" diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_List.json b/typespec/UCP/examples/2023-10-01-preview/ResourceGroups_List.json similarity index 91% rename from typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_List.json rename to typespec/UCP/examples/2023-10-01-preview/ResourceGroups_List.json index 3e67b7150c9..50b43e8f8ac 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_List.json +++ b/typespec/UCP/examples/2023-10-01-preview/ResourceGroups_List.json @@ -2,7 +2,7 @@ "operationId": "ResourceGroups_List", "title": "List resource groups", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius" }, diff --git a/typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_Update.json b/typespec/UCP/examples/2023-10-01-preview/ResourceGroups_Update.json similarity index 89% rename from typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_Update.json rename to typespec/UCP/examples/2023-10-01-preview/ResourceGroups_Update.json index abcd61906ab..ab092fcd922 100644 --- a/typespec/UCP/examples/2022-09-01-privatepreview/ResourceGroups_Update.json +++ b/typespec/UCP/examples/2023-10-01-preview/ResourceGroups_Update.json @@ -2,7 +2,7 @@ "operationId": "ResourceGroups_Update", "title": "Update a resource group", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeType": "radius", "planeName": "local", "resourceGroupName": "rg1", diff --git a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Resources_List.json b/typespec/UCP/examples/2023-10-01-preview/Resources_List.json similarity index 94% rename from swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Resources_List.json rename to typespec/UCP/examples/2023-10-01-preview/Resources_List.json index 47836a988a7..3323273ce21 100644 --- a/swagger/specification/ucp/resource-manager/UCP/preview/2022-09-01-privatepreview/examples/Resources_List.json +++ b/typespec/UCP/examples/2023-10-01-preview/Resources_List.json @@ -2,7 +2,7 @@ "operationId": "Resources_List", "title": "List resources in a resource group.", "parameters": { - "api-version": "2022-09-01-privatepreview", + "api-version": "2023-10-01-preview", "planeName": "local", "planeType": "radius", "resourceGroupName": "rg1" diff --git a/typespec/UCP/main.tsp b/typespec/UCP/main.tsp index 01f5c2162e7..aa6f5ec8ad7 100644 --- a/typespec/UCP/main.tsp +++ b/typespec/UCP/main.tsp @@ -37,8 +37,8 @@ namespace Ucp; @doc("Supported API versions for Universal Control Plane resource provider.") enum Versions { - @doc("2022-09-01-privatepreview") + @doc("2023-10-01-preview") @useDependency(Azure.Core.Versions.v1_0_Preview_2) @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) - v2022_09_01_privatepreview: "2022-09-01-privatepreview", + v2022_09_01_privatepreview: "2023-10-01-preview", }