Skip to content

Commit

Permalink
update API version to 2024-05-01-preview (Azure#7511)
Browse files Browse the repository at this point in the history
  • Loading branch information
dingmeng-xue authored Apr 16, 2024
1 parent ed1c17f commit db64ff9
Show file tree
Hide file tree
Showing 1,247 changed files with 9,377 additions and 835,359 deletions.
2 changes: 1 addition & 1 deletion src/spring/azext_spring/_app_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# pylint: disable=wrong-import-order
from azure.cli.core.azclierror import FileOperationError, InvalidArgumentValueError
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from azure.cli.core.util import get_file_json


Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/_build_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import json
from azure.cli.core.util import sdk_no_wait
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from ._buildservices_factory import BuildService
from azure.cli.core.commands import LongRunningOperation
from azure.cli.core.commands.client_factory import get_subscription_id
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/_buildservices_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from msrestazure.tools import parse_resource_id
from azure.cli.core.commands.client_factory import get_subscription_id
from msrestazure.azure_exceptions import CloudError
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from ._deployment_uploadable_factory import uploader_selector
from ._log_stream import LogStream

Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# --------------------------------------------------------------------------------------------
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core.profiles import ResourceType
from .vendored_sdks.appplatform.v2024_01_01_preview import AppPlatformManagementClient
from .vendored_sdks.appplatform.v2024_05_01_preview import AppPlatformManagementClient


def cf_spring(cli_ctx, *_):
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/_deployment_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# pylint: disable=wrong-import-order
from azure.cli.core.azclierror import InvalidArgumentValueError
from azure.cli.core.util import get_file_json
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from ._deployment_source_factory import source_selector
from .custom import format_scale

Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/_deployment_source_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# --------------------------------------------------------------------------------------------

# pylint: disable=wrong-import-order
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from azure.cli.core.azclierror import ArgumentUsageError
from ._utils import convert_argument_to_parameter_list

Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
validate_app_force_set_system_identity_or_warning,
validate_app_force_set_user_identity_or_warning)
from ._utils import ApiType
from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import (CustomizedAcceleratorType, ConfigurationServiceGeneration, SupportedRuntimeValue, TestKeyType, BackendProtocol, SessionAffinity, ApmType, BindingType)
from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import (CustomizedAcceleratorType, ConfigurationServiceGeneration, SupportedRuntimeValue, TestKeyType, BackendProtocol, SessionAffinity, ApmType, BindingType)


name_type = CLIArgumentType(options_list=[
Expand Down
4 changes: 2 additions & 2 deletions src/spring/azext_spring/_tanzu_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from msrestazure.tools import resource_id
from .application_live_view import create as application_live_view_create
from .dev_tool_portal import create_or_update as dev_tool_portal_create
from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import ConfigurationServiceGeneration
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import ConfigurationServiceGeneration
from .vendored_sdks.appplatform.v2024_05_01_preview import models

GATEWAY_RESOURCE_TYPE = "gateways"
DEFAULT_NAME = "default"
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/_util_enterprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# pylint: disable=wrong-import-order

from .vendored_sdks.appplatform.v2024_01_01_preview import AppPlatformManagementClient
from .vendored_sdks.appplatform.v2024_05_01_preview import AppPlatformManagementClient
from azure.cli.core.commands.client_factory import get_mgmt_service_client


Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from knack.util import CLIError, todict
from knack.log import get_logger
from azure.cli.core.azclierror import ValidationError, CLIInternalError
from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import SupportedRuntimeValue
from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import SupportedRuntimeValue
from ._client_factory import cf_resource_groups


Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from ._clierror import NotSupportedPricingTierError
from ._utils import (ApiType, _get_rg_location, _get_file_type, _get_sku_name, _java_runtime_in_number)
from ._util_enterprise import is_enterprise_tier
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from ._constant import (MARKETPLACE_OFFER_ID, MARKETPLACE_PLAN_ID, MARKETPLACE_PUBLISHER_ID)

logger = get_logger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions src/spring/azext_spring/_validators_enterprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
MutuallyExclusiveArgumentError)
from azure.cli.core.commands.client_factory import get_subscription_id
from knack.log import get_logger
from .vendored_sdks.appplatform.v2024_01_01_preview.models import (ApmReference, CertificateReference)
from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import (ApmType, ConfigurationServiceGeneration)
from .vendored_sdks.appplatform.v2024_05_01_preview.models import (ApmReference, CertificateReference)
from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import (ApmType, ConfigurationServiceGeneration)

from ._gateway_constant import (GATEWAY_RESPONSE_CACHE_SCOPE_ROUTE, GATEWAY_RESPONSE_CACHE_SCOPE_INSTANCE,
GATEWAY_RESPONSE_CACHE_SIZE_RESET_VALUE, GATEWAY_RESPONSE_CACHE_TTL_RESET_VALUE)
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/api_portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from azure.cli.core.azclierror import ClientRequestError
from azure.cli.core.commands.client_factory import get_subscription_id
from msrestazure.tools import resource_id
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from ._utils import get_spring_sku

DEFAULT_NAME = "default"
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/apm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from ._utils import get_portal_uri
from .custom import try_create_application_insights
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models

logger = get_logger(__name__)
DEFAULT_APM_NAME = "default"
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/app_managed_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from ._clierror import ConflictRequestError
from ._utils import wait_till_end
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from azure.cli.core.azclierror import (AzureInternalError, CLIInternalError)
from azure.core.exceptions import HttpResponseError
from msrestazure.azure_exceptions import CloudError
Expand Down
4 changes: 2 additions & 2 deletions src/spring/azext_spring/application_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
from azure.cli.core.util import sdk_no_wait
from knack.log import get_logger
from azure.cli.core.commands.client_factory import get_subscription_id
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from .dev_tool_portal import (is_updatable as is_dev_tool_portal_updatable,
try_get as get_dev_tool_portal,
create_or_update as create_or_update_dev_tool_portal,
_get_desired_state as get_dev_tool_portal_desired_state)
from ._utils import (wait_till_end)
from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import (CustomizedAcceleratorType)
from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import (CustomizedAcceleratorType)

DEFAULT_NAME = "default"
logger = get_logger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions src/spring/azext_spring/application_configuration_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from knack.log import get_logger
from knack.util import CLIError
from msrestazure.tools import resource_id
from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import (GitImplementation, ConfigurationServiceGeneration)
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import (GitImplementation, ConfigurationServiceGeneration)
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from ._utils import (get_hostname, get_bearer_auth)

APPLICATION_CONFIGURATION_SERVICE_NAME = "applicationConfigurationService"
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/application_live_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# pylint: disable=unused-argument, logging-format-interpolation, protected-access, wrong-import-order, too-many-lines
from knack.log import get_logger

from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from .dev_tool_portal import (is_updatable as is_dev_tool_portal_updatable,
try_get as get_dev_tool_portal,
create_or_update as create_or_update_dev_tool_portal,
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/buildpack_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# --------------------------------------------------------------------------------------------

# pylint: disable=wrong-import-order
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from azure.cli.core.util import sdk_no_wait
from ._utils import get_portal_uri
from .custom import try_create_application_insights
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from azure.mgmt.core.tools import (parse_resource_id, is_valid_resource_id)
from ._utils import (get_portal_uri, get_spring_sku, get_proxy_api_endpoint, BearerAuth)
from knack.util import CLIError
from .vendored_sdks.appplatform.v2024_01_01_preview import models, AppPlatformManagementClient
from .vendored_sdks.appplatform.v2024_05_01_preview import models, AppPlatformManagementClient
from knack.log import get_logger
from azure.cli.core.azclierror import ClientRequestError, FileOperationError, InvalidArgumentValueError, ResourceNotFoundError
from azure.cli.core.commands.client_factory import get_mgmt_service_client, get_subscription_id
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/dev_tool_portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from knack.log import get_logger

from azure.cli.core.util import sdk_no_wait
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models

DEFAULT_NAME = "default"

Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from knack.log import get_logger

from .custom import LOG_RUNNING_PROMPT
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from ._gateway_constant import (GATEWAY_RESPONSE_CACHE_SCOPE_ROUTE, GATEWAY_RESPONSE_CACHE_SCOPE_INSTANCE,
GATEWAY_RESPONSE_CACHE_SIZE_RESET_VALUE, GATEWAY_RESPONSE_CACHE_TTL_RESET_VALUE)
from ._utils import get_spring_sku
Expand Down
2 changes: 1 addition & 1 deletion src/spring/azext_spring/spring_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# pylint: disable=wrong-import-order
# pylint: disable=unused-argument, logging-format-interpolation, protected-access, wrong-import-order, too-many-lines
from ._utils import (wait_till_end, _get_rg_location, register_provider_if_needed)
from .vendored_sdks.appplatform.v2024_01_01_preview import models
from .vendored_sdks.appplatform.v2024_05_01_preview import models
from .custom import (_warn_enable_java_agent, _update_application_insights_asc_create)
from ._build_service import _update_default_build_agent_pool, create_build_service
from .buildpack_binding import create_default_buildpack_binding_for_application_insights
Expand Down
Loading

0 comments on commit db64ff9

Please sign in to comment.