diff --git a/src/connectedk8s/HISTORY.rst b/src/connectedk8s/HISTORY.rst index 47371b2367a..6e4cabf841d 100644 --- a/src/connectedk8s/HISTORY.rst +++ b/src/connectedk8s/HISTORY.rst @@ -3,6 +3,14 @@ Release History =============== +1.1.6 +++++++ +* Moved to track2 SDK +* `az connectedk8s connect`: Added onboarding timeout parameter +* `az connectedk8s upgrade`: Added upgrade timeout parameter +* Release namespace detection bug fix in multiple commands + + 1.1.5 ++++++ * Add custom-locations oid parameter for spn scenario diff --git a/src/connectedk8s/azext_connectedk8s/_help.py b/src/connectedk8s/azext_connectedk8s/_help.py index 3aa3e46e5d9..5ce39a800ce 100644 --- a/src/connectedk8s/azext_connectedk8s/_help.py +++ b/src/connectedk8s/azext_connectedk8s/_help.py @@ -26,6 +26,8 @@ text: az connectedk8s connect -g resourceGroupName -n connectedClusterName --proxy-https https://proxy-url --proxy-http http://proxy-url --proxy-skip-range excludedIP,excludedCIDR,exampleCIDRfollowed,10.0.0.0/24 - name: Onboard a connected kubernetes cluster by specifying the https proxy, http proxy, no proxy with cert settings. text: az connectedk8s connect -g resourceGroupName -n connectedClusterName --proxy-cert /path/to/crt --proxy-https https://proxy-url --proxy-http http://proxy-url --proxy-skip-range excludedIP,excludedCIDR,exampleCIDRfollowed,10.0.0.0/24 + - name: Onboard a connected kubernetes cluster with custom onboarding timeout. + text: az connectedk8s connect -g resourceGroupName -n connectedClusterName --onboarding-timeout 600 """ @@ -49,6 +51,8 @@ text: az connectedk8s upgrade -g resourceGroupName -n connectedClusterName - name: Upgrade the agents to a specific version text: az connectedk8s upgrade -g resourceGroupName -n connectedClusterName --agent-version 0.2.62 + - name: Upgrade the agents with custom upgrade timeout. + text: az connectedk8s upgrade -g resourceGroupName -n connectedClusterName --upgrade-timeout 600 """ helps['connectedk8s list'] = """ diff --git a/src/connectedk8s/azext_connectedk8s/_params.py b/src/connectedk8s/azext_connectedk8s/_params.py index d7b506fe8fc..77223211f31 100644 --- a/src/connectedk8s/azext_connectedk8s/_params.py +++ b/src/connectedk8s/azext_connectedk8s/_params.py @@ -34,6 +34,8 @@ def load_arguments(self, _): c.argument('infrastructure', options_list=['--infrastructure'], help='The infrastructure on which the Kubernetes cluster represented by this connected cluster will be running on.', arg_type=get_enum_type(Infrastructure_Enum_Values)) c.argument('disable_auto_upgrade', options_list=['--disable-auto-upgrade'], action='store_true', help='Flag to disable auto upgrade of arc agents.') c.argument('cl_oid', options_list=['--custom-locations-oid'], help="OID of 'custom-locations' app") + c.argument('onboarding_timeout', options_list=['--onboarding-timeout'], arg_group='Timeout', help='Time required (in seconds) for the arc-agent pods to be installed on the kubernetes cluster. Override this value if the hardware/network constraints on your cluster requires more time for installing the arc-agent pods.') + c.argument('no_wait', options_list=['--no-wait'], arg_group='Timeout', help="Do not wait for the long-running operation to finish.") with self.argument_context('connectedk8s update') as c: c.argument('cluster_name', options_list=['--name', '-n'], id_part='name', help='The name of the connected cluster.') @@ -51,6 +53,7 @@ def load_arguments(self, _): c.argument('kube_config', options_list=['--kube-config'], help='Path to the kube config file.') c.argument('kube_context', options_list=['--kube-context'], help='Kubconfig context from current machine.') c.argument('arc_agent_version', options_list=['--agent-version'], help='Version of agent to update the helm charts to.') + c.argument('upgrade_timeout', options_list=['--upgrade-timeout'], help='Time required (in seconds) for the arc-agent pods to be upgraded on the kubernetes cluster. Override this value if the hardware/network constraints on your cluster requires more time for upgrading the arc-agent pods.') with self.argument_context('connectedk8s enable-features') as c: c.argument('cluster_name', options_list=['--name', '-n'], id_part='name', help='The name of the connected cluster.') diff --git a/src/connectedk8s/azext_connectedk8s/_utils.py b/src/connectedk8s/azext_connectedk8s/_utils.py index 6d16a7182b0..05988a57ae2 100644 --- a/src/connectedk8s/azext_connectedk8s/_utils.py +++ b/src/connectedk8s/azext_connectedk8s/_utils.py @@ -19,6 +19,7 @@ from azure.cli.core.commands.client_factory import get_subscription_id from azure.cli.core.util import send_raw_request from azure.cli.core import telemetry +from azure.core.exceptions import ResourceNotFoundError from msrest.exceptions import AuthenticationError, HttpOperationError, TokenExpiredError, ValidationError from msrestazure.azure_exceptions import CloudError from kubernetes.client.rest import ApiException @@ -197,6 +198,9 @@ def arm_exception_handler(ex, fault_type, summary, return_if_not_found=False): raise AzureInternalError("Cloud error occured while making ARM request: " + str(ex) + "\nSummary: {}".format(summary)) raise AzureResponseError("Cloud error occured while making ARM request: " + str(ex) + "\nSummary: {}".format(summary)) + if isinstance(ex, ResourceNotFoundError) and return_if_not_found: + return + telemetry.set_exception(exception=ex, fault_type=fault_type, summary=summary) raise ClientRequestError("Error occured while making ARM request: " + str(ex) + "\nSummary: {}".format(summary)) @@ -286,7 +290,7 @@ def delete_arc_agents(release_namespace, kube_config, kube_context, configuratio def helm_install_release(chart_path, subscription_id, kubernetes_distro, kubernetes_infra, resource_group_name, cluster_name, location, onboarding_tenant_id, http_proxy, https_proxy, no_proxy, proxy_cert, private_key_pem, - kube_config, kube_context, no_wait, values_file_provided, values_file, cloud_name, disable_auto_upgrade, enable_custom_locations, custom_locations_oid): + kube_config, kube_context, no_wait, values_file_provided, values_file, cloud_name, disable_auto_upgrade, enable_custom_locations, custom_locations_oid, onboarding_timeout="300"): cmd_helm_install = ["helm", "upgrade", "--install", "azure-arc", chart_path, "--set", "global.subscriptionId={}".format(subscription_id), "--set", "global.kubernetesDistro={}".format(kubernetes_distro), @@ -324,7 +328,9 @@ def helm_install_release(chart_path, subscription_id, kubernetes_distro, kuberne if kube_context: cmd_helm_install.extend(["--kube-context", kube_context]) if not no_wait: - cmd_helm_install.extend(["--wait"]) + # Change --timeout format for helm client to understand + onboarding_timeout = onboarding_timeout + "s" + cmd_helm_install.extend(["--wait", "--timeout", "{}".format(onboarding_timeout)]) response_helm_install = Popen(cmd_helm_install, stdout=PIPE, stderr=PIPE) _, error_helm_install = response_helm_install.communicate() if response_helm_install.returncode != 0: diff --git a/src/connectedk8s/azext_connectedk8s/custom.py b/src/connectedk8s/azext_connectedk8s/custom.py index 469caa6c019..d76ea1853bb 100644 --- a/src/connectedk8s/azext_connectedk8s/custom.py +++ b/src/connectedk8s/azext_connectedk8s/custom.py @@ -43,6 +43,7 @@ import azext_connectedk8s._utils as utils from glob import glob from .vendored_sdks.models import ConnectedCluster, ConnectedClusterIdentity +from .vendored_sdks.preview_2021_04_01.models import ListClusterUserCredentialsProperties from threading import Timer, Thread import sys import hashlib @@ -57,7 +58,7 @@ def create_connectedk8s(cmd, client, resource_group_name, cluster_name, https_proxy="", http_proxy="", no_proxy="", proxy_cert="", location=None, kube_config=None, kube_context=None, no_wait=False, tags=None, distribution='auto', infrastructure='auto', - disable_auto_upgrade=False, cl_oid=None): + disable_auto_upgrade=False, cl_oid=None, onboarding_timeout="300"): logger.warning("Ensure that you have the latest helm version installed before proceeding.") logger.warning("This operation might take a while...\n") @@ -258,7 +259,7 @@ def create_connectedk8s(cmd, client, resource_group_name, cluster_name, https_pr # Install azure-arc agents utils.helm_install_release(chart_path, subscription_id, kubernetes_distro, kubernetes_infra, resource_group_name, cluster_name, location, onboarding_tenant_id, http_proxy, https_proxy, no_proxy, proxy_cert, private_key_pem, kube_config, - kube_context, no_wait, values_file_provided, values_file, azure_cloud, disable_auto_upgrade, enable_custom_locations, custom_locations_oid) + kube_context, no_wait, values_file_provided, values_file, azure_cloud, disable_auto_upgrade, enable_custom_locations, custom_locations_oid, onboarding_timeout) return put_cc_response @@ -695,7 +696,7 @@ def get_release_namespace(kube_config, kube_context): def create_cc_resource(client, resource_group_name, cluster_name, cc, no_wait): try: - return sdk_no_wait(no_wait, client.create, resource_group_name=resource_group_name, + return sdk_no_wait(no_wait, client.begin_create, resource_group_name=resource_group_name, cluster_name=cluster_name, connected_cluster=cc) except CloudError as e: utils.arm_exception_handler(e, consts.Create_ConnectedCluster_Fault_Type, 'Unable to create connected cluster resource') @@ -703,7 +704,7 @@ def create_cc_resource(client, resource_group_name, cluster_name, cc, no_wait): def delete_cc_resource(client, resource_group_name, cluster_name, no_wait): try: - sdk_no_wait(no_wait, client.delete, + sdk_no_wait(no_wait, client.begin_delete, resource_group_name=resource_group_name, cluster_name=cluster_name) except CloudError as e: @@ -870,7 +871,7 @@ def update_agents(cmd, client, resource_group_name, cluster_name, https_proxy="" return str.format(consts.Update_Agent_Success, connected_cluster.name) -def upgrade_agents(cmd, client, resource_group_name, cluster_name, kube_config=None, kube_context=None, arc_agent_version=None): +def upgrade_agents(cmd, client, resource_group_name, cluster_name, kube_config=None, kube_context=None, arc_agent_version=None, upgrade_timeout="300"): logger.warning("Ensure that you have the latest helm version installed before proceeding.") logger.warning("This operation might take a while...\n") @@ -946,7 +947,7 @@ def upgrade_agents(cmd, client, resource_group_name, cluster_name, kube_config=N telemetry.set_exception(exception='connectedk8s upgrade called when auto-update is set to true', fault_type=consts.Manual_Upgrade_Called_In_Auto_Update_Enabled, summary='az connectedk8s upgrade to manually upgrade agents and extensions is only supported when auto-upgrade is set to false.') raise ClientRequestError("az connectedk8s upgrade to manually upgrade agents and extensions is only supported when auto-upgrade is set to false.", - recommendation="Please run az connectedk8s update -n -g --auto-upgrade 'false' before performing manual upgrade") + recommendation="Please run 'az connectedk8s update -n -g --auto-upgrade false' before performing manual upgrade") else: telemetry.set_exception(exception="The azure-arc release namespace couldn't be retrieved", fault_type=consts.Release_Namespace_Not_Found, @@ -1020,8 +1021,10 @@ def upgrade_agents(cmd, client, resource_group_name, cluster_name, kube_config=N summary='Problem loading the helm existing user supplied values') raise CLIInternalError("Problem loading the helm existing user supplied values: " + str(e)) + # Change --timeout format for helm client to understand + upgrade_timeout = upgrade_timeout + "s" cmd_helm_upgrade = ["helm", "upgrade", "azure-arc", chart_path, "--namespace", release_namespace, - "--output", "json", "--atomic"] + "--output", "json", "--atomic", "--wait", "--timeout", "{}".format(upgrade_timeout)] proxy_enabled_param_added = False infra_added = False @@ -1818,7 +1821,11 @@ def client_side_proxy(cmd, # Fetching hybrid connection details from Userrp try: - response = client.list_cluster_user_credentials(resource_group_name, cluster_name, auth_method, True) + list_prop = ListClusterUserCredentialsProperties( + authentication_method=auth_method, + client_proxy=True + ) + response = client.list_cluster_user_credentials(resource_group_name, cluster_name, list_prop) except Exception as e: if flag == 1: clientproxy_process.terminate() diff --git a/src/connectedk8s/azext_connectedk8s/tests/latest/data/cli-test-aks-qkwd4jje7tm-config.yaml b/src/connectedk8s/azext_connectedk8s/tests/latest/data/cli-test-aks-qkwd4jje7tm-config.yaml deleted file mode 100644 index b2ca4de06a2..00000000000 --- a/src/connectedk8s/azext_connectedk8s/tests/latest/data/cli-test-aks-qkwd4jje7tm-config.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -clusters: -- cluster: - certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV5RENDQXJDZ0F3SUJBZ0lQYjh5NkM2TUhrN0tUV21VQXE2R3JNQTBHQ1NxR1NJYjNEUUVCQ3dVQU1BMHgKQ3pBSkJnTlZCQU1UQW1OaE1DQVhEVEl3TURReU9URXpNRFV4TjFvWUR6SXdOVEF3TkRJNU1UTXhOVEUzV2pBTgpNUXN3Q1FZRFZRUURFd0pqWVRDQ0FpSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnSVBBRENDQWdvQ2dnSUJBTFE0CmRnNXdtbzN5TVJ6ZU5mV2VCMkUrS3ZKZHJBd2ordkNOa0ZDZzlsdmwva29yQzhVUHlGZWJmV1N3NCs0K1lWRHUKbmhDM2JRSE8yVnFMbFcveWU0OTBlY3RqZDkrcVN1RjFDWTBXNndDVkVLbm16c3Z5d3lVcFUxWEVXMWppTWxSNQpqbkdRNXNwRGlHU2poQkNKbCtSb002ODQ0TUh2TnJObmRmWVFiTlRXdkVQNzRnV3ZMNTVLc2ljbm5abXFGUW9jCkQ5NHlKSTR6T3ZTK1hINHFPYkpCaklkRS9OdnZjUW1MenAyaitXUFV5aHFwUC8zbUtwSUlJQXFtcU5Jb3c1UzQKUmE5MDVyMWtXTjJZbGthdjVBTExxS09yNERqWGFCNG5yaE55bVlyNG5hZndnUVpBODdVMXI2a2JrSUM4Rm5QcQpZQmcxT0c4bmVjbE1YckxHUXNhb1N1TGszR3VrMnJHZGorbGVDakJIWVd2eG9qZHV6ODJRbGtRczB2R3lkNUtoCmMyMUNhWWxpbFFlTG1WY1pBRkZ6NmRHUzFDZElpQTRoNUdjaTNySWlHemhtZEN1Z2dCRlRiMG1mUjJ0QjZXY2UKVk9FaTl3OHlWZVRUMHFOVjFIeWdwMldOSXBiWWNoVHVFbFA1d1o2MDhqeTdaQ2pCSzNpdUZTenFaSWhnTmpUZApwY28wV1BkdUE3SkFBRUMvbFdTQ3d6d3hUWjl5eFcwaDdLRE5IdFRNc1pHSnM1eHYvUGNKUnFNNzhxUjRsT3luCkIzckRydW5la3YyaHZGVlNpQmc1bVFPK1BScTEzZ08xME1xa0NmaU5uUm02WGpLdWNRWXNZVlhNUk5keTB4Y3MKOHM2TjNtbWhYRHlZdzVPRVRRcTE2UE1XYmVDeHJ2NWhZRVJuNE5qM0FnTUJBQUdqSXpBaE1BNEdBMVVkRHdFQgovd1FFQXdJQ3BEQVBCZ05WSFJNQkFmOEVCVEFEQVFIL01BMEdDU3FHU0liM0RRRUJDd1VBQTRJQ0FRQVczL1RrCkIyazlIQ1V0c3pYckpmQXY3ZitHWU04NzlNZTcrL0FETjVXbDhkMUVCS0VQK2NhMmc0a2NnRkRDdXJjUEovelQKL1pyRmZya0ZlK25OWDR0RVRrWHhOaGJIT0VjWU8ydVh5dkpXRitsQ1hlSHhRa3F2UktGOElsamliMnNSa28veAp1RGZSaGl3MVNuOVViQlhsU2V0WlVCa1FNTkYzQXhEL29NNXkyVWIzdHZpVlRoZTNQeThzVFdOdWFYS1F6NDBnCm1UOUx0dmJ5NHZMUUxrUW11T0dsZnZhYXVQQS81am1jaXBmRG5hODBKSkRmK3Z4bzJldnBGTkI3MTBqK3NSVnUKZUJkRnRSSmx0RHRHdlRjT0xPYlFqVjR4am1iQmtkblFiWUs5Qkc5NThaNDdxUE5Udlg1b2NRdzEvSDl6S1ZDcwpVa0JzZDdYN1doNi9zbzEvZkQ2ZWQvYmUxbmJrVUg5ejZjam1XZGplQTlGdWdqL1V5dW5UaUJ5d3BONmFhSzlxCnRTY212eDllY1UxRVJpQ1Fkelo0TkdGS01BOHpxS2FCeTl6RHdaeDVPMWhrT2ZzbkJXTUJrbG9nMFdYYVBobTMKWkZZL3pUakhtdGdETTZNRWlxS0hWaytKdWdFbjRVOE0vb3NDNEd3OEdRZFArbzVYclZ2VTYwTVNneXFiWmJNTAo3WExVbzhXYkkzaThlWTFRZ3huR1dHdlZKYVU3dEVOWFhXNStDcFM3alZQeVJ1SmorMXBobEpITGpZclNXSENWCjJLUFlCLy9UaWY5RHFGWUFyb2JHdVp1cFhCZjRmQ1lMMGRXZ214SzBMdnpZYUtPbkNubmVZcmVjdGNsWGEwZ3IKUlJwTzlHbUlsTDZyaXZVMG1KNG85Yno4QXFHT2JmMFhYVWwwMmc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg== - server: https://cli-test-a-akkeshar-test2-1bfbb5-e103f3ad.hcp.westeurope.azmk8s.io:443 - name: cli-test-aks-qkwd4jje7tm -contexts: -- context: - cluster: cli-test-aks-qkwd4jje7tm - user: clusterUser_akkeshar-test2_cli-test-aks-qkwd4jje7tm - name: cli-test-aks-qkwd4jje7tm -current-context: cli-test-aks-qkwd4jje7tm -kind: Config -preferences: {} -users: -- name: clusterUser_akkeshar-test2_cli-test-aks-qkwd4jje7tm - user: - client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUUvRENDQXVTZ0F3SUJBZ0lRREZWT0xRMUNFa08rN3hhNWR4UGFiREFOQmdrcWhraUc5dzBCQVFzRkFEQU4KTVFzd0NRWURWUVFERXdKallUQWVGdzB5TURBME1qa3hNekExTVRkYUZ3MHlNakEwTWpreE16RTFNVGRhTURBeApGekFWQmdOVkJBb1REbk41YzNSbGJUcHRZWE4wWlhKek1SVXdFd1lEVlFRREV3eHRZWE4wWlhKamJHbGxiblF3CmdnSWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUURTbTBFT1AreVhBeUVLOWlheGJiVisKU1ovUm1ReUpvSm15QkJ2dUxHemZkT2FTbVlWdVl0Z3VPd1dWS2ovUVhEa1BHRnp6MytuaitJZlptK3UvajZSMgpLZFdqS1l1VS9PYXh5QUgwWUcrd0NRWXJnNnlWZG9kUVJ5QjF6MWcrdjhhOUN5am9OOVJodnNYdEJUU05GWk1DCkFxRDYzYWtsMTNpWk1rWWpHenoxelRKS2RwVjV4NnVERVRmbHpPTEM0MjRlaHpZdkZuRlQ5ZzZNR3F3dFlVSk4KMWlKbXdzak5rd2lEbzFmaXNuejl4dDZSTG54NkV4R0pOV0pDQWs5bGtRMkIrNVY5QUhCdmlXYWdHeS9SeHE2eAphWTdtK1BDREs0RytDL0lZQ2tMUEFvTEVmQU9WL1JJM3pRZmVqM0dOSVpYVDBHUHFXUkFYdDUyRHY0eVJhMlNqCnlvcE9VQ0VqcUdjYmJTUkRSZ2lmYWltUDAzNWtlMHlkWnNNcmxWY1JwUTJGSE1VVVp6b2JJL3NoNmcydlVwRE8KalhxTzY3MWltZXBRWHE2NEl4eVk4SDdUb3JORE5OWjlaK01uOHhVSnNmd2RhVE81bzdmdnRucDFwSTJXeHZvSwpZL2NiQU5CM1VhT0VEMWxBSU1uWE9jMzVFY1l4UC9iakt6SE9pQ0xqR0NpQTlTemhyV2p1VEltR0pMNzVPVXZzClJqNmFKVE9CMmRyeHQ0QnVBbDl1a3UzMEUxUTlkazVzM25teHNIUTRhZXMrTjlFZjBVaGhHU29GOXdJNTNnQlkKSFdiMGZmYlJ2MEtZb1FOSkVaRDJoV3RyVDB2UnozUEt5MW82MzVRQW5IYlBjNEtwenFyb0VBUDgvV1NTQzY3MQpxVUxiVHlXM2ZXRnkvUVM3RGpBYm5RSURBUUFCb3pVd016QU9CZ05WSFE4QkFmOEVCQU1DQmFBd0V3WURWUjBsCkJBd3dDZ1lJS3dZQkJRVUhBd0l3REFZRFZSMFRBUUgvQkFJd0FEQU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FnRUEKcTRGYkgzb2lyc1NmSFVRN1NIRkFWM3RpMHRhSnJiYnZKbEJDcWNIMzR0TWMxMEp5S1hHTUphK0Z5OEJYMjVyaApreUFtVHNtNlNaOER4VmZJTjE0Q0labFFKT21ZS0ZoUmFvUldmV0lzS3N0YytOeFk0SXFzL3ZhZXpFaUJjN2tYCjQ1bG1yN2pkdHJWUmdVWTJad2lRVlFVdStZRVE5bEZmTmp6bXVkOUtGSjh0L3pIMy9qb3JPTTVWbzFQTnRjOGcKZGR1WmsyL1JCbjRlbWFmZHB2UnR0WVFBVGlCNFNtVEJrQStOc2ptMGRmcmhlZWprV0I0YTRpN1hNdnhXMlV0QwoyS1VPbHFhTml1WVgrSUVCQ2hxMk1wUUE3QXNsa0NQS1BzbVZEcjJRbmxBczlNeHVwK1k1aU53TThDTlFIYml4CnZjY3BCelhSSkNNZ2NoVU5iUWQvUitkd3N4OGZQNWx2cEd1T2EwcVJDU2Q1NzRxRDZpMXZweTZwdUZwQ0s4S3oKVXVFQXJTQWZPM3pyMlBPVXF0T1R2dUJwMEdXV2Z1SG95V2UrT2hPYjhZb2tGb3lob3dYaGNWT3kyc2xhOGJ3NgozOUtleWlmRTJFRjl2cm5VREdhY2l2eFhLRzdwOEUxQ1JETUxyQ1h2SFRBSi9JQnhjSi8rb3VreG9yRlJvMXBHCjZQeTV3K0s5T2NCckcwejBwWjI4N1c4RlVXRW9wWGt6RGxmN2l2aEt6RWt5S1lrY204MVNnUVYwdHRtaFNLSFMKUUZua2ZuTHVpYWtseHFweHkxd256YnRESGJ2VDFEb3FNL2pBdGZaaDIxV2x3WkhYV3ZQZ21Wb2xiMWM2Z2hCWgpXOVM4OU9QcFpKVWtNYVV0SHFkV215cE45ZytHa240MU13eDg1eDRsdmljPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg== - client-key-data: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlKS1FJQkFBS0NBZ0VBMHB0QkRqL3Nsd01oQ3ZZbXNXMjFma21mMFprTWlhQ1pzZ1FiN2l4czMzVG1rcG1GCmJtTFlManNGbFNvLzBGdzVEeGhjODkvcDQvaUgyWnZydjQra2RpblZveW1MbFB6bXNjZ0I5R0J2c0FrR0s0T3MKbFhhSFVFY2dkYzlZUHIvR3ZRc282RGZVWWI3RjdRVTBqUldUQWdLZyt0MnBKZGQ0bVRKR0l4czg5YzB5U25hVgplY2VyZ3hFMzVjeml3dU51SG9jMkx4WnhVL1lPakJxc0xXRkNUZFlpWnNMSXpaTUlnNk5YNHJKOC9jYmVrUzU4CmVoTVJpVFZpUWdKUFpaRU5nZnVWZlFCd2I0bG1vQnN2MGNhdXNXbU81dmp3Z3l1QnZndnlHQXBDendLQ3hId0QKbGYwU044MEgzbzl4alNHVjA5Qmo2bGtRRjdlZGc3K01rV3RrbzhxS1RsQWhJNmhuRzIwa1EwWUluMm9wajlOKwpaSHRNbldiREs1VlhFYVVOaFJ6RkZHYzZHeVA3SWVvTnIxS1F6bzE2anV1OVlwbnFVRjZ1dUNNY21QQiswNkt6ClF6VFdmV2ZqSi9NVkNiSDhIV2t6dWFPMzc3WjZkYVNObHNiNkNtUDNHd0RRZDFHamhBOVpRQ0RKMXpuTitSSEcKTVQvMjR5c3h6b2dpNHhnb2dQVXM0YTFvN2t5SmhpUysrVGxMN0VZK21pVXpnZG5hOGJlQWJnSmZicEx0OUJOVQpQWFpPYk41NXNiQjBPR25yUGpmUkg5RklZUmtxQmZjQ09kNEFXQjFtOUgzMjBiOUNtS0VEU1JHUTlvVnJhMDlMCjBjOXp5c3RhT3QrVUFKeDJ6M09DcWM2cTZCQUQvUDFra2d1dTlhbEMyMDhsdDMxaGN2MEV1dzR3RzUwQ0F3RUEKQVFLQ0FnRUFqNGxVcTF1UjZkSXVJUVJtbHFLSkFjczM2MmYrRFlheGVZd25aUXBPSVhYUTk3VStKVitrcXMxNwpIcEN1OFZrSlltcGVYN0FKL2wrU1p4TkhkMFYwOXp2SDZPNFZ2Yk1ubjU4TEJmejc0ZVFrbWwraHJqUWNRUEJaCkJUSU5tS2FuMG92YWszb0plNXpEMUtpcGlrWmI3UkRSbW1pY01iaEs3MDQrVXdyclh6TTh4VmRReExEN0NkY2cKVzdScUVCMWxIZFZWYm41RE90QUdWaUtQbWxZaEZGK1BEcTVPb1IxR3ZrRURVdlFIRUFjTUJiTERENGdUZVlveQpyMzVYa29kcngxMHFJd203bDZqemtzYzByaXBWUVlFSjdnMVlEbTRHZlBvelE0TXF5VitTdEVzNVBtNCtqbDFrCnNhRGQ2U3dzcXpIcUJ2d3daWm0wOXVnRDY5QmZ3NnlxdXcrM2tLVFF1RER5ZFZya2hLZEVISUtmR290dzg3QVYKZld4OUYrVDBSZFJnd1FpMzZ5K0JnQXZmNm5kM1NJS3oxMmdPSFgzM1A3a0lCajd6ZXI5bTZINW0vOThmYTlQeApTUWdhMDdWZ2tFbFZCanVKMzNSeVF4V1BZY3FEeUJ1QUtxRm9IeFFSOXhtZzdIdkhscGg1SHFPNWhnOVdLbzJ5CkVnRjRCNlIxak1qYzNwLzF6Y0JmZ0dwVlRNTkFQcDF4WTQ5Ti9kYytWckRRS3JBWk1TSjJrb1QxaklLdUhtR0wKb0E4MEtvVG9UMkNEL2hUTTFSaFBKSGZIVW02L1V4b2hlUUtibG5GZ1hTOW1ZUE5KQ3M2UlFha2tDb1ZsYVFEYQpYRE9INzRYTW1lL280a2RGMis5MmZDallJdExjK084Rm9rdWdKSGlWaXM4Tmx4K2VyY0VDZ2dFQkFQa2NteHZwCnQ4RUlzellXK1UxNGxCcHlzZFVJOGcwSkFGbjZqM083bTVuQ285cmhKcVNQRXEvVzJZRHU1ZFlzd0k1dzR6WjkKcjJHNCtDTzlocm1Pckx4OFZ4MDBEVUw4MjF2WjhKc3U5VXpsbldhRHNUUzUvSWJGNGt0T0NqZU9zOFgvTmQzaQpnWDY1L3ZGZ1NUNm9WUWhacG92aW11S3ZYNGZjZ0VBNnZZYThtalVPVThPWlZDV2JWUUFtYjkwUXdKMlFiRUx6CkNMTEhIUlBXREhDMkdWRS9RUVRzZy9XWGthR3RKenB0WEhSZjRzNThsejB3S0h1dHFjTmp5RHNna25sTG5haUQKbEJTVm00ZmxpZ1R3ZWUydGpxRUlSeStmQTNJM0FDRzQ3VDR3Y2VrYXNXY3llTVZOdkQydG91Qi9WY2dhSWNHNwozQ0ZabzlzZ2g0QkZmV1VDZ2dFQkFOaHVGSERaOW5ieDJScHArZE9Nd2NkRWZmY2x6czZJTmxOSThIeVA1SlNHClhoNWFKZ2pjZGg5RVRSbytteUkyeHNuL1F3ZWZxSU5DUGlDeGxBdHNSK21WVm5JZ3Fkcy8ybktyQlRKa29YU2sKTkxCTDZ6a1U0YVYzQmRGWGlIZjFENTdIMTQ0dTVRRzdZd0dGaFhST0NpUnZLRjZHVGNuQVJxcjVza00zNHpILwpjYk5ycFI3d1YzdXJES3RKT3ZDUThxZnBrQU5xblpqeXpuYzRHV3VWSU4rUDRiT0o2TzlONkdrRnpOT0VQZFdYCnRtQSthQ0pTRFVkdXlKK2ZpQnBnTStmSHUrbXR2Y1VqaTdob0ZMYVRSUDBZaXh2V3lLb2dEWkZ5WXNzaEJCYjgKbEpyMEsrVDUreVNBK2NsQzdwbnVDL09Od0RwZndlNURHVGFqQzZVcy9ka0NnZ0VCQUl3MjViZFlYZTF4RUM0cAowRGtpM1hubGhPTDhIZ0hvUnlKZVBkQk9rTTZERitkalEzVHNjd0EyVmthVU1SblVKcTRHTEYzSGNLZjRqUExSCkFydis2b3RORVZ1R3FOQkRzdFNJWHoxNXVPaUhkWWoySnhBZWYxejhsTnIrR2hJYmFHVFJ1V2dpemZDZWtEa2MKa1IyTGNoRTVKTjBudHpaUXI5eXc2QjgrOE42ZDJjNXpPZ0tta3c1MzErZzF1bEViMU03Yk01U2JaeEg1c1F3eApOdDlhSC9YelBJMmc4c1dSZ284Vi96YUx4N1paSWpoSE9IbGdXZWtEWHNKenI0aFlWUm1nemlURHF0M0xON2ZPCkkxbVVZWXkrVzhHWC96bDJyMkhpUTFpMzFoRmpBenJKbzRFS2o1KyttVzIrQmllR2hLb1V5MXRZZWhicmRhY3AKTUJ1ckFXRUNnZ0VBVjhnR0NHT1BJRjBsTmg1bmtwTVRnVlBaVjJXQlJLbGdoMVVkSFJocm1JWUxKSHBoMU5RKwpJSjVlTzFmTEtneFhnbFJEQnBPT0VIYk1wZ3dBUk1YTlFRTXVCYW9UMm5aQ2pxR293UENwdjVwZU9HY0NaNnQ5CmZkUVJpdi9hdlBTck9qWkp5a1JnNDl2eDR3c1p2cnRzUjZ6Q0RkeWhMa1FMSll1UzdzcDdIcXRCbllqNmR0cjYKVUpGbTJRNGhsckxqaUpFbHRRMElFS0hpZGQ1T0NTRjZMTks1czAwcktleEthRlpPNWpkTHNSY1FoR2FyYThnbAoxS1F0UVBpK2hod2cwVkJrZWZuYTcxdGtidzNmNE5GSWVQTDhjUFVqZkVUMTI5a3VFcjg0WG01aGc1dW5OZjdpCkNzTTVESlZXR3g2K3dERHRGNEFCTXpjSndleE5hOWdjdVFLQ0FRQUFqcHBVVmdQeWY4TVZSZUVpRnQ2aXVlTk4KK08vT2xQbU83am9mcSt3S05jNUZacXRpTU5ubDRKWDNmZ1AvS3B1bFZ4eGJqaDZDdzAxWWQvSXVqUWt4Sk9QbAp4MVhwOGhncDNZYXJwdjJ0SmNtQzZBSjA1WmpXeEZBWTZWdnE0dHMyLzh5N0h4YzFsOEtkbFFvQmI2TS95MnZOCkhPRUVwNEJ3WlY3Q20zSXBvQ1JhUm9HU2hLeHc1Vk40QW1nbUpUeWRxRzI1WFhWK3NicEYzdnh6bTV4MmxtRHgKM2JrMk0xVVA3dTB2QjhPTzlvV3FKWFhDYkhlM0hmQ2krS0gzcXk2MmFQTmpncFY3cllFK2lBbm9aVGhBODJwcwpEbnNiVjhuSzNwZUQ0OUFPa1lpMER3Y09GbTNrYnJkNnV0RUIvTDlWU0NqTFFrallZaUIwM0ZreS9iazEKLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K - token: 6f92f583edd15914411a50fe51117e72269670f854086fc8bd2efa9aa60104fbcfea10484a21df4fd0cb1936cf33ccb0af2c80426c6119d6e7f5c5454c686ab7 diff --git a/src/connectedk8s/azext_connectedk8s/tests/latest/data/setupChart.tgz b/src/connectedk8s/azext_connectedk8s/tests/latest/data/setupChart.tgz deleted file mode 100644 index 9174444ba93..00000000000 Binary files a/src/connectedk8s/azext_connectedk8s/tests/latest/data/setupChart.tgz and /dev/null differ diff --git a/src/connectedk8s/azext_connectedk8s/tests/latest/recordings/test_connectedk8s.yaml b/src/connectedk8s/azext_connectedk8s/tests/latest/recordings/test_connectedk8s.yaml index 9286d835ec8..e34ebef566c 100644 --- a/src/connectedk8s/azext_connectedk8s/tests/latest/recordings/test_connectedk8s.yaml +++ b/src/connectedk8s/azext_connectedk8s/tests/latest/recordings/test_connectedk8s.yaml @@ -13,24 +13,21 @@ interactions: ParameterSetName: - -g -n -s -l -c --generate-ssh-keys User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar-test2?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2","name":"akkeshar-test2","type":"Microsoft.Resources/resourceGroups","location":"eastus2","properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar","name":"akkeshar","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"Created":"20210721"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '226' + - '243' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:45:09 GMT + - Sun, 01 Aug 2021 13:00:17 GMT expires: - '-1' pragma: @@ -44,246 +41,18 @@ interactions: status: code: 200 message: OK -- request: - body: '{"availableToOtherTenants": false, "homepage": "http://7cc6a0.cli-test-a-akkeshar-test2-1bfbb5.westeurope.cloudapp.azure.com", - "passwordCredentials": [{"startDate": "2020-04-29T10:45:09.090294Z", "endDate": - "2025-04-29T10:45:09.090294Z", "keyId": "18b0b217-5dbc-4547-ba71-ae8c200fd684", - "value": "ReplacedSPPassword123*"}], "displayName": "cli-test-aks-000001", "identifierUris": - ["http://7cc6a0.cli-test-a-akkeshar-test2-1bfbb5.westeurope.cloudapp.azure.com"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '465' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -s -l -c --generate-ssh-keys - User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US - method: POST - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?api-version=1.6 - response: - body: - string: '{"odata.metadata": "https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element", - "odata.type": "Microsoft.DirectoryServices.Application", "objectType": "Application", - "objectId": "25f47067-8000-4313-b12b-1e68e5bd7ce7", "deletionTimestamp": null, - "acceptMappedClaims": null, "addIns": [], "appId": "b1b0bd23-b490-4728-8202-54f2378dd0ab", - "applicationTemplateId": null, "appRoles": [], "availableToOtherTenants": - false, "displayName": "cli-test-aks-000001", "errorUrl": null, "groupMembershipClaims": - null, "homepage": "http://7cc6a0.cli-test-a-akkeshar-test2-1bfbb5.westeurope.cloudapp.azure.com", - "identifierUris": ["http://7cc6a0.cli-test-a-akkeshar-test2-1bfbb5.westeurope.cloudapp.azure.com"], - "informationalUrls": {"termsOfService": null, "support": null, "privacy": - null, "marketing": null}, "isDeviceOnlyAuthSupported": null, "keyCredentials": - [], "knownClientApplications": [], "logoutUrl": null, "logo@odata.mediaEditLink": - "directoryObjects/25f47067-8000-4313-b12b-1e68e5bd7ce7/Microsoft.DirectoryServices.Application/logo", - "logo@odata.mediaContentType": "application/json;odata=minimalmetadata; charset=utf-8", - "logoUrl": null, "mainLogo@odata.mediaEditLink": "directoryObjects/25f47067-8000-4313-b12b-1e68e5bd7ce7/Microsoft.DirectoryServices.Application/mainLogo", - "oauth2AllowIdTokenImplicitFlow": true, "oauth2AllowImplicitFlow": false, - "oauth2AllowUrlPathMatching": false, "oauth2Permissions": [{"adminConsentDescription": - "Allow the application to access cli-test-aks-000001 on behalf of the signed-in - user.", "adminConsentDisplayName": "Access cli-test-aks-000001", "id": "295a1b62-b6dd-4fce-8e50-aa75828f34ce", - "isEnabled": true, "type": "User", "userConsentDescription": "Allow the application - to access cli-test-aks-000001 on your behalf.", "userConsentDisplayName": - "Access cli-test-aks-000001", "value": "user_impersonation"}], "oauth2RequirePostResponse": - false, "optionalClaims": null, "orgRestrictions": [], "parentalControlSettings": - {"countriesBlockedForMinors": [], "legalAgeGroupRule": "Allow"}, "passwordCredentials": - [{"customKeyIdentifier": null, "endDate": "2025-04-29T10:45:09.090294Z", "keyId": - "18b0b217-5dbc-4547-ba71-ae8c200fd684", "startDate": "2020-04-29T10:45:09.090294Z", - "value": "ReplacedSPPassword123*"}], "publicClient": null, "publisherDomain": - "microsoft.onmicrosoft.com", "recordConsentConditions": null, "replyUrls": - [], "requiredResourceAccess": [], "samlMetadataUrl": null, "signInAudience": - "AzureADMyOrg", "tokenEncryptionKeyId": null}' - headers: - access-control-allow-origin: - - '*' - cache-control: - - no-cache - content-length: - - '2417' - content-type: - - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 - dataserviceversion: - - 3.0; - date: - - Wed, 29 Apr 2020 10:45:15 GMT - duration: - - '34598203' - expires: - - '-1' - location: - - https://graph.windows.net/00000000-0000-0000-0000-000000000000/directoryObjects/25f47067-8000-4313-b12b-1e68e5bd7ce7/Microsoft.DirectoryServices.Application - ocp-aad-diagnostics-server-name: - - 7p18uT4vGRQ61af1sJOCAdNJxJr1keswAh6tZndlxuE= - ocp-aad-session-key: - - _1Odn6to25smjSSQRuttoA0571QALrfU3bGo3RTpU8vetXJXXzYakZSpgdB3S9Du2jtdH2KP-YNRycLUtx0g81XH2Rz8UejfLzTmnmHSOhGAih6HcbxyRSxKw6ses_MchD5eQRTEVffzrBm4kBgBDd3j57Em_APvEm4fXh4aQtg.6h0uIdfq61Q9ErXq-WPwIT0Rab_TgEUX9LbFNsBvSKg - pragma: - - no-cache - request-id: - - 0d0affe9-9b45-48ef-919e-d4e9fbb6cf3d - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-ms-dirapi-data-contract-version: - - '1.6' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - -g -n -s -l -c --generate-ssh-keys - User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US - method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=appId%20eq%20%27b1b0bd23-b490-4728-8202-54f2378dd0ab%27&api-version=1.6 - response: - body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"25f47067-8000-4313-b12b-1e68e5bd7ce7","deletionTimestamp":null,"acceptMappedClaims":null,"addIns":[],"appId":"b1b0bd23-b490-4728-8202-54f2378dd0ab","applicationTemplateId":null,"appRoles":[],"availableToOtherTenants":false,"displayName":"cli-test-aks-000001","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://7cc6a0.cli-test-a-akkeshar-test2-1bfbb5.westeurope.cloudapp.azure.com","identifierUris":["http://7cc6a0.cli-test-a-akkeshar-test2-1bfbb5.westeurope.cloudapp.azure.com"],"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"isDeviceOnlyAuthSupported":null,"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"logo@odata.mediaEditLink":"directoryObjects/25f47067-8000-4313-b12b-1e68e5bd7ce7/Microsoft.DirectoryServices.Application/logo","logoUrl":null,"mainLogo@odata.mediaEditLink":"directoryObjects/25f47067-8000-4313-b12b-1e68e5bd7ce7/Microsoft.DirectoryServices.Application/mainLogo","oauth2AllowIdTokenImplicitFlow":true,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow - the application to access cli-test-aks-000001 on behalf of the signed-in user.","adminConsentDisplayName":"Access - cli-test-aks-000001","id":"295a1b62-b6dd-4fce-8e50-aa75828f34ce","isEnabled":true,"type":"User","userConsentDescription":"Allow - the application to access cli-test-aks-000001 on your behalf.","userConsentDisplayName":"Access - cli-test-aks-000001","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"optionalClaims":null,"orgRestrictions":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[{"customKeyIdentifier":null,"endDate":"2025-04-29T10:45:09.090294Z","keyId":"18b0b217-5dbc-4547-ba71-ae8c200fd684","startDate":"2020-04-29T10:45:09.090294Z","value":null}],"publicClient":null,"publisherDomain":"microsoft.onmicrosoft.com","recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null,"signInAudience":"AzureADMyOrg","tokenEncryptionKeyId":null}]}' - headers: - access-control-allow-origin: - - '*' - cache-control: - - no-cache - content-length: - - '2334' - content-type: - - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 - dataserviceversion: - - 3.0; - date: - - Wed, 29 Apr 2020 10:45:15 GMT - duration: - - '6988510' - expires: - - '-1' - ocp-aad-diagnostics-server-name: - - 61Ou7OtgPD33y/Ek0UKNuiMUb1UKYvW6rTXr2hZ/xmY= - ocp-aad-session-key: - - OdOWN2veUnRr2o9dBdybx84MoGA_UekBWQZMwp8MA2Q5yb0IAWkwgjKChuBnDnY6rPz9zIW9xSDlCks2jfRig9J1NNjm5JvJIm53qAMuUEbXpSFzjPM9Msff5cOewD-w_mML39wmEEBq53eZCpMBlsX7VFUc9FVfJTgH0ek3rLk.1RuRAbu-aeRhEMsaCFFS_wVbAP3dqFeP1xoaIrma_L8 - pragma: - - no-cache - request-id: - - 1f8dcb3f-25ac-43c4-be30-47437c6706aa - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-ms-dirapi-data-contract-version: - - '1.6' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"accountEnabled": "True", "appId": "b1b0bd23-b490-4728-8202-54f2378dd0ab"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - Content-Length: - - '75' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n -s -l -c --generate-ssh-keys - User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US - method: POST - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?api-version=1.6 - response: - body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element","odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"7ff427c5-787e-4b23-b3fb-0d9d91c04fee","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"cli-test-aks-000001","appId":"b1b0bd23-b490-4728-8202-54f2378dd0ab","applicationTemplateId":null,"appOwnerTenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"cli-test-aks-000001","errorUrl":null,"homepage":"http://7cc6a0.cli-test-a-akkeshar-test2-1bfbb5.westeurope.cloudapp.azure.com","informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[{"adminConsentDescription":"Allow - the application to access cli-test-aks-000001 on behalf of the signed-in user.","adminConsentDisplayName":"Access - cli-test-aks-000001","id":"295a1b62-b6dd-4fce-8e50-aa75828f34ce","isEnabled":true,"type":"User","userConsentDescription":"Allow - the application to access cli-test-aks-000001 on your behalf.","userConsentDisplayName":"Access - cli-test-aks-000001","value":"user_impersonation"}],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["b1b0bd23-b490-4728-8202-54f2378dd0ab","http://7cc6a0.cli-test-a-akkeshar-test2-1bfbb5.westeurope.cloudapp.azure.com"],"servicePrincipalType":"Application","signInAudience":"AzureADMyOrg","tags":[],"tokenEncryptionKeyId":null}' - headers: - access-control-allow-origin: - - '*' - cache-control: - - no-cache - content-length: - - '1832' - content-type: - - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 - dataserviceversion: - - 3.0; - date: - - Wed, 29 Apr 2020 10:45:17 GMT - duration: - - '11769749' - expires: - - '-1' - location: - - https://graph.windows.net/00000000-0000-0000-0000-000000000000/directoryObjects/7ff427c5-787e-4b23-b3fb-0d9d91c04fee/Microsoft.DirectoryServices.ServicePrincipal - ocp-aad-diagnostics-server-name: - - PATy/n3ENB49PZzrRrxUlup+A6HJ8rhUg03P3QIAPhw= - ocp-aad-session-key: - - 1WON4SxJj__t7p7M3Qtn_Tq4K9A_1tBvtUUbVXuu8c5HIWzZgAYSp-jEfZIURg071leYZFJG3QDX-DtaRf7v_v7nthFzaRFYSpcpQKL78aOSusf5AxrEbt796Wyuvi2BuZbemFL1sfm44f-nxeahjT4VJ3JYyzXujka44opMlUo.JXDee9ZH7MyhyF_XnGlvv_DlKPqVu-MA0DR3-YeDGgY - pragma: - - no-cache - request-id: - - 19cc55bb-59ac-4a1a-bcce-e691e89e8203 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-ms-dirapi-data-contract-version: - - '1.6' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created - request: body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cli-test-a-akkeshar-test2-1bfbb5", "agentPoolProfiles": [{"count": 1, "vmSize": - "Standard_B2s", "osType": "Linux", "type": "VirtualMachineScaleSets", "scaleSetPriority": - "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": - {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbin7SrkJJBI0wUyk1x5q+Gi+3En8WfOUFtplPhT9xNC1ZYmVWoKso9QZ6GedHX5dzq9OpwDytTkJoKzOOhORCJ1oVdOwi1d94qoxgO4HDvP9m99nNC3Q2+Nl6q8M6XcmgKzcFkt1fYZDVqbtohfoktJSBrOWkXob3ct4R/+LtHABJPZp2QwZTv6ZN+E+35fEKONbaI3UWaCnNUQ/UefIHcIqXJTKh0kLCHRLGUoqgkiRJxi+EcxRiw677IxQsnP1haGWtTA1sglWvMw8cuav77TBqtegE7C72qwB2WIvG1/uVLKt/CHvWcni9r2dnC2sgHkfx9F9xHJ17kbWPpdAh"}]}}, - "servicePrincipalProfile": {"clientId": "00000000-0000-0000-0000-000000000001", - "secret": "fake-secret"}, "addonProfiles": {}, "enableRBAC": true, - "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", - "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", "loadBalancerSku": "standard"}}}' + "cli-test-a-akkeshar-1bfbb5", "agentPoolProfiles": [{"count": 1, "vmSize": "Standard_B2s", + "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "enableNodePublicIP": + false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": + "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": + [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDaIV6uD+Mhm1JWF662S7fLWlkbdZODE8TuLUsKdkJoC+rWZVpXy1u4t/jCne6ZloWfdaHmF/99DOoIT9rLcWesXicBQCtPuZeQC3fHB6WQkVo7STwxrSGNKxVMelJ7D/YzJmsX/b9834uDUwvYSXc1xfRUJRMZR+5kajHus/NqfbpcBnSiG5WZhwXDGpEwA2YxuKQkYqSR+bcs/XaxI6t3iITOVe/QVzkrm4DT5n+bZzUfdSrrPHwTS3OQr788URnF48lcNDVpSEeQdDVC5B7RjD1U83yp7uvZ6GHSoxpIS8uStbaZKGWl8aV+dBFkjx6Fl2mGa0u8R86DUepdcO8T + akkesharlinux@AkashLaptop\n"}]}}, "addonProfiles": {}, "enableRBAC": true, "enablePodSecurityPolicy": + false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", + "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": + "172.17.0.1/16", "outboundType": "loadBalancer", "loadBalancerSku": "standard"}}, + "identity": {"type": "SystemAssigned"}}' headers: Accept: - application/json @@ -294,33 +63,58 @@ interactions: Connection: - keep-alive Content-Length: - - '1185' + - '1210' Content-Type: - application/json; charset=utf-8 ParameterSetName: - -g -n -s -l -c --generate-ssh-keys User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 + azure-mgmt-containerservice/4.4.6 Azure-SDK-For-Python AZURECLI/2.26.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001?api-version=2020-11-01 response: body: - string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service - principal clientID: b1b0bd23-b490-4728-8202-54f2378dd0ab not found in Active - Directory tenant 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help - for more details.\"\n }" + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001\",\n + \ \"location\": \"westeurope\",\n \"name\": \"cli-test-aks-000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.20.7\",\n \"dnsPrefix\": \"cli-test-a-akkeshar-1bfbb5\",\n \"fqdn\": + \"cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"nodepool1\",\n \"count\": 1,\n \"vmSize\": + \"Standard_B2s\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.10\"\n }\n + \ ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDaIV6uD+Mhm1JWF662S7fLWlkbdZODE8TuLUsKdkJoC+rWZVpXy1u4t/jCne6ZloWfdaHmF/99DOoIT9rLcWesXicBQCtPuZeQC3fHB6WQkVo7STwxrSGNKxVMelJ7D/YzJmsX/b9834uDUwvYSXc1xfRUJRMZR+5kajHus/NqfbpcBnSiG5WZhwXDGpEwA2YxuKQkYqSR+bcs/XaxI6t3iITOVe/QVzkrm4DT5n+bZzUfdSrrPHwTS3OQr788URnF48lcNDVpSEeQdDVC5B7RjD1U83yp7uvZ6GHSoxpIS8uStbaZKGWl8aV+dBFkjx6Fl2mGa0u8R86DUepdcO8T + akkesharlinux@AkashLaptop\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\": \"msi\"\n },\n \"nodeResourceGroup\": \"MC_akkeshar_cli-test-aks-000001_westeurope\",\n + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\": + {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"standard\",\n + \ \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": + 1\n }\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": + \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": + \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"maxAgentPools\": + 100\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\": + \"48ef5996-8142-4b50-a07f-8787200d8692\",\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n + \ },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n + }" headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/d5845aff-d82e-4de9-aa5f-698d7f3a90ec?api-version=2017-08-31 cache-control: - no-cache content-length: - - '253' + - '2434' content-type: - application/json date: - - Wed, 29 Apr 2020 10:45:26 GMT + - Sun, 01 Aug 2021 13:00:31 GMT expires: - '-1' pragma: @@ -334,19 +128,10 @@ interactions: x-ms-ratelimit-remaining-subscription-writes: - '1199' status: - code: 400 - message: Bad Request + code: 201 + message: Created - request: - body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cli-test-a-akkeshar-test2-1bfbb5", "agentPoolProfiles": [{"count": 1, "vmSize": - "Standard_B2s", "osType": "Linux", "type": "VirtualMachineScaleSets", "scaleSetPriority": - "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": - {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbin7SrkJJBI0wUyk1x5q+Gi+3En8WfOUFtplPhT9xNC1ZYmVWoKso9QZ6GedHX5dzq9OpwDytTkJoKzOOhORCJ1oVdOwi1d94qoxgO4HDvP9m99nNC3Q2+Nl6q8M6XcmgKzcFkt1fYZDVqbtohfoktJSBrOWkXob3ct4R/+LtHABJPZp2QwZTv6ZN+E+35fEKONbaI3UWaCnNUQ/UefIHcIqXJTKh0kLCHRLGUoqgkiRJxi+EcxRiw677IxQsnP1haGWtTA1sglWvMw8cuav77TBqtegE7C72qwB2WIvG1/uVLKt/CHvWcni9r2dnC2sgHkfx9F9xHJ17kbWPpdAh"}]}}, - "servicePrincipalProfile": {"clientId": "00000000-0000-0000-0000-000000000001", - "secret": "fake-secret"}, "addonProfiles": {}, "enableRBAC": true, - "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", - "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", "loadBalancerSku": "standard"}}}' + body: null headers: Accept: - application/json @@ -356,34 +141,26 @@ interactions: - aks create Connection: - keep-alive - Content-Length: - - '1185' - Content-Type: - - application/json; charset=utf-8 ParameterSetName: - -g -n -s -l -c --generate-ssh-keys User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001?api-version=2019-10-01 + - python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 + azure-mgmt-containerservice/4.4.6 Azure-SDK-For-Python AZURECLI/2.26.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/d5845aff-d82e-4de9-aa5f-698d7f3a90ec?api-version=2017-08-31 response: body: - string: "{\n \"code\": \"ServicePrincipalNotFound\",\n \"message\": \"Service - principal clientID: b1b0bd23-b490-4728-8202-54f2378dd0ab not found in Active - Directory tenant 72f988bf-86f1-41af-91ab-2d7cd011db47, Please see https://aka.ms/aks-sp-help - for more details.\"\n }" + string: "{\n \"name\": \"ff5a84d5-2ed8-e94d-aa5f-698d7f3a90ec\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:00:30.3266666Z\"\n }" headers: cache-control: - no-cache content-length: - - '253' + - '126' content-type: - application/json date: - - Wed, 29 Apr 2020 10:45:39 GMT + - Sun, 01 Aug 2021 13:01:02 GMT expires: - '-1' pragma: @@ -392,24 +169,17 @@ interactions: - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' status: - code: 400 - message: Bad Request + code: 200 + message: OK - request: - body: '{"location": "westeurope", "properties": {"kubernetesVersion": "", "dnsPrefix": - "cli-test-a-akkeshar-test2-1bfbb5", "agentPoolProfiles": [{"count": 1, "vmSize": - "Standard_B2s", "osType": "Linux", "type": "VirtualMachineScaleSets", "scaleSetPriority": - "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": - {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbin7SrkJJBI0wUyk1x5q+Gi+3En8WfOUFtplPhT9xNC1ZYmVWoKso9QZ6GedHX5dzq9OpwDytTkJoKzOOhORCJ1oVdOwi1d94qoxgO4HDvP9m99nNC3Q2+Nl6q8M6XcmgKzcFkt1fYZDVqbtohfoktJSBrOWkXob3ct4R/+LtHABJPZp2QwZTv6ZN+E+35fEKONbaI3UWaCnNUQ/UefIHcIqXJTKh0kLCHRLGUoqgkiRJxi+EcxRiw677IxQsnP1haGWtTA1sglWvMw8cuav77TBqtegE7C72qwB2WIvG1/uVLKt/CHvWcni9r2dnC2sgHkfx9F9xHJ17kbWPpdAh"}]}}, - "servicePrincipalProfile": {"clientId": "00000000-0000-0000-0000-000000000001", - "secret": "fake-secret"}, "addonProfiles": {}, "enableRBAC": true, - "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", - "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", "loadBalancerSku": "standard"}}}' + body: null headers: Accept: - application/json @@ -419,54 +189,26 @@ interactions: - aks create Connection: - keep-alive - Content-Length: - - '1185' - Content-Type: - - application/json; charset=utf-8 ParameterSetName: - -g -n -s -l -c --generate-ssh-keys User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001?api-version=2019-10-01 + - python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 + azure-mgmt-containerservice/4.4.6 Azure-SDK-For-Python AZURECLI/2.26.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/d5845aff-d82e-4de9-aa5f-698d7f3a90ec?api-version=2017-08-31 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar-test2/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001\",\n - \ \"location\": \"westeurope\",\n \"name\": \"cli-test-aks-000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Creating\",\n \"kubernetesVersion\": \"1.15.10\",\n \"dnsPrefix\": \"cli-test-a-akkeshar-test2-1bfbb5\",\n - \ \"fqdn\": \"cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_B2s\",\n \"osDiskSizeGB\": 100,\n \"maxPods\": - 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": - \"Creating\",\n \"orchestratorVersion\": \"1.15.10\",\n \"osType\": - \"Linux\"\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDbin7SrkJJBI0wUyk1x5q+Gi+3En8WfOUFtplPhT9xNC1ZYmVWoKso9QZ6GedHX5dzq9OpwDytTkJoKzOOhORCJ1oVdOwi1d94qoxgO4HDvP9m99nNC3Q2+Nl6q8M6XcmgKzcFkt1fYZDVqbtohfoktJSBrOWkXob3ct4R/+LtHABJPZp2QwZTv6ZN+E+35fEKONbaI3UWaCnNUQ/UefIHcIqXJTKh0kLCHRLGUoqgkiRJxi+EcxRiw677IxQsnP1haGWtTA1sglWvMw8cuav77TBqtegE7C72qwB2WIvG1/uVLKt/CHvWcni9r2dnC2sgHkfx9F9xHJ17kbWPpdAh\"\n - \ }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\": - \"b1b0bd23-b490-4728-8202-54f2378dd0ab\"\n },\n \"nodeResourceGroup\": - \"MC_akkeshar-test2_cli-test-aks-000001_westeurope\",\n \"enableRBAC\": - true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n - \ \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"standard\",\n - \ \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": - 1\n }\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": - \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": - \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"maxAgentPools\": - 10\n }\n }" + string: "{\n \"name\": \"ff5a84d5-2ed8-e94d-aa5f-698d7f3a90ec\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:00:30.3266666Z\"\n }" headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 cache-control: - no-cache content-length: - - '1970' + - '126' content-type: - application/json date: - - Wed, 29 Apr 2020 10:45:56 GMT + - Sun, 01 Aug 2021 13:01:33 GMT expires: - '-1' pragma: @@ -475,13 +217,15 @@ interactions: - nginx strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -496,14 +240,14 @@ interactions: ParameterSetName: - -g -n -s -l -c --generate-ssh-keys User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 + azure-mgmt-containerservice/4.4.6 Azure-SDK-For-Python AZURECLI/2.26.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/d5845aff-d82e-4de9-aa5f-698d7f3a90ec?api-version=2017-08-31 response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\"\n }" + string: "{\n \"name\": \"ff5a84d5-2ed8-e94d-aa5f-698d7f3a90ec\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:00:30.3266666Z\"\n }" headers: cache-control: - no-cache @@ -512,7 +256,7 @@ interactions: content-type: - application/json date: - - Wed, 29 Apr 2020 10:46:26 GMT + - Sun, 01 Aug 2021 13:02:03 GMT expires: - '-1' pragma: @@ -544,14 +288,14 @@ interactions: ParameterSetName: - -g -n -s -l -c --generate-ssh-keys User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 + azure-mgmt-containerservice/4.4.6 Azure-SDK-For-Python AZURECLI/2.26.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/d5845aff-d82e-4de9-aa5f-698d7f3a90ec?api-version=2017-08-31 response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\"\n }" + string: "{\n \"name\": \"ff5a84d5-2ed8-e94d-aa5f-698d7f3a90ec\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:00:30.3266666Z\"\n }" headers: cache-control: - no-cache @@ -560,7 +304,7 @@ interactions: content-type: - application/json date: - - Wed, 29 Apr 2020 10:46:57 GMT + - Sun, 01 Aug 2021 13:02:34 GMT expires: - '-1' pragma: @@ -592,14 +336,14 @@ interactions: ParameterSetName: - -g -n -s -l -c --generate-ssh-keys User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 + azure-mgmt-containerservice/4.4.6 Azure-SDK-For-Python AZURECLI/2.26.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/d5845aff-d82e-4de9-aa5f-698d7f3a90ec?api-version=2017-08-31 response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\"\n }" + string: "{\n \"name\": \"ff5a84d5-2ed8-e94d-aa5f-698d7f3a90ec\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:00:30.3266666Z\"\n }" headers: cache-control: - no-cache @@ -608,7 +352,7 @@ interactions: content-type: - application/json date: - - Wed, 29 Apr 2020 10:47:28 GMT + - Sun, 01 Aug 2021 13:03:05 GMT expires: - '-1' pragma: @@ -640,23 +384,24 @@ interactions: ParameterSetName: - -g -n -s -l -c --generate-ssh-keys User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 + azure-mgmt-containerservice/4.4.6 Azure-SDK-For-Python AZURECLI/2.26.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/d5845aff-d82e-4de9-aa5f-698d7f3a90ec?api-version=2017-08-31 response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\"\n }" + string: "{\n \"name\": \"ff5a84d5-2ed8-e94d-aa5f-698d7f3a90ec\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-08-01T13:00:30.3266666Z\",\n \"endTime\": + \"2021-08-01T13:03:33.8851728Z\"\n }" headers: cache-control: - no-cache content-length: - - '126' + - '170' content-type: - application/json date: - - Wed, 29 Apr 2020 10:48:00 GMT + - Sun, 01 Aug 2021 13:03:36 GMT expires: - '-1' pragma: @@ -688,23 +433,52 @@ interactions: ParameterSetName: - -g -n -s -l -c --generate-ssh-keys User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 + azure-mgmt-containerservice/4.4.6 Azure-SDK-For-Python AZURECLI/2.26.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001?api-version=2020-11-01 response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\"\n }" + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001\",\n + \ \"location\": \"westeurope\",\n \"name\": \"cli-test-aks-000001\",\n \"type\": + \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": + \"1.20.7\",\n \"dnsPrefix\": \"cli-test-a-akkeshar-1bfbb5\",\n \"fqdn\": + \"cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io\",\n \"agentPoolProfiles\": + [\n {\n \"name\": \"nodepool1\",\n \"count\": 1,\n \"vmSize\": + \"Standard_B2s\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n + \ \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": + \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n + \ \"orchestratorVersion\": \"1.20.7\",\n \"enableNodePublicIP\": false,\n + \ \"nodeLabels\": {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n + \ \"nodeImageVersion\": \"AKSUbuntu-1804gen2containerd-2021.07.10\"\n }\n + \ ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\": + {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDaIV6uD+Mhm1JWF662S7fLWlkbdZODE8TuLUsKdkJoC+rWZVpXy1u4t/jCne6ZloWfdaHmF/99DOoIT9rLcWesXicBQCtPuZeQC3fHB6WQkVo7STwxrSGNKxVMelJ7D/YzJmsX/b9834uDUwvYSXc1xfRUJRMZR+5kajHus/NqfbpcBnSiG5WZhwXDGpEwA2YxuKQkYqSR+bcs/XaxI6t3iITOVe/QVzkrm4DT5n+bZzUfdSrrPHwTS3OQr788URnF48lcNDVpSEeQdDVC5B7RjD1U83yp7uvZ6GHSoxpIS8uStbaZKGWl8aV+dBFkjx6Fl2mGa0u8R86DUepdcO8T + akkesharlinux@AkashLaptop\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + {\n \"clientId\": \"msi\"\n },\n \"nodeResourceGroup\": \"MC_akkeshar_cli-test-aks-000001_westeurope\",\n + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\": + {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n + \ \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": + 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_akkeshar_cli-test-aks-000001_westeurope/providers/Microsoft.Network/publicIPAddresses/fef3c094-9bf0-468b-833b-0c9814ea7906\"\n + \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": + \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": + \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"maxAgentPools\": + 100,\n \"identityProfile\": {\n \"kubeletidentity\": {\n \"resourceId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_akkeshar_cli-test-aks-000001_westeurope/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cli-test-aks-000001-agentpool\",\n + \ \"clientId\": \"def4b342-5ffd-4376-b8e2-ec13e85bca86\",\n \"objectId\": + \"69073422-b598-4ec4-9123-1a35c33d9c22\"\n }\n }\n },\n \"identity\": + {\n \"type\": \"SystemAssigned\",\n \"principalId\": \"48ef5996-8142-4b50-a07f-8787200d8692\",\n + \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": + {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: cache-control: - no-cache content-length: - - '126' + - '3109' content-type: - application/json date: - - Wed, 29 Apr 2020 10:48:30 GMT + - Sun, 01 Aug 2021 13:03:36 GMT expires: - '-1' pragma: @@ -730,29 +504,34 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - aks create + - aks get-credentials Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - - -g -n -s -l -c --generate-ssh-keys + - -g -n -f User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + - python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 + azure-mgmt-containerservice/4.4.6 Azure-SDK-For-Python AZURECLI/2.26.1 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001/listClusterUserCredential?api-version=2020-11-01 response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\"\n }" + string: "{\n \"kubeconfigs\": [\n {\n \"name\": \"clusterUser\",\n \"value\": + \"YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlZFTkRRWFJIWjBGM1NVSkJaMGxTUVVzdmVYQXlWWGxFUW1KQlpYcDVTRlF6Vmxwc1VqQjNSRkZaU2t0dldrbG9kbU5PUVZGRlRFSlJRWGNLUkZSRlRFMUJhMGRCTVZWRlFYaE5RMWt5UlhkSlFtTk9UV3BGZDA5RVFYaE5WRWt4VFVSUk1GZG9aMUJOYWtFeFRWUkJORTFFUlhoTmVrRjNUa1JTWVFwTlFUQjRRM3BCU2tKblRsWkNRVTFVUVcxT2FFMUpTVU5KYWtGT1FtZHJjV2hyYVVjNWR6QkNRVkZGUmtGQlQwTkJaemhCVFVsSlEwTm5TME5CWjBWQkNuTXphRGRvVjFneEwwZDRhblkxY1ZVeE9TOXhjVlJEWkhrNVZrSnhkM3BhY1dKak5qTjJjVzVuUWs4NGJFcDBUMDh6WVZaR05WSmhkbFpCUVV3cmVESUtZbkJsYVRZeVMwTkZlbE5OYTB0WVJWRnpWV2RQU2pkVE1tMTRZbFJ4V0c5R1RrWnVkazVWVkhOR1drOHhlVFZTVjFWTU5YTjBjRk40TTBzemJHTkhOZ3BLVlVSWVpuUTNURTU0TVhGVGNqUlFNR1pJYVd0RWFIVjFTR3BCWjBwbU55OXVNR05sWVZwelp6RTNSV0ZFYTB4NFkzVkhZMkZWWW5OdlpIWk9NV2R0Q20xWFRVbDFTVkppYVhaVFkyOXRXa2xSV1RKUWEyVXpSQ3RyZDJaQ1oxWjJlVmxtWjBoWllXbFNTbHBSV1ZWUUsxQlJVVXc1U1RReFdqVjFhWEZqTWprS1JtOUdlbFIzUTNOamNDOUtNa2x0TWl0c1ZqUlZhbWN4ZEhwUU9UTlRWbXhLV2pnNE1qSnBjekYxZVZGU1FXSkVTMFpJT1ZkVVVVTlpLMkZZU25rd09RcEJkVlJpVG14MFFYTkNkbUpsWmtSVGNHaElNbHBPWmtOVWNGTTNTMFJVZURCM1p6QnZRVkUwU21kcFdsSkpha2Q2YjNWck1sSmxkMk53VTJkSFNXZEtDaTgxTlRKWmVTOHpTMGQwZERsTFIwbzNLM0JvUmtKUE5FVkVPRE4wY2pKQmFXSlpiWGMyYUM5SWEySndVVU50TVVWWGNFaFViMWwzWW1WQlowVktlV1lLTkRGeWFqWk5WV0ZHZW5GVE9YUnFOMmgwUTBsaGJYUXdkMXBXYnl0NmRXcEZUMUYwWW5KQk1WWkRkVU53U2pneVRta3djMnN3Wldwc2RIUmpPWFV4VVFwcFpITXpLMFUxU3pOdU5UTlJjVWczUVVKaFZFSXZjalp6ZENzdmVteGFjV2d2VWpoNVdrbGtiV1JYT0VrMmEzQTJabmh0SzJSdmFFbEhOWFpTTkRnekNraHdla1ZZU2t4NWRsQllWVTV4ZVVKVVZFRjJNQzlLYjFZNFVHcFlWWGc1TWpCR1NsbHljVEo1YjJodFRXSkhNMUJQZWxCWVVFRXdjeTl6ZW5ndlVHa0tOemhvUTFsMWFrWjZVSEY1VVRkbUszbHBNV1ZsUTJWc2RqSkRSemxzWlVOTWIxbDZiMDlaZDNJdlkwTkJkMFZCUVdGT1EwMUZRWGRFWjFsRVZsSXdVQXBCVVVndlFrRlJSRUZuUzJ0TlFUaEhRVEZWWkVWM1JVSXZkMUZHVFVGTlFrRm1PSGRJVVZsRVZsSXdUMEpDV1VWR1NGUjJNR0ZRTWxWamEzSm5ia0p3Q21Fd2VsSXhhRXhVYm1adFJVMUJNRWREVTNGSFUwbGlNMFJSUlVKRGQxVkJRVFJKUTBGUlEzWlZMelJxWkhKMldGRlpOMGROTDFGVGFtUmxObVJXV1ZRS1pFSTNUMFp5WkRKU1pqRktibHBxZHpaRVowcElkR3AzWlRaS01ISk9jWFoyUkVZemQweEZXbEE1Vm1OcFpHWjRjR1prVkZkU1RFZDFaM2xvYm5wcVdncFZjWGhzWTFFclZVRTFkbEZaYjNsSGRUTnZkSFZ5TVRRM1VUWTRUVWxpVVdvNFJIRmlOR2xuZG1Vd09DOUJSRkpwTDNCSE9HSTJhelJ1YVdGQk5scHVDa3RuU201UlpUbDZSMW81YkZCQ1RYRlNja3RKYUdaRk5rd3dNakpGU1ZkR1FsUXZOMVJDVDA0NVRDOVBObmwxU0VRM1kzRnNVWHBFZWpKb1R5dGlaWElLUzJwR2N6RnJZVlZRU2sxU1lTczJkV05TYXpkWFRUZDBNekJNUW5GSGJrNUJUbkJ2TUVOWFVXUTVhWFVyT0c1MmREbG1iakJoTlRKSVEwbFFWWFJFYmdwcFpXdEZTRFkyWkRKdFNqUlVWMEY2UVVSTU4xa3ljakkyVUhkdlpsZHpMM0ZaYmtOQlNrRndhV1o0T0hKTk1rdEtPVzFaUjAxaVQyNUNSRXgwY0cxa0NtazFNVnB3ZGpsV01IQmphSEkwTWtGQlJGTkpTMGxtT1RKSWVFaHpTR3hRTWxjMldEWXZZMlpFWlU0MlZtOUhWemR4YjNSNVpuUjRjVWRQTkVveUsyNEtRVWR2Ylhnd1RtOXVXWEJ2ZG1KdmNVbDBVakJHYmtWRmQxWkZPVEZxTkRGYWVYaEphWEZGVTFsMU4ySmtkRFF2YWpGU1RXSkNjMGhZTVRkMldITldkd3BxV2pWV1lUTjRWRWhSV0daM2FqZzBTRUYyVjJKT1pHWkxkWGxIUzFacE4ybG5ZVmxhZUdnek1GRmhjR1IzUW0wdlpUWmtabXRPVDIxelkwNTJlRUYzQ2tsS1ZGZEVaV1ZhUkZGNGEyRnRVMjFsTmtZMlF6TnFZVUkxYVN0bVQxTnhWSGc1UWpSa1ZWRlFZM2hCYmtaR1Eza3lTVTVvVjIxVFoxTjJaR1JVVGs0S1JIcHBOWEphVGtFMVNGVjFRbW92ZWtWbllsbHRWWHA2YmxvcllreDBPRXMxZDNCclVFZFlTM0ZzYzNFMVNEZG5lbk41VmtsVVlteDVNWGhTVXpaMWVncHpTR0ZwTTJ4UFRtcE5Ra3hqT0RkVVFYYzlQUW90TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBzZXJ2ZXI6IGh0dHBzOi8vY2xpLXRlc3QtYS1ha2tlc2hhci0xYmZiYjUtODY0YzhhOTAuaGNwLndlc3RldXJvcGUuYXptazhzLmlvOjQ0MwogIG5hbWU6IGNsaS10ZXN0LWFrcy0zM3puYWFsdmZ3dApjb250ZXh0czoKLSBjb250ZXh0OgogICAgY2x1c3RlcjogY2xpLXRlc3QtYWtzLTMzem5hYWx2Znd0CiAgICB1c2VyOiBjbHVzdGVyVXNlcl9ha2tlc2hhcl9jbGktdGVzdC1ha3MtMzN6bmFhbHZmd3QKICBuYW1lOiBjbGktdGVzdC1ha3MtMzN6bmFhbHZmd3QKY3VycmVudC1jb250ZXh0OiBjbGktdGVzdC1ha3MtMzN6bmFhbHZmd3QKa2luZDogQ29uZmlnCnByZWZlcmVuY2VzOiB7fQp1c2VyczoKLSBuYW1lOiBjbHVzdGVyVXNlcl9ha2tlc2hhcl9jbGktdGVzdC1ha3MtMzN6bmFhbHZmd3QKICB1c2VyOgogICAgY2xpZW50LWNlcnRpZmljYXRlLWRhdGE6IExTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVVpJYWtORFFYZGhaMEYzU1VKQlowbFNRVXROV1hCU09ITlVka3BIY3pjNVlYUjFUa3d2WmtGM1JGRlpTa3R2V2tsb2RtTk9RVkZGVEVKUlFYY0tSRlJGVEUxQmEwZEJNVlZGUVhoTlExa3lSWGRJYUdOT1RXcEZkMDlFUVhoTlZFa3hUVVJSTUZkb1kwNU5hazEzVDBSQmVFMVVUWGROUkZFd1YycEJkd3BOVW1OM1JsRlpSRlpSVVV0RmR6VjZaVmhPTUZwWE1EWmlWMFo2WkVkV2VXTjZSVlpOUWsxSFFURlZSVUY0VFUxaVYwWjZaRWRXZVZreWVIQmFWelV3Q2sxSlNVTkpha0ZPUW1kcmNXaHJhVWM1ZHpCQ1FWRkZSa0ZCVDBOQlp6aEJUVWxKUTBOblMwTkJaMFZCY1RaU05XUnVjREJyVDBWaE1XNDFlVk4xVFVNS1QwUjFNbWxQV0M5d1VESnJOM1Y0UWpWeVlqZFBObkpFVWtaTFRYRXhiVVJ5ZGpZNWNrSjZZbHBCYTJsdldsWjJkWFoxU21Wd09GWnFXRFY0UkhrNVdncDFSR1paTVRSQ2VWZERWRUl6UVZWUk1YbFVlR1JCVTJaS2QwMHdNMkZwTDA5WVluVnRSbHBxWjFBNFVtVTFla3hTT0hnclptRjVOR3hJVkNzMmJXcGhDazE0UVZKT01qSlJNamxFTkZsS1ZWRXpXVFZ1TkhaQmRXVnVjbXhrU3paSGJrVkhZMkUwTDJSMFptSk1UbFJuY2xJek1GTkVVMFJqVDJKMVdFZFZjelFLTTNGS2FHRlRNRWMwU1Zack9HVXdhWEo0YkZsNlVtTlpVaXRUVUhaSlNtbHBNWEZ2T1Zac1dUZEVaMlJ4UVRoYWVTOUJhbEV3YjJSV1NtVnBiRmxGUkFwWlRuQlZTbVJKV0cxM2FUaElUSGMxYVhOUEx6RTVlV1pDVkRSM2NHODRRakJaUXpGWVIwTlhabVEwTkRkMmEyUlNWVEV6UTBGb1UzSkdhVFZvSzI1dENtcGtUMjE2WnpsemIySmhaMnhIUkdKV2EyNUVSRkFyUm05S1NGWmtUekozYkRKdE5XbHRabEJpZW1WamN6TlVaVUYzV0RSUllWQTBXV3M0YTBRMk1XMEtXR2RUWkM4MEsyOUdTalJVZFVaU1ZHaE1WWGxEWjI5emFHWkpkelJsY2tRdlJsQTBNM2N2TlVSWVJFZFRkWEo2S3pCNE1uaFRWbTlUYkRSVU5UZ3lOQXB2U0dOaVR6aE5UVVprV0VOamRGWmtTemxZVG01d1QySjJSV2MyU1c0d2RIWlJSRkJ4VFd4QlJEbEZlWGR0U1hSMFYzZHdVbXRvYUc4NFRGcERlSEJxQ25Wa1JEQkpPRWR6Y3poTVQwbEdLemxpYlM5VFQzTnRNbkpOUkU5WlQxTjJNbEY2ZUVsSk5qTlZOVVJhZVUxVmIyaDNNVk5YYjJveGJsZ3hNa3MzTVVNS1FUbERia3RvT0UwMVJqSkVTbXBCUkZkTlQzbHhiek52UkVwUWJEWm9ZekJGTUc5S2REWXhWVVppUTNkNVNYRmFUMlp5V0hWcFVGWTFWRzFWTmxGVldRcDVaV2QyYm10U1MxZG5kM1ZRV1dnNVowbGpXWFp3UlVOQmQwVkJRV0ZPVjAxR1VYZEVaMWxFVmxJd1VFRlJTQzlDUVZGRVFXZFhaMDFDVFVkQk1WVmtDa3BSVVUxTlFXOUhRME56UjBGUlZVWkNkMDFEVFVGM1IwRXhWV1JGZDBWQ0wzZFJRMDFCUVhkSWQxbEVWbEl3YWtKQ1ozZEdiMEZWWkU4dlVtOHZXbElLZVZOMVEyTkhiSEpVVGtoWFJYUlBaQ3RaVVhkRVVWbEtTMjlhU1doMlkwNUJVVVZNUWxGQlJHZG5TVUpCUjJGdE0xbENTeTl1ZWtWQ09FaFlWV1JRV2dwTWJFVTRjVmRLVUdvM0wyOXNWMFExZGtaVGRXSjVUbkZzYzNWa1pEbG5WbUZCYlc0eUx5czRNR3htVVUxVFlUaFpSUzlzTm5OYVNEZFVPR3RVV0hRMENrVTVhV2t4TkRkWlRVbFpRU3RKTkdndlVHaEZiRWxTY0ZkVWJqQjZaa2R1VkhFeWJVVkJhek5LUlZwT2FHWkZTV2RLYkc5UFpFRnBjSHBSWTJKdE1FMEthbkpDVDFWU1VuUTFUVGRYYVhGUVlTOUpMMk5OSzFkc1NXdzJTMDlWTmpaTmRTOUVWR2xQYURnMWJrRmlMMjV1VlVsS1YxcHhUbEpwVm14eGIxQkphUXBPTmtablMydFhOVFUxVERObmRXNHdSRkowT1dSdVZUTkxhMVpYTTJkRmVYZEZXR2RITVZsNWRYRnZZek54UXpFdlVHUnJTRlZVZW1KbVVFTnVUVFpQQ2pSSlRDdDVTVk5oS3pndlpYb3ZheTlhWkhoRVFrdzNZalpJYzAxbE9FMWhNQ3Q2YnpSeFoyRmFiVkU1WTI0MVMySXhaemxvVFVaSk1HVldUbTU2V2prS09FTkxZMjUyV0dnemFXTk9TMjVXTWtkd1JtVlBTRzQwYlhZM0wzWjBaVlZSZG5kblYzRmxjVkIxZGpSTFVVdDZaVkEyTmpRMFNreEhiRU5DZEZSVll3cDJiSHBKTUZjeVVuUjVPVFZ1V0ZKSVluRTJkbVZtWVZwbFpVZDJhMUJUY0hVMldqRkhOVVZUU1UxQ1YydFNXazFEYTFsTE5XbFdiakpTVm14VWJWVkZDa1l5TkZBM1YzWmxNMlJPTVRSTGN6WkRPVVlyVTNkdFVIQlZUVzlITTJaUVFrNDRkMlJ0Vm1wYWFrNVpja2Q0VEhGck9YUlBLemh6UTNKWWJubFdVeThLUm5oT1FqQTBNMUZtZGtaeVNGSXlUMGRtZW05elpWRmFRbHBUZDFveU5teERXV2hWZEZFNVN6VkdXRWRpYnpGVlVXSmtXRFFyTjNGRWNsRjZObEF3V0FvcldrcFZjVEJyVUM5a05FMHhZV1UzV0dnMWVGaG1ZbFpWVEVReGNUaFRkREpuTDJreWRVeDZXV05NY2xrdmVWbFpWVGRhUjJkMmJsaHRNREp4T1c1VUNsb3hjbXBYYTJab1Z5c3JhVlJLVlZoa1dteG1jRVkwWVFvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PQogICAgY2xpZW50LWtleS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJTVTBFZ1VGSkpWa0ZVUlNCTFJWa3RMUzB0TFFwTlNVbEtTMUZKUWtGQlMwTkJaMFZCY1RaU05XUnVjREJyVDBWaE1XNDFlVk4xVFVOUFJIVXlhVTlZTDNCUU1tczNkWGhDTlhKaU4wODJja1JTUmt0TkNuRXhiVVJ5ZGpZNWNrSjZZbHBCYTJsdldsWjJkWFoxU21Wd09GWnFXRFY0UkhrNVduVkVabGt4TkVKNVYwTlVRak5CVlZFeGVWUjRaRUZUWmtwM1RUQUtNMkZwTDA5WVluVnRSbHBxWjFBNFVtVTFla3hTT0hnclptRjVOR3hJVkNzMmJXcGhUWGhCVWs0eU1sRXlPVVEwV1VwVlVUTlpOVzQwZGtGMVpXNXliQXBrU3paSGJrVkhZMkUwTDJSMFptSk1UbFJuY2xJek1GTkVVMFJqVDJKMVdFZFZjelF6Y1Vwb1lWTXdSelJKVm1zNFpUQnBjbmhzV1hwU1kxbFNLMU5RQ25aSlNtbHBNWEZ2T1Zac1dUZEVaMlJ4UVRoYWVTOUJhbEV3YjJSV1NtVnBiRmxGUkZsT2NGVktaRWxZYlhkcE9FaE1kelZwYzA4dk1UbDVaa0pVTkhjS2NHODRRakJaUXpGWVIwTlhabVEwTkRkMmEyUlNWVEV6UTBGb1UzSkdhVFZvSzI1dGFtUlBiWHBuT1hOdlltRm5iRWRFWWxacmJrUkVVQ3RHYjBwSVZncGtUekozYkRKdE5XbHRabEJpZW1WamN6TlVaVUYzV0RSUllWQTBXV3M0YTBRMk1XMVlaMU5rTHpRcmIwWktORlIxUmxKVWFFeFZlVU5uYjNOb1prbDNDalJsY2tRdlJsQTBNM2N2TlVSWVJFZFRkWEo2S3pCNE1uaFRWbTlUYkRSVU5UZ3lORzlJWTJKUE9FMU5SbVJZUTJOMFZtUkxPVmhPYm5CUFluWkZaellLU1c0d2RIWlJSRkJ4VFd4QlJEbEZlWGR0U1hSMFYzZHdVbXRvYUc4NFRGcERlSEJxZFdSRU1FazRSM056T0V4UFNVWXJPV0p0TDFOUGMyMHljazFFVHdwWlQxTjJNbEY2ZUVsSk5qTlZOVVJhZVUxVmIyaDNNVk5YYjJveGJsZ3hNa3MzTVVOQk9VTnVTMmc0VFRWR01rUktha0ZFVjAxUGVYRnZNMjlFU2xCc0NqWm9ZekJGTUc5S2REWXhWVVppUTNkNVNYRmFUMlp5V0hWcFVGWTFWRzFWTmxGVldYbGxaM1p1YTFKTFYyZDNkVkJaYURsblNXTlpkbkJGUTBGM1JVRUtRVkZMUTBGblJVRnhWVnBtUWpaeFF6bFVUV0p1WW1jNGFsbENUaXQ0YkdkNmNXaE9jeTlFTWxSVE9IaFhlRVJSZFhGeFVsRjJkRXRuWkRaYVJVOWtid3BPWVhGTU56VTVWM2xTWVhkb2VUVXhRMnB4UlV4bVVYRkhhbWwyWldjclVubG5Oa05PYXpKb05YQlJWVnBMYlhCbGNYSnZUSEpvY0RGalZVeFBaV2REQ2t4TWFtVkVlVlFyYmk5TmJGRTFlalJxYjJKa2VtOVBTSFEzVWt0d1VuUlBZakpUWkM5VWRXUkRUblJoVFRkaGVUSTRkbFpsY2s1cVVXVjVlRVZ5T1dVS1VGaEpNM3BNU1dzdlJYQXhNMFkwVEdoSGEwazFLMDFMYUVWYU9GRnZlbEZHYzB4NVUyeEZhMGRpWlhSbmFGRXdWVXRrWWt0bFVFOXZZa2hSTnk5QmN3cFBlazkyYWprNVZESkNPVEJoU0RGbGRWbHJTbGhvYW1odWFVbE1TeXRUUjBsdWNVNUVlbVpTUmxkSVNVOW5UVTVYZUhwWmN6TnVLM3AyVTNkaVYxcExDamxzZWtoaWEwUlFNREZhV2s5TVZFdEdSMFJ2TnpsSVkzWTFOamcwVkc5SFZXSk5VbkEyZWt0YVIzQk5kR29yTjIwd1ltVXJVVXBsTmtSbGQzbzFVa0VLWkZJdmMzUlpWbkZCUzBVeWFrNVRZVFUxUmxCcVZUbHBVMU5UYUhadGNuTlNPVkZEWkhaWWNuUnZiRlJxWkc1Q1ZuaFdVMVZFT1RRM1MzZFllSFJVWkFwM2JsTXhXalZ6ZDI5M1NrUlFRWFJ2Y25oUGJFSTRNMVF4VVVVMlRHMVRUMlpPTm00NUwzbHBUbU01YmtsYWVtaG5kMFZoVEZSd2FWZEZWVkpzYTFCeENuUXpRVVJJUTJKNU4ySmpTbGRGWTFCTWRTdFFjVUV6Um1Jd1pUZ3JRM0JwY2xWQ1kxbEljMVZxYVVJd1YwMVJNVmxxVkhvM2VUVlFlV2dyVDNsTlFYRUtVazVVVGxWS05WRnhVMnRYUm5Gak0zWnlWRkpoZDJWV1YwaE1aRFpIVDJneU5VMUdaRVJxY3pFd2JuTTFURXRtU2tkeVVHOHhkME5uVm1JM01sbzFNQXBJVlRCVmFIUklaVzE2VTNjeFdXbzNVM2x6Vld0RVpHVkZRM0pQUWxkT04xVTBWeThyTmtwU0x6UkhiM1ZGVFdOTGJrVkRaMmRGUWtGTlRqQjBhMnhJQ21veE5sUmFTM0ZGUmtsTFluTm5kRTB3VUVGSlRHWm5NVnBZUjNOSFIwOTRRbFZJY21Wek5GRkNWVXBWYzBGd2RESlRZMHR5T1U5R2RFZHhhRkl6ZDAwS1NGb3ZRbE16TjFSeFRYcEplblEyTHpGT1FVcFhORVp5Ylc1RldVaHFaVkpSUmpobllsTklOM1IzZEROUWQxY3ZZbVJCU1hSMWFtZFpiVVpZYVVsd2RRcERWRVozVW1GNlJVNDJTWFZXZG5KSmVsUnRLMFpUYVZGcVYweE1WVzVaVmtkQmEwWjJlR3hIWkZoemEwaENRVVJ0WWpkRGMzUlZkV294WlRKV2VDdHJDbUkyVFZKYVEzVTRZVnBMYlRCMmJIZERTM1ZtTjBneVRqTkdlVUkyV21sQk1FUnRVbkoyZG5sVVpUSXZNVVFyTkhJMFNtUjRXSEZPVUc1bWFHaEZjMFlLTXpOSGJraHVhRzF0TTFKTVltaFFSV0ZHWVVndmVuUm9hbEE1V1RNMGRHcHRjMjk1YWs1TVdFNUZkMjR5WTB3NWNDc3pWbGt2VFhKWU9XOXZiMUEyVlFwbVFtOWhUSGR5VVdWMGNFZHdURlZEWjJkRlFrRlBSRkJhZFRjMmQxWllZMXBIVWpSV0t5OW1TVU53WjJ4bk1XRjJSbVozWkd4amJ6UnRNQzlhSzA1RENuSnlURGQ0VkV3eFpqSnplRGhCVkNzNVUxTlJUamgyYTBSRk1YQnJSREU1YTFrNFFVZEJPVWhKZUVoQmRtZHVhbmQ2TjNCUlVHdHFjalUwY21ocFRGb0tVeTh2Vm1wSWQycGFla2s1VTNGMVdqQkRUaTlFVG5CbFZIbGxRVEV2Y2pKdFN6VkJaRkZqUmpGdVozSnJiVWxKVEdaU1IyZHZkMGszVTJnMk1rWTVWQXBHWlhGdmQycE5WWFZTY1dab01tWXdTRzQwT0VWbGVFcDRSRlpJUW1GVWExbGthRVU1TVVSVVRtczVVMjh3VVU0d1pIQnhkV1pWV2xwclVDOTJjbmR1Q205emRTczJXV2xIVmtacFJYUkZObTk1U1ZWWGExRjZSRk5yTlZKWFpEaG9SVUZGVkhOVlduWjRTV2RaTUdWWVJrVldjMmRaVlM5NWNEUk5LelJ2S3lzS01GaFRhazlrVUU0clYxTXhTV2x6YUV4M1pWRnlUSGs0YVV0Tk5VNTBOWGRLV0RoeVJERlZUMFlyTUVOblowVkNRVXhvU0V0TWIwMVJkWEppVFc1VWJBb3hSMU5VYjBwcGR6QjFhMHd2VkU1blVFbFhaM2xPYm5SQk1WUXdWRVJPVG5aWVpXUlhkVUp4VlhWMFVsVjRZWFJ1TnpGTk1EVlljalJzTlVadmQxVjJDbFExTTB3d1pXTklia0ZEVFZsbU5ubFZZMnhDUVZCU1NTdFNWRE5CU1RKcGQybERTVlJDTkVOTWRXMU9NMk16VVVOR1JsbGpkalUwTkdsbUwyWXlSakVLUjJwTVNsWXJOVmxPWXpJd1NHdFVRbXBPZGxKalMzbDFSa3AzYkVVNVoycHhkek4yY2twdFdXMHpURlZLUlVkRlFsWmxaMHhoU2tOeFdrcHZRMnBoUndwRVJUbGtRVGx3ZWs4eWJEaG1WRFpsTm13d05XbDFSR2w1WlRoT1NVcHhaMEk0VFZwTmJXSnNia2QyWjA1NGFteGFSR3R2YjFVNFQyVlhNbmhNTjFFMkNtOVhVbE16WWxNM1dEbG1PVzV5UlVGMGVYWnJVV1JqYzJ0TWMwVlVLM1JXVWxKU2MwZG5ObE5yY1hCVmJqQnBZalF5U2xCSVowMUpVV0l4YlZwSFdHY0tlVFJPVTFOWFZVTm5aMFZCVjBFeFJVUjBVazlTTVdZd1VteHVVV0kxV21kSVpHdEpla3RCSzFwME9EZExjbHBNZDFkb01WRXhSVW8xWm1GM04xWXlNQXByTkV4VGRFNUpOM0ZDSzBscGVWb3JTSGN2Tm5VcmNtcDVWRkJNVDB0cGRrNXlVR05sZW10dVluZDFhazVFU0dwQ2FuVmlOVk5vYUVkUmNFZGFVbFJyQ25oWmRUSktTRWw0VlUxWWFHWmxTVEJrU1N0R2FVeHNkbGxqYWtSVVdWaGxNQ3REVmtSRGNWSXZWSGhyZHpNMU0ycFZVbGxZVkZoSmRuTnNjMnAwT1U4S1FsQjRORFUyUmpWR1FUVndTWEpvWkhwc1VrMUNTMHRxU2tSalZ5dDVVbEJCUmtOdmRTczBRbmhPTDB0cFFrcDZkVXQ1UW5jeVduVTBRV2xrY0dGcFpncG1ja0Y2WjNnclpYTnRiamxXUW1Sc2EycHNVWHA0UlM5SFNIcHFSVmRwVkdaSk4ydElNaTlLWkZoNlFWRk1WVlpKVmxoUVNGZG5jVEU1YkdGMUwyWlFDamszTjNWaVEwRnhUVWhrWkVGUGRVUlNVazFUZURWeU4xSk5lbFI1TkdWcGJsRkxRMEZSUVVsSlptcDZZak56ZDBGa1QwWmxiVVJTTWxoWFduUjVNMVFLTUZWTVN5czRjMGxhWlUxbmEwVnRTQ3ROVWtSS1ZXSmlRWFpPYW0wNE1WcDFWa0l5Tm1OeWJuUlRVMnhpTDNOVVZWazFjWEJQUmt0VGVVMTBielpxTlFwdVdqWkNXRk01V0ZaclNUUmpaMVU0Vm1Gell5ODJSRmMwV2tKelZIUlNaRWRpYUhGUGVHSXhaVlExYUVVMFEzbEViUzk2UkVoUlVERXpSSGRJVTNKWkNsRndaRUZtTDNaa1JHaE1hR2xCYjFWR04yZEVaaTlPUVROek5reEljVEUyTjJwUU1UUlJSbUkwWkVoSlFtSnFkRTFMZVRaSVVEQkRXQzlSUjI4emJHTUtNM0JoVWtjd1Z5dDRVa2d3WW1saWIwTnJabGs0TlU1S1pXbGhZbUZ0Y0VORVJVNU5PV2dyU2s1b2FqbHRiSGhIWTFKNFZtTjRXREZxVm5Wc2VVWmpjQXB6VEVFMlZVVktXRXBKWkRGWE4wZE9TRTFzVEhwNWFrcHFSVzloYjA1bGFXaEJhVVptUTFkUGNWaEhWblE0UmpsSVNIZHhTbWRsV25Gc2IzWUtMUzB0TFMxRlRrUWdVbE5CSUZCU1NWWkJWRVVnUzBWWkxTMHRMUzBLCiAgICB0b2tlbjogMzRhY2QxYjU4NTQxOWIwMjU0OTI0YTRkNmNlZGRhMWNjMThjM2Y4ZDViYzUxNmMwYTc4OGVjOWMxYjRhMTA5ZTJjZTBjNGE4ODcyNGJjYTgwMTQyODdjOWM1ZGI2YzI2ZTkxNWFhMDZkYWM3YjFjY2RiMDNlOGRjNjA3YTIyN2IK\"\n + \ }\n ]\n }" headers: cache-control: - no-cache content-length: - - '126' + - '13140' content-type: - application/json date: - - Wed, 29 Apr 2020 10:49:01 GMT + - Sun, 01 Aug 2021 13:03:38 GMT expires: - '-1' pragma: @@ -767,6 +546,8 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: code: 200 message: OK @@ -775,46 +556,72 @@ interactions: headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - -g -n -s -l -c --generate-ssh-keys + Content-Type: + - application/json User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - OpenAPI-Generator/11.0.0/python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/apis/networking.k8s.io/v1/ response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\"\n }" + string: '{"kind":"APIResourceList","apiVersion":"v1","groupVersion":"networking.k8s.io/v1","resources":[{"name":"ingressclasses","singularName":"","namespaced":false,"kind":"IngressClass","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"storageVersionHash":"6upRfBq0FOI="},{"name":"ingresses","singularName":"","namespaced":true,"kind":"Ingress","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ing"],"storageVersionHash":"ZOAfGflaKd0="},{"name":"ingresses/status","singularName":"","namespaced":true,"kind":"Ingress","verbs":["get","patch","update"]},{"name":"networkpolicies","singularName":"","namespaced":true,"kind":"NetworkPolicy","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["netpol"],"storageVersionHash":"YpfwF18m1G8="}]} + + ' headers: + audit-id: + - d59febd9-c766-41e7-815b-795e7f8937be cache-control: - - no-cache + - no-cache, private content-length: - - '126' + - '864' content-type: - application/json date: - - Wed, 29 Apr 2020 10:49:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains + - Sun, 01 Aug 2021 13:03:40 GMT + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAPI-Generator/11.0.0/python + method: GET + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/nodes + response: + body: + string: '{"kind":"NodeList","apiVersion":"v1","metadata":{"resourceVersion":"750"},"items":[{"metadata":{"name":"aks-nodepool1-41590460-vmss000000","uid":"a09e1e08-74ac-4441-abc4-34289ba2630a","resourceVersion":"718","creationTimestamp":"2021-08-01T13:03:01Z","labels":{"agentpool":"nodepool1","beta.kubernetes.io/arch":"amd64","beta.kubernetes.io/instance-type":"Standard_B2s","beta.kubernetes.io/os":"linux","failure-domain.beta.kubernetes.io/region":"westeurope","failure-domain.beta.kubernetes.io/zone":"0","kubernetes.azure.com/cluster":"MC_akkeshar_cli-test-aks-000001_westeurope","kubernetes.azure.com/mode":"system","kubernetes.azure.com/node-image-version":"AKSUbuntu-1804gen2containerd-2021.07.10","kubernetes.azure.com/os-sku":"Ubuntu","kubernetes.azure.com/role":"agent","kubernetes.io/arch":"amd64","kubernetes.io/hostname":"aks-nodepool1-41590460-vmss000000","kubernetes.io/os":"linux","kubernetes.io/role":"agent","node-role.kubernetes.io/agent":"","node.kubernetes.io/instance-type":"Standard_B2s","storageprofile":"managed","storagetier":"Premium_LRS","topology.kubernetes.io/region":"westeurope","topology.kubernetes.io/zone":"0"},"annotations":{"node.alpha.kubernetes.io/ttl":"0","volumes.kubernetes.io/controller-managed-attach-detach":"true"},"managedFields":[{"manager":"kubelet","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:03:13Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:volumes.kubernetes.io/controller-managed-attach-detach":{}},"f:labels":{".":{},"f:agentpool":{},"f:beta.kubernetes.io/arch":{},"f:beta.kubernetes.io/instance-type":{},"f:beta.kubernetes.io/os":{},"f:failure-domain.beta.kubernetes.io/region":{},"f:failure-domain.beta.kubernetes.io/zone":{},"f:kubernetes.azure.com/cluster":{},"f:kubernetes.azure.com/mode":{},"f:kubernetes.azure.com/node-image-version":{},"f:kubernetes.azure.com/os-sku":{},"f:kubernetes.azure.com/role":{},"f:kubernetes.io/arch":{},"f:kubernetes.io/hostname":{},"f:kubernetes.io/os":{},"f:node.kubernetes.io/instance-type":{},"f:storageprofile":{},"f:storagetier":{},"f:topology.kubernetes.io/region":{},"f:topology.kubernetes.io/zone":{}}},"f:spec":{"f:providerID":{}},"f:status":{"f:addresses":{".":{},"k:{\"type\":\"Hostname\"}":{".":{},"f:address":{},"f:type":{}},"k:{\"type\":\"InternalIP\"}":{".":{},"f:address":{},"f:type":{}}},"f:allocatable":{".":{},"f:attachable-volumes-azure-disk":{},"f:cpu":{},"f:ephemeral-storage":{},"f:hugepages-1Gi":{},"f:hugepages-2Mi":{},"f:memory":{},"f:pods":{}},"f:capacity":{".":{},"f:attachable-volumes-azure-disk":{},"f:cpu":{},"f:ephemeral-storage":{},"f:hugepages-1Gi":{},"f:hugepages-2Mi":{},"f:memory":{},"f:pods":{}},"f:conditions":{".":{},"k:{\"type\":\"DiskPressure\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"MemoryPressure\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"PIDPressure\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"Ready\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}},"f:config":{},"f:daemonEndpoints":{"f:kubeletEndpoint":{"f:Port":{}}},"f:images":{},"f:nodeInfo":{"f:architecture":{},"f:bootID":{},"f:containerRuntimeVersion":{},"f:kernelVersion":{},"f:kubeProxyVersion":{},"f:kubeletVersion":{},"f:machineID":{},"f:operatingSystem":{},"f:osImage":{},"f:systemUUID":{}}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:03:20Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{"f:node.alpha.kubernetes.io/ttl":{}}},"f:spec":{"f:podCIDR":{},"f:podCIDRs":{".":{},"v:\"10.244.0.0/24\"":{}}},"f:status":{"f:conditions":{"k:{\"type\":\"NetworkUnavailable\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}}},{"manager":"kubectl-label","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:03:26Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{"f:kubernetes.io/role":{},"f:node-role.kubernetes.io/agent":{}}}}}]},"spec":{"podCIDR":"10.244.0.0/24","podCIDRs":["10.244.0.0/24"],"providerID":"azure:///subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mc_akkeshar_cli-test-aks-000001_westeurope/providers/Microsoft.Compute/virtualMachineScaleSets/aks-nodepool1-41590460-vmss/virtualMachines/0"},"status":{"capacity":{"attachable-volumes-azure-disk":"4","cpu":"2","ephemeral-storage":"129900528Ki","hugepages-1Gi":"0","hugepages-2Mi":"0","memory":"4030184Ki","pods":"110"},"allocatable":{"attachable-volumes-azure-disk":"4","cpu":"1900m","ephemeral-storage":"119716326407","hugepages-1Gi":"0","hugepages-2Mi":"0","memory":"2213608Ki","pods":"110"},"conditions":[{"type":"NetworkUnavailable","status":"False","lastHeartbeatTime":"2021-08-01T13:03:20Z","lastTransitionTime":"2021-08-01T13:03:20Z","reason":"RouteCreated","message":"RouteController + created a route"},{"type":"MemoryPressure","status":"False","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:01Z","reason":"KubeletHasSufficientMemory","message":"kubelet + has sufficient memory available"},{"type":"DiskPressure","status":"False","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:01Z","reason":"KubeletHasNoDiskPressure","message":"kubelet + has no disk pressure"},{"type":"PIDPressure","status":"False","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:01Z","reason":"KubeletHasSufficientPID","message":"kubelet + has sufficient PID available"},{"type":"Ready","status":"True","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:11Z","reason":"KubeletReady","message":"kubelet + is posting ready status. AppArmor enabled"}],"addresses":[{"type":"Hostname","address":"aks-nodepool1-41590460-vmss000000"},{"type":"InternalIP","address":"10.240.0.4"}],"daemonEndpoints":{"kubeletEndpoint":{"Port":10250}},"nodeInfo":{"machineID":"3ec81fd0e2164eb7ab266da6be3f219e","systemUUID":"703bc8f8-8e75-4a53-8d7c-55c60441e625","bootID":"b39a4b92-5c7e-40c0-984c-a4aaf7e5a325","kernelVersion":"5.4.0-1051-azure","osImage":"Ubuntu + 18.04.5 LTS","containerRuntimeVersion":"containerd://1.4.4+azure","kubeletVersion":"v1.20.7","kubeProxyVersion":"v1.20.7","operatingSystem":"linux","architecture":"amd64"},"images":[{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod06112021-1"],"sizeBytes":331689060},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod06112021"],"sizeBytes":330099815},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod05202021-hotfix"],"sizeBytes":271471426},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod05202021"],"sizeBytes":269703297},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod03262021"],"sizeBytes":264732875},{"names":["mcr.microsoft.com/oss/kubernetes/ingress/nginx-ingress-controller:0.19.0"],"sizeBytes":166352383},{"names":["mcr.microsoft.com/aks/hcp/hcp-tunnel-front:master.210623.2"],"sizeBytes":147750148},{"names":["mcr.microsoft.com/aks/hcp/hcp-tunnel-front:master.210524.1"],"sizeBytes":146446618},{"names":["mcr.microsoft.com/aks/hcp/hcp-tunnel-front:master.210427.1"],"sizeBytes":136242776},{"names":["mcr.microsoft.com/oss/calico/node:v3.8.9.5"],"sizeBytes":101794833},{"names":["mcr.microsoft.com/oss/kubernetes/ingress/nginx-ingress-controller:0.47.0"],"sizeBytes":101445696},{"names":["mcr.microsoft.com/oss/kubernetes/autoscaler/cluster-proportional-autoscaler:1.3.0_v0.0.5"],"sizeBytes":101194562},{"names":["mcr.microsoft.com/aks/hcp/tunnel-openvpn:master.210623.2"],"sizeBytes":96125176},{"names":["mcr.microsoft.com/aks/hcp/tunnel-openvpn:master.210524.1"],"sizeBytes":95879501},{"names":["mcr.microsoft.com/oss/kubernetes/exechealthz:1.2_v0.0.5"],"sizeBytes":94348102},{"names":["mcr.microsoft.com/oss/calico/node:v3.8.9.2"],"sizeBytes":93537927},{"names":["mcr.microsoft.com/aks/acc/sgx-attestation:2.0"],"sizeBytes":91841669},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.4.0"],"sizeBytes":91324193},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.2.0"],"sizeBytes":89103171},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.0.1-rc3"],"sizeBytes":86839805},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.2.0"],"sizeBytes":86488586},{"names":["mcr.microsoft.com/aks/hcp/tunnel-openvpn:master.210427.1"],"sizeBytes":86120048},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.3.0"],"sizeBytes":81252495},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.4.0"],"sizeBytes":79586703},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v1.4.0"],"sizeBytes":78795016},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v1.2.0"],"sizeBytes":76527179},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.1.8"],"sizeBytes":75025803},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.2.2_hotfix"],"sizeBytes":73533889},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.3.1"],"sizeBytes":72242894},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.2.8"],"sizeBytes":70622822},{"names":["mcr.microsoft.com/oss/nvidia/k8s-device-plugin:v0.9.0"],"sizeBytes":67291599},{"names":["mcr.microsoft.com/oss/kubernetes/dashboard:v2.0.1"],"sizeBytes":66415836},{"names":["mcr.microsoft.com/oss/kubernetes/dashboard:v2.0.0-rc7"],"sizeBytes":65965658},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.1-hotfix.20200923.1"],"sizeBytes":64999326},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.6-hotfix.20210310.1"],"sizeBytes":64915481},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.2.1"],"sizeBytes":64123775},{"names":["mcr.microsoft.com/oss/calico/cni:v3.8.9.3"],"sizeBytes":63581323},{"names":["mcr.microsoft.com/containernetworking/networkmonitor:v1.1.8"],"sizeBytes":63154716},{"names":["mcr.microsoft.com/oss/calico/cni:v3.8.9.2"],"sizeBytes":61626312},{"names":["mcr.microsoft.com/oss/calico/node:v3.18.1"],"sizeBytes":60500885},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.3"],"sizeBytes":59852415},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.1-hotfix.20200923"],"sizeBytes":59847980},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.6-hotfix.20210118"],"sizeBytes":59764779},{"names":["mcr.microsoft.com/oss/calico/node:v3.17.2"],"sizeBytes":58419768},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy@sha256:95ff1ad22cc745b41ed4479f0a97f47d11eaf6470fb47d06a08c5e50cf6abeea","mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.20.7-hotfix.20210603.2"],"sizeBytes":56450658},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.20.5-hotfix.20210603.2"],"sizeBytes":56448919},{"names":["mcr.microsoft.com/containernetworking/networkmonitor:v1.1.8_hotfix","mcr.microsoft.com/containernetworking/networkmonitor:v1.1.8post2"],"sizeBytes":56368756},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.11-hotfix.20210526.2"],"sizeBytes":56310724},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.9-hotfix.20210526.2"],"sizeBytes":56309165},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.21.1-hotfix.20210603.2"],"sizeBytes":55749900}],"config":{}}}]} + + ' + headers: + audit-id: + - ffa82a37-2dbd-4194-afff-2b14669aaf7b + cache-control: + - no-cache, private + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:03:41 GMT transfer-encoding: - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK @@ -823,46 +630,73 @@ interactions: headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - -g -n -s -l -c --generate-ssh-keys + Content-Type: + - application/json User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - OpenAPI-Generator/11.0.0/python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/version/ response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\"\n }" + string: "{\n \"major\": \"1\",\n \"minor\": \"20\",\n \"gitVersion\": \"v1.20.7\",\n + \ \"gitCommit\": \"e1d093448d0ed9b9b1a48f49833ff1ee64c05ba5\",\n \"gitTreeState\": + \"clean\",\n \"buildDate\": \"2021-06-03T00:20:57Z\",\n \"goVersion\": \"go1.15.12\",\n + \ \"compiler\": \"gc\",\n \"platform\": \"linux/amd64\"\n}" headers: + audit-id: + - bda36c47-93bc-4443-82db-dcad7a7d15fe cache-control: - - no-cache + - no-cache, private content-length: - - '126' + - '264' content-type: - application/json date: - - Wed, 29 Apr 2020 10:50:03 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains + - Sun, 01 Aug 2021 13:03:41 GMT + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAPI-Generator/11.0.0/python + method: GET + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/nodes + response: + body: + string: '{"kind":"NodeList","apiVersion":"v1","metadata":{"resourceVersion":"752"},"items":[{"metadata":{"name":"aks-nodepool1-41590460-vmss000000","uid":"a09e1e08-74ac-4441-abc4-34289ba2630a","resourceVersion":"718","creationTimestamp":"2021-08-01T13:03:01Z","labels":{"agentpool":"nodepool1","beta.kubernetes.io/arch":"amd64","beta.kubernetes.io/instance-type":"Standard_B2s","beta.kubernetes.io/os":"linux","failure-domain.beta.kubernetes.io/region":"westeurope","failure-domain.beta.kubernetes.io/zone":"0","kubernetes.azure.com/cluster":"MC_akkeshar_cli-test-aks-000001_westeurope","kubernetes.azure.com/mode":"system","kubernetes.azure.com/node-image-version":"AKSUbuntu-1804gen2containerd-2021.07.10","kubernetes.azure.com/os-sku":"Ubuntu","kubernetes.azure.com/role":"agent","kubernetes.io/arch":"amd64","kubernetes.io/hostname":"aks-nodepool1-41590460-vmss000000","kubernetes.io/os":"linux","kubernetes.io/role":"agent","node-role.kubernetes.io/agent":"","node.kubernetes.io/instance-type":"Standard_B2s","storageprofile":"managed","storagetier":"Premium_LRS","topology.kubernetes.io/region":"westeurope","topology.kubernetes.io/zone":"0"},"annotations":{"node.alpha.kubernetes.io/ttl":"0","volumes.kubernetes.io/controller-managed-attach-detach":"true"},"managedFields":[{"manager":"kubelet","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:03:13Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:volumes.kubernetes.io/controller-managed-attach-detach":{}},"f:labels":{".":{},"f:agentpool":{},"f:beta.kubernetes.io/arch":{},"f:beta.kubernetes.io/instance-type":{},"f:beta.kubernetes.io/os":{},"f:failure-domain.beta.kubernetes.io/region":{},"f:failure-domain.beta.kubernetes.io/zone":{},"f:kubernetes.azure.com/cluster":{},"f:kubernetes.azure.com/mode":{},"f:kubernetes.azure.com/node-image-version":{},"f:kubernetes.azure.com/os-sku":{},"f:kubernetes.azure.com/role":{},"f:kubernetes.io/arch":{},"f:kubernetes.io/hostname":{},"f:kubernetes.io/os":{},"f:node.kubernetes.io/instance-type":{},"f:storageprofile":{},"f:storagetier":{},"f:topology.kubernetes.io/region":{},"f:topology.kubernetes.io/zone":{}}},"f:spec":{"f:providerID":{}},"f:status":{"f:addresses":{".":{},"k:{\"type\":\"Hostname\"}":{".":{},"f:address":{},"f:type":{}},"k:{\"type\":\"InternalIP\"}":{".":{},"f:address":{},"f:type":{}}},"f:allocatable":{".":{},"f:attachable-volumes-azure-disk":{},"f:cpu":{},"f:ephemeral-storage":{},"f:hugepages-1Gi":{},"f:hugepages-2Mi":{},"f:memory":{},"f:pods":{}},"f:capacity":{".":{},"f:attachable-volumes-azure-disk":{},"f:cpu":{},"f:ephemeral-storage":{},"f:hugepages-1Gi":{},"f:hugepages-2Mi":{},"f:memory":{},"f:pods":{}},"f:conditions":{".":{},"k:{\"type\":\"DiskPressure\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"MemoryPressure\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"PIDPressure\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"Ready\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}},"f:config":{},"f:daemonEndpoints":{"f:kubeletEndpoint":{"f:Port":{}}},"f:images":{},"f:nodeInfo":{"f:architecture":{},"f:bootID":{},"f:containerRuntimeVersion":{},"f:kernelVersion":{},"f:kubeProxyVersion":{},"f:kubeletVersion":{},"f:machineID":{},"f:operatingSystem":{},"f:osImage":{},"f:systemUUID":{}}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:03:20Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{"f:node.alpha.kubernetes.io/ttl":{}}},"f:spec":{"f:podCIDR":{},"f:podCIDRs":{".":{},"v:\"10.244.0.0/24\"":{}}},"f:status":{"f:conditions":{"k:{\"type\":\"NetworkUnavailable\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}}},{"manager":"kubectl-label","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:03:26Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{"f:kubernetes.io/role":{},"f:node-role.kubernetes.io/agent":{}}}}}]},"spec":{"podCIDR":"10.244.0.0/24","podCIDRs":["10.244.0.0/24"],"providerID":"azure:///subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mc_akkeshar_cli-test-aks-000001_westeurope/providers/Microsoft.Compute/virtualMachineScaleSets/aks-nodepool1-41590460-vmss/virtualMachines/0"},"status":{"capacity":{"attachable-volumes-azure-disk":"4","cpu":"2","ephemeral-storage":"129900528Ki","hugepages-1Gi":"0","hugepages-2Mi":"0","memory":"4030184Ki","pods":"110"},"allocatable":{"attachable-volumes-azure-disk":"4","cpu":"1900m","ephemeral-storage":"119716326407","hugepages-1Gi":"0","hugepages-2Mi":"0","memory":"2213608Ki","pods":"110"},"conditions":[{"type":"NetworkUnavailable","status":"False","lastHeartbeatTime":"2021-08-01T13:03:20Z","lastTransitionTime":"2021-08-01T13:03:20Z","reason":"RouteCreated","message":"RouteController + created a route"},{"type":"MemoryPressure","status":"False","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:01Z","reason":"KubeletHasSufficientMemory","message":"kubelet + has sufficient memory available"},{"type":"DiskPressure","status":"False","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:01Z","reason":"KubeletHasNoDiskPressure","message":"kubelet + has no disk pressure"},{"type":"PIDPressure","status":"False","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:01Z","reason":"KubeletHasSufficientPID","message":"kubelet + has sufficient PID available"},{"type":"Ready","status":"True","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:11Z","reason":"KubeletReady","message":"kubelet + is posting ready status. AppArmor enabled"}],"addresses":[{"type":"Hostname","address":"aks-nodepool1-41590460-vmss000000"},{"type":"InternalIP","address":"10.240.0.4"}],"daemonEndpoints":{"kubeletEndpoint":{"Port":10250}},"nodeInfo":{"machineID":"3ec81fd0e2164eb7ab266da6be3f219e","systemUUID":"703bc8f8-8e75-4a53-8d7c-55c60441e625","bootID":"b39a4b92-5c7e-40c0-984c-a4aaf7e5a325","kernelVersion":"5.4.0-1051-azure","osImage":"Ubuntu + 18.04.5 LTS","containerRuntimeVersion":"containerd://1.4.4+azure","kubeletVersion":"v1.20.7","kubeProxyVersion":"v1.20.7","operatingSystem":"linux","architecture":"amd64"},"images":[{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod06112021-1"],"sizeBytes":331689060},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod06112021"],"sizeBytes":330099815},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod05202021-hotfix"],"sizeBytes":271471426},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod05202021"],"sizeBytes":269703297},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod03262021"],"sizeBytes":264732875},{"names":["mcr.microsoft.com/oss/kubernetes/ingress/nginx-ingress-controller:0.19.0"],"sizeBytes":166352383},{"names":["mcr.microsoft.com/aks/hcp/hcp-tunnel-front:master.210623.2"],"sizeBytes":147750148},{"names":["mcr.microsoft.com/aks/hcp/hcp-tunnel-front:master.210524.1"],"sizeBytes":146446618},{"names":["mcr.microsoft.com/aks/hcp/hcp-tunnel-front:master.210427.1"],"sizeBytes":136242776},{"names":["mcr.microsoft.com/oss/calico/node:v3.8.9.5"],"sizeBytes":101794833},{"names":["mcr.microsoft.com/oss/kubernetes/ingress/nginx-ingress-controller:0.47.0"],"sizeBytes":101445696},{"names":["mcr.microsoft.com/oss/kubernetes/autoscaler/cluster-proportional-autoscaler:1.3.0_v0.0.5"],"sizeBytes":101194562},{"names":["mcr.microsoft.com/aks/hcp/tunnel-openvpn:master.210623.2"],"sizeBytes":96125176},{"names":["mcr.microsoft.com/aks/hcp/tunnel-openvpn:master.210524.1"],"sizeBytes":95879501},{"names":["mcr.microsoft.com/oss/kubernetes/exechealthz:1.2_v0.0.5"],"sizeBytes":94348102},{"names":["mcr.microsoft.com/oss/calico/node:v3.8.9.2"],"sizeBytes":93537927},{"names":["mcr.microsoft.com/aks/acc/sgx-attestation:2.0"],"sizeBytes":91841669},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.4.0"],"sizeBytes":91324193},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.2.0"],"sizeBytes":89103171},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.0.1-rc3"],"sizeBytes":86839805},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.2.0"],"sizeBytes":86488586},{"names":["mcr.microsoft.com/aks/hcp/tunnel-openvpn:master.210427.1"],"sizeBytes":86120048},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.3.0"],"sizeBytes":81252495},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.4.0"],"sizeBytes":79586703},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v1.4.0"],"sizeBytes":78795016},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v1.2.0"],"sizeBytes":76527179},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.1.8"],"sizeBytes":75025803},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.2.2_hotfix"],"sizeBytes":73533889},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.3.1"],"sizeBytes":72242894},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.2.8"],"sizeBytes":70622822},{"names":["mcr.microsoft.com/oss/nvidia/k8s-device-plugin:v0.9.0"],"sizeBytes":67291599},{"names":["mcr.microsoft.com/oss/kubernetes/dashboard:v2.0.1"],"sizeBytes":66415836},{"names":["mcr.microsoft.com/oss/kubernetes/dashboard:v2.0.0-rc7"],"sizeBytes":65965658},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.1-hotfix.20200923.1"],"sizeBytes":64999326},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.6-hotfix.20210310.1"],"sizeBytes":64915481},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.2.1"],"sizeBytes":64123775},{"names":["mcr.microsoft.com/oss/calico/cni:v3.8.9.3"],"sizeBytes":63581323},{"names":["mcr.microsoft.com/containernetworking/networkmonitor:v1.1.8"],"sizeBytes":63154716},{"names":["mcr.microsoft.com/oss/calico/cni:v3.8.9.2"],"sizeBytes":61626312},{"names":["mcr.microsoft.com/oss/calico/node:v3.18.1"],"sizeBytes":60500885},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.3"],"sizeBytes":59852415},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.1-hotfix.20200923"],"sizeBytes":59847980},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.6-hotfix.20210118"],"sizeBytes":59764779},{"names":["mcr.microsoft.com/oss/calico/node:v3.17.2"],"sizeBytes":58419768},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy@sha256:95ff1ad22cc745b41ed4479f0a97f47d11eaf6470fb47d06a08c5e50cf6abeea","mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.20.7-hotfix.20210603.2"],"sizeBytes":56450658},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.20.5-hotfix.20210603.2"],"sizeBytes":56448919},{"names":["mcr.microsoft.com/containernetworking/networkmonitor:v1.1.8_hotfix","mcr.microsoft.com/containernetworking/networkmonitor:v1.1.8post2"],"sizeBytes":56368756},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.11-hotfix.20210526.2"],"sizeBytes":56310724},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.9-hotfix.20210526.2"],"sizeBytes":56309165},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.21.1-hotfix.20210603.2"],"sizeBytes":55749900}],"config":{}}}]} + + ' + headers: + audit-id: + - f2da5fb7-16d5-4364-8dc5-eca7bb395f9c + cache-control: + - no-cache, private + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:03:42 GMT transfer-encoding: - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK @@ -871,46 +705,38 @@ interactions: headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - -g -n -s -l -c --generate-ssh-keys + Content-Type: + - application/json User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - OpenAPI-Generator/11.0.0/python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/nodes response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\"\n }" + string: '{"kind":"NodeList","apiVersion":"v1","metadata":{"resourceVersion":"752"},"items":[{"metadata":{"name":"aks-nodepool1-41590460-vmss000000","uid":"a09e1e08-74ac-4441-abc4-34289ba2630a","resourceVersion":"718","creationTimestamp":"2021-08-01T13:03:01Z","labels":{"agentpool":"nodepool1","beta.kubernetes.io/arch":"amd64","beta.kubernetes.io/instance-type":"Standard_B2s","beta.kubernetes.io/os":"linux","failure-domain.beta.kubernetes.io/region":"westeurope","failure-domain.beta.kubernetes.io/zone":"0","kubernetes.azure.com/cluster":"MC_akkeshar_cli-test-aks-000001_westeurope","kubernetes.azure.com/mode":"system","kubernetes.azure.com/node-image-version":"AKSUbuntu-1804gen2containerd-2021.07.10","kubernetes.azure.com/os-sku":"Ubuntu","kubernetes.azure.com/role":"agent","kubernetes.io/arch":"amd64","kubernetes.io/hostname":"aks-nodepool1-41590460-vmss000000","kubernetes.io/os":"linux","kubernetes.io/role":"agent","node-role.kubernetes.io/agent":"","node.kubernetes.io/instance-type":"Standard_B2s","storageprofile":"managed","storagetier":"Premium_LRS","topology.kubernetes.io/region":"westeurope","topology.kubernetes.io/zone":"0"},"annotations":{"node.alpha.kubernetes.io/ttl":"0","volumes.kubernetes.io/controller-managed-attach-detach":"true"},"managedFields":[{"manager":"kubelet","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:03:13Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:volumes.kubernetes.io/controller-managed-attach-detach":{}},"f:labels":{".":{},"f:agentpool":{},"f:beta.kubernetes.io/arch":{},"f:beta.kubernetes.io/instance-type":{},"f:beta.kubernetes.io/os":{},"f:failure-domain.beta.kubernetes.io/region":{},"f:failure-domain.beta.kubernetes.io/zone":{},"f:kubernetes.azure.com/cluster":{},"f:kubernetes.azure.com/mode":{},"f:kubernetes.azure.com/node-image-version":{},"f:kubernetes.azure.com/os-sku":{},"f:kubernetes.azure.com/role":{},"f:kubernetes.io/arch":{},"f:kubernetes.io/hostname":{},"f:kubernetes.io/os":{},"f:node.kubernetes.io/instance-type":{},"f:storageprofile":{},"f:storagetier":{},"f:topology.kubernetes.io/region":{},"f:topology.kubernetes.io/zone":{}}},"f:spec":{"f:providerID":{}},"f:status":{"f:addresses":{".":{},"k:{\"type\":\"Hostname\"}":{".":{},"f:address":{},"f:type":{}},"k:{\"type\":\"InternalIP\"}":{".":{},"f:address":{},"f:type":{}}},"f:allocatable":{".":{},"f:attachable-volumes-azure-disk":{},"f:cpu":{},"f:ephemeral-storage":{},"f:hugepages-1Gi":{},"f:hugepages-2Mi":{},"f:memory":{},"f:pods":{}},"f:capacity":{".":{},"f:attachable-volumes-azure-disk":{},"f:cpu":{},"f:ephemeral-storage":{},"f:hugepages-1Gi":{},"f:hugepages-2Mi":{},"f:memory":{},"f:pods":{}},"f:conditions":{".":{},"k:{\"type\":\"DiskPressure\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"MemoryPressure\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"PIDPressure\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"Ready\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}},"f:config":{},"f:daemonEndpoints":{"f:kubeletEndpoint":{"f:Port":{}}},"f:images":{},"f:nodeInfo":{"f:architecture":{},"f:bootID":{},"f:containerRuntimeVersion":{},"f:kernelVersion":{},"f:kubeProxyVersion":{},"f:kubeletVersion":{},"f:machineID":{},"f:operatingSystem":{},"f:osImage":{},"f:systemUUID":{}}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:03:20Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{"f:node.alpha.kubernetes.io/ttl":{}}},"f:spec":{"f:podCIDR":{},"f:podCIDRs":{".":{},"v:\"10.244.0.0/24\"":{}}},"f:status":{"f:conditions":{"k:{\"type\":\"NetworkUnavailable\"}":{".":{},"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}}},{"manager":"kubectl-label","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:03:26Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{"f:kubernetes.io/role":{},"f:node-role.kubernetes.io/agent":{}}}}}]},"spec":{"podCIDR":"10.244.0.0/24","podCIDRs":["10.244.0.0/24"],"providerID":"azure:///subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mc_akkeshar_cli-test-aks-000001_westeurope/providers/Microsoft.Compute/virtualMachineScaleSets/aks-nodepool1-41590460-vmss/virtualMachines/0"},"status":{"capacity":{"attachable-volumes-azure-disk":"4","cpu":"2","ephemeral-storage":"129900528Ki","hugepages-1Gi":"0","hugepages-2Mi":"0","memory":"4030184Ki","pods":"110"},"allocatable":{"attachable-volumes-azure-disk":"4","cpu":"1900m","ephemeral-storage":"119716326407","hugepages-1Gi":"0","hugepages-2Mi":"0","memory":"2213608Ki","pods":"110"},"conditions":[{"type":"NetworkUnavailable","status":"False","lastHeartbeatTime":"2021-08-01T13:03:20Z","lastTransitionTime":"2021-08-01T13:03:20Z","reason":"RouteCreated","message":"RouteController + created a route"},{"type":"MemoryPressure","status":"False","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:01Z","reason":"KubeletHasSufficientMemory","message":"kubelet + has sufficient memory available"},{"type":"DiskPressure","status":"False","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:01Z","reason":"KubeletHasNoDiskPressure","message":"kubelet + has no disk pressure"},{"type":"PIDPressure","status":"False","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:01Z","reason":"KubeletHasSufficientPID","message":"kubelet + has sufficient PID available"},{"type":"Ready","status":"True","lastHeartbeatTime":"2021-08-01T13:03:11Z","lastTransitionTime":"2021-08-01T13:03:11Z","reason":"KubeletReady","message":"kubelet + is posting ready status. AppArmor enabled"}],"addresses":[{"type":"Hostname","address":"aks-nodepool1-41590460-vmss000000"},{"type":"InternalIP","address":"10.240.0.4"}],"daemonEndpoints":{"kubeletEndpoint":{"Port":10250}},"nodeInfo":{"machineID":"3ec81fd0e2164eb7ab266da6be3f219e","systemUUID":"703bc8f8-8e75-4a53-8d7c-55c60441e625","bootID":"b39a4b92-5c7e-40c0-984c-a4aaf7e5a325","kernelVersion":"5.4.0-1051-azure","osImage":"Ubuntu + 18.04.5 LTS","containerRuntimeVersion":"containerd://1.4.4+azure","kubeletVersion":"v1.20.7","kubeProxyVersion":"v1.20.7","operatingSystem":"linux","architecture":"amd64"},"images":[{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod06112021-1"],"sizeBytes":331689060},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod06112021"],"sizeBytes":330099815},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod05202021-hotfix"],"sizeBytes":271471426},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod05202021"],"sizeBytes":269703297},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod03262021"],"sizeBytes":264732875},{"names":["mcr.microsoft.com/oss/kubernetes/ingress/nginx-ingress-controller:0.19.0"],"sizeBytes":166352383},{"names":["mcr.microsoft.com/aks/hcp/hcp-tunnel-front:master.210623.2"],"sizeBytes":147750148},{"names":["mcr.microsoft.com/aks/hcp/hcp-tunnel-front:master.210524.1"],"sizeBytes":146446618},{"names":["mcr.microsoft.com/aks/hcp/hcp-tunnel-front:master.210427.1"],"sizeBytes":136242776},{"names":["mcr.microsoft.com/oss/calico/node:v3.8.9.5"],"sizeBytes":101794833},{"names":["mcr.microsoft.com/oss/kubernetes/ingress/nginx-ingress-controller:0.47.0"],"sizeBytes":101445696},{"names":["mcr.microsoft.com/oss/kubernetes/autoscaler/cluster-proportional-autoscaler:1.3.0_v0.0.5"],"sizeBytes":101194562},{"names":["mcr.microsoft.com/aks/hcp/tunnel-openvpn:master.210623.2"],"sizeBytes":96125176},{"names":["mcr.microsoft.com/aks/hcp/tunnel-openvpn:master.210524.1"],"sizeBytes":95879501},{"names":["mcr.microsoft.com/oss/kubernetes/exechealthz:1.2_v0.0.5"],"sizeBytes":94348102},{"names":["mcr.microsoft.com/oss/calico/node:v3.8.9.2"],"sizeBytes":93537927},{"names":["mcr.microsoft.com/aks/acc/sgx-attestation:2.0"],"sizeBytes":91841669},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.4.0"],"sizeBytes":91324193},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.2.0"],"sizeBytes":89103171},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.0.1-rc3"],"sizeBytes":86839805},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.2.0"],"sizeBytes":86488586},{"names":["mcr.microsoft.com/aks/hcp/tunnel-openvpn:master.210427.1"],"sizeBytes":86120048},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.3.0"],"sizeBytes":81252495},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.4.0"],"sizeBytes":79586703},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v1.4.0"],"sizeBytes":78795016},{"names":["mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v1.2.0"],"sizeBytes":76527179},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.1.8"],"sizeBytes":75025803},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.2.2_hotfix"],"sizeBytes":73533889},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.3.1"],"sizeBytes":72242894},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.2.8"],"sizeBytes":70622822},{"names":["mcr.microsoft.com/oss/nvidia/k8s-device-plugin:v0.9.0"],"sizeBytes":67291599},{"names":["mcr.microsoft.com/oss/kubernetes/dashboard:v2.0.1"],"sizeBytes":66415836},{"names":["mcr.microsoft.com/oss/kubernetes/dashboard:v2.0.0-rc7"],"sizeBytes":65965658},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.1-hotfix.20200923.1"],"sizeBytes":64999326},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.6-hotfix.20210310.1"],"sizeBytes":64915481},{"names":["mcr.microsoft.com/containernetworking/azure-npm:v1.2.1"],"sizeBytes":64123775},{"names":["mcr.microsoft.com/oss/calico/cni:v3.8.9.3"],"sizeBytes":63581323},{"names":["mcr.microsoft.com/containernetworking/networkmonitor:v1.1.8"],"sizeBytes":63154716},{"names":["mcr.microsoft.com/oss/calico/cni:v3.8.9.2"],"sizeBytes":61626312},{"names":["mcr.microsoft.com/oss/calico/node:v3.18.1"],"sizeBytes":60500885},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.3"],"sizeBytes":59852415},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.1-hotfix.20200923"],"sizeBytes":59847980},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.6-hotfix.20210118"],"sizeBytes":59764779},{"names":["mcr.microsoft.com/oss/calico/node:v3.17.2"],"sizeBytes":58419768},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy@sha256:95ff1ad22cc745b41ed4479f0a97f47d11eaf6470fb47d06a08c5e50cf6abeea","mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.20.7-hotfix.20210603.2"],"sizeBytes":56450658},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.20.5-hotfix.20210603.2"],"sizeBytes":56448919},{"names":["mcr.microsoft.com/containernetworking/networkmonitor:v1.1.8_hotfix","mcr.microsoft.com/containernetworking/networkmonitor:v1.1.8post2"],"sizeBytes":56368756},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.11-hotfix.20210526.2"],"sizeBytes":56310724},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.19.9-hotfix.20210526.2"],"sizeBytes":56309165},{"names":["mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.21.1-hotfix.20210603.2"],"sizeBytes":55749900}],"config":{}}}]} + + ' headers: + audit-id: + - 3c6bf1de-9fef-403a-93ff-01f7c9db0a62 cache-control: - - no-cache - content-length: - - '126' + - no-cache, private content-type: - application/json date: - - Wed, 29 Apr 2020 10:50:34 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains + - Sun, 01 Aug 2021 13:03:42 GMT transfer-encoding: - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK @@ -922,39 +748,42 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - aks create + - connectedk8s connect Connection: - keep-alive ParameterSetName: - - -g -n -s -l -c --generate-ssh-keys + - -g -n -l --tags --kube-config User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kubernetes?api-version=2020-10-01 response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\"\n }" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kubernetes","namespace":"Microsoft.Kubernetes","authorizations":[{"applicationId":"64b12d6e-6549-484c-8cc6-6281839ba394","roleDefinitionId":"1d1d44cf-68a1-4def-a2b6-cd7efc3515af"},{"applicationId":"359431ad-ece5-496b-8768-be4bbfd82f36","roleDefinitionId":"1b5c71b7-9814-4b40-b62a-23018af874d8"},{"applicationId":"0000dab9-8b21-4ba2-807f-1743968cef00","roleDefinitionId":"1b5c71b7-9814-4b40-b62a-23018af874d8"},{"applicationId":"8edd93e1-2103-40b4-bd70-6e34e586362d","roleDefinitionId":"eb67887a-31e8-4e4e-bf5b-14ff79351a6f"}],"resourceTypes":[{"resourceType":"connectedClusters","locations":["West + Europe","East US","West Central US","South Central US","Southeast Asia","UK + South","East US 2","West US 2","Australia East","North Europe","France Central","Central + US","West US","North Central US","Korea Central","East US 2 EUAP","Japan East","East + Asia"],"apiVersions":["2021-04-01-preview","2021-03-01","2020-01-01-preview"],"capabilities":"SystemAssignedResourceIdentity, + SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2021-04-01-preview","2021-03-01","2020-01-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East + US 2 EUAP","West Europe","East US","West Central US","South Central US","Southeast + Asia","UK South","East US 2","West US 2","Australia East","North Europe","France + Central","Central US","West US","North Central US","Korea Central","Japan + East","East Asia"],"apiVersions":["2021-04-01-preview","2021-03-01","2020-01-01-preview"],"capabilities":"None"},{"resourceType":"registeredSubscriptions","locations":[],"apiVersions":["2021-04-01-preview","2021-03-01","2020-01-01-preview"],"capabilities":"None"},{"resourceType":"Operations","locations":[],"apiVersions":["2021-04-01-preview","2021-03-01","2020-01-01-preview","2019-11-01-preview","2019-09-01-privatepreview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '126' + - '2055' content-type: - - application/json + - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:51:05 GMT + - Sun, 01 Aug 2021 13:03:46 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: @@ -970,47 +799,42 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - aks create + - connectedk8s connect Connection: - keep-alive ParameterSetName: - - -g -n -s -l -c --generate-ssh-keys + - -g -n -l --tags --kube-config User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - AZURECLI/2.26.1 azsdk-python-mgmt-hybridkubernetes/1.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/7cbaa1d1-7bf5-48e4-8761-fcc22686a64c?api-version=2017-08-31 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/cc-000002?api-version=2021-03-01 response: body: - string: "{\n \"name\": \"d1a1ba7c-f57b-e448-8761-fcc22686a64c\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2020-04-29T10:45:54.7696703Z\",\n \"endTime\": - \"2020-04-29T10:51:15.2596637Z\"\n }" + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Kubernetes/connectedClusters/cc-000002'' + under resource group ''akkeshar'' was not found. For more details please go + to https://aka.ms/ARMResourceNotFoundFix"}}' headers: cache-control: - no-cache content-length: - - '170' + - '231' content-type: - - application/json + - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:51:35 GMT + - Sun, 01 Aug 2021 13:03:48 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-failure-cause: + - gateway status: - code: 200 - message: OK + code: 404 + message: Not Found - request: body: null headers: @@ -1019,60 +843,33 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - aks create + - connectedk8s connect Connection: - keep-alive ParameterSetName: - - -g -n -s -l -c --generate-ssh-keys + - -g -n -l --tags --kube-config User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001?api-version=2019-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar?api-version=2020-10-01 response: body: - string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar-test2/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001\",\n - \ \"location\": \"westeurope\",\n \"name\": \"cli-test-aks-000001\",\n \"type\": - \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": - \"Succeeded\",\n \"kubernetesVersion\": \"1.15.10\",\n \"dnsPrefix\": - \"cli-test-a-akkeshar-test2-1bfbb5\",\n \"fqdn\": \"cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io\",\n - \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": - 1,\n \"vmSize\": \"Standard_B2s\",\n \"osDiskSizeGB\": 100,\n \"maxPods\": - 110,\n \"type\": \"VirtualMachineScaleSets\",\n \"provisioningState\": - \"Succeeded\",\n \"orchestratorVersion\": \"1.15.10\",\n \"osType\": - \"Linux\"\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n - \ \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDbin7SrkJJBI0wUyk1x5q+Gi+3En8WfOUFtplPhT9xNC1ZYmVWoKso9QZ6GedHX5dzq9OpwDytTkJoKzOOhORCJ1oVdOwi1d94qoxgO4HDvP9m99nNC3Q2+Nl6q8M6XcmgKzcFkt1fYZDVqbtohfoktJSBrOWkXob3ct4R/+LtHABJPZp2QwZTv6ZN+E+35fEKONbaI3UWaCnNUQ/UefIHcIqXJTKh0kLCHRLGUoqgkiRJxi+EcxRiw677IxQsnP1haGWtTA1sglWvMw8cuav77TBqtegE7C72qwB2WIvG1/uVLKt/CHvWcni9r2dnC2sgHkfx9F9xHJ17kbWPpdAh\"\n - \ }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\": - \"b1b0bd23-b490-4728-8202-54f2378dd0ab\"\n },\n \"nodeResourceGroup\": - \"MC_akkeshar-test2_cli-test-aks-000001_westeurope\",\n \"enableRBAC\": - true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n - \ \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n - \ \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": - 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_akkeshar-test2_cli-test-aks-000001_westeurope/providers/Microsoft.Network/publicIPAddresses/b5784f83-47d9-4743-aca3-2031f2ea0575\"\n - \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": - \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": - \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\"\n },\n \"maxAgentPools\": - 10\n }\n }" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar","name":"akkeshar","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"Created":"20210721"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2246' + - '243' content-type: - - application/json + - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:51:37 GMT + - Sun, 01 Aug 2021 13:03:48 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: @@ -1084,85 +881,96 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - aks get-credentials + - connectedk8s connect Connection: - keep-alive Content-Length: - '0' ParameterSetName: - - -g -n -f + - -g -n -l --tags --kube-config User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-containerservice/4.4.0 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US + - python/3.7.7 (Windows-10-10.0.19041-SP0) AZURECLI/2.26.1 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001/listClusterUserCredential?api-version=2019-10-01 + uri: https://eastus2euap.dp.kubernetesconfiguration.azure.com/azure-arc-k8sagents/GetLatestHelmPackagePath?api-version=2019-11-01-preview&releaseTrain=stable response: body: - string: "{\n \"kubeconfigs\": [\n {\n \"name\": \"clusterUser\",\n \"value\": - \"YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VWNWFrTkRRWEpMWjBGM1NVSkJaMGxTUVV0RmQzQlhZek5KVTBkVUwzUlVPRXR0YWtsbmJrVjNSRkZaU2t0dldrbG9kbU5PUVZGRlRFSlJRWGNLUkZSRlRFMUJhMGRCTVZWRlFYaE5RMWt5UlhkSlFtTk9UV3BCZDA1RVNUVk5WRUY2VG1wQk1sZG9aMUJOYWtFeFRVUkJNRTFxYTNoTlJGRXlUVVJhWVFwTlFUQjRRM3BCU2tKblRsWkNRVTFVUVcxT2FFMUpTVU5KYWtGT1FtZHJjV2hyYVVjNWR6QkNRVkZGUmtGQlQwTkJaemhCVFVsSlEwTm5TME5CWjBWQkNuZzJlVWxyU2xwbmNraFpaMEUyVjB0M1NtSXJkblIwU2sxek1rRXdVVnBrVjNKME1XcE1hV281TDBkUksxRkRPVGxVV2pCaVlVcHNaREpsTUdoUk5YQUtSbTlXVGtVNWJVZGFkVzkxYldOWlJVZEJjamxVUlM5MFEyeFJRbXBIUld4WGMzaFZUa1p1U1hjM1ZuQTNjakZIYUM5U2RYVlVRMnd2WVdOVVRsVXZjZ3B6ZVdkV1ZsZG9ZVkZJVEdaalUxVllNa3R2U21KNk5HNTBiRXRaU1RVd1RuZHNaMFZKY2xKUWMxUnphbTVTTlVwdVEycFlPWGxHWVhKWlRsRjBhMjlGQ214UE1GUlhOVzFyVTNOWVJFNUZWVFF6T0daNE56ZDNaVWRpU21GWk9UTk5URVl6WWpSdFJWaGxhamRRYjNkcE5TczJaVVpvZWsweE9UWndRWFJrVjAwS1kxRXdPV055ZDNOaGFWQndPR1ZtVkVsclpYcEJiakpHYTNCNFJFMUpUSFV5YkVOcFZEUndTbEkwVTIxdFdURlZPR2R6UjFZeE5WTmxabGhwYVVSME5RcDRSMnN5Ym5nclVIUTROVEZFYVhWM2JXeHRNMmN5TDNGU1NraFNkRTlTY25GaVJqVXJlR3R3YUZsM2VGTkxXRkpOY3psTVRGbENiMGx0U0hwMU9UbG9Da2w2WVRCd2FXTjNjRk0wZDI5UVN6TmFaRnB3Y2l0SlIxSktSQzhyVXpoRWFGTklhVEUxUlU0ckwwNTJSRGxKT0U5RFIydE5TRWxuWm1GSFpFbHBVamdLVjJOTk4yNTVVQzlsYlM5VmVIY3paVUU1V21GQk1XWklUMVEzYVVwUFQwdFZUMnhNZW1Ka0t6RlJXV1ZFUkcxVlZsaDRaVlZIWkZCRlNXbHhhMjFsVndwdlpUbFRhMVIwUVUxQmNIUlZhRkpIUWtrNWFXcHhkemN6TjJ4dVUxRkNlSG8zWTJaNWJFeE1ORzE0YzBoaWMwNVRaa3gxZEhSblVGbFNiSGh6YzNGcUNuWjBSbTFKTlZKblFrVnpiRFpMVW5aVlRrcElWemxhUjNJeFpEWkZaRXBaWW5keU1ETjZPRGhaU0doblVFRnJjalJPTlZwUmRrSjBOVXd5WW1KeVNrWUtTWGN5YzJGNmNWbDZUekF4V2xBNU1EUTJjVkYzTlU4M01ISm9kemhGT0hGR1luVkZkM1paYjJZclRVTkJkMFZCUVdGTmFrMURSWGRFWjFsRVZsSXdVQXBCVVVndlFrRlJSRUZuUzJ0TlFUaEhRVEZWWkVWM1JVSXZkMUZHVFVGTlFrRm1PSGRFVVZsS1MyOWFTV2gyWTA1QlVVVk1RbEZCUkdkblNVSkJUSEJxQ2tnd1NrTTJieXRwTUdVMWEyeHJNalJGU0hkNU1GaHBWRXh1YUVOWVdsSkpaRTVTY1ZoWlNubDROV05DTVVGWWFuRXdiRkZ0UkROb1dFazViMUJSYVZnS05HRlFaM2xaUW5OYU5FWnRORWN4YjNrNGEzVnFkR1l3U2xkM2JGUkRXbHBzY1RZeWFXYzFZazE2Tm5WUFRHOUhlSGh1YUZORVYwZEphVXBMUkhNeGF3cFNPVkZ3ZG1sWFpXWmxhVVE0U2tNNU4xcHFXVkZhVGpsMlJrVndjbGdyT1dWQ1lYVk1TRloxUTFnNGVETTRXVGxKWWxWMk5GVlZWRkJVUWtRdldsVndDbnBtTjJabFRUQTRVVGhHT0M5RVpEVnZibU5rTHk5bVVGVlZSSEZKWVhsamRuaHZTRUYxTlN0MVJsUjFLMHREUTI1ek16TTBSa1Z4VDJkTmQwSkViRGdLVFU1SWF6bE9TVmhzTDFsNVFrMVZUbTluVDJ0NU4wUmxXRWs1YVZOVWRWSmFaazFCYUZrMFptdDNTbTVaVDFSTlVXTXlZMlkzVGs5eFREbG1aSGt4T1FwVGJ6ZHBibFFyTjJab1lrWmplQ3RzVTJWWmNVZElVekpYVGtGTWNWTTBSbU5zVFZSS1pHcG1RWFZqZG5jNGRXOTJjRE5oWlRoVlJFMVpibEpKVHk5akNrc3lZeTlCZGtRMGIyTklVakFyY2tsQ2EwMVJRa2xMY205cFRERkJSbTg1TjNoTlp6TnlkakJaT1VZeGFXOUNRbFZIWlVvMVFVVkNSVVJ1WVRGRWN6a0thMDA1U1VsVUswMDJUa3hJVDNGeVdHSnNlRFkwVVc0d1QxbFdNSGR1ZG5scWNVbEZOVmRoUzBaT1RESnpXVFo1TUhoUVFsRk9jWFZEVkVScFYyTTNPUXB3YmtaclZWWkxVa3BGZVV0d05WRnZZalo0Ylhac2RXSXlORTlJU0RoTFZtVllXWFZuY1ZCVFUzTkhXVmwwVFZSTllTOUNkR3hZUjBnelpYWkpkVkJWQ2xSblkxTlNkMmhWU0dVeWVHdHBPVGRrTXpWQlpGSlBWMEZQYzJ4U1pVNXZPRmR1ZW5GTWJHVXhNREF6VEhveVRWQktRalp1WkZKWldFcElXRWR6Y1ZnS2NHeDJRM05sYkVOUllrZFRUVmhOVm1KWVVGbFlaazVvVUdSclFYSnlMMnA0TVRGWlRubGtad290TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBzZXJ2ZXI6IGh0dHBzOi8vY2xpLXRlc3QtYS1ha2tlc2hhci10ZXN0Mi0xYmZiYjUtYzRiYjc1MzcuaGNwLndlc3RldXJvcGUuYXptazhzLmlvOjQ0MwogIG5hbWU6IGNsaS10ZXN0LWFrcy1vM212ZnltcmN6cwpjb250ZXh0czoKLSBjb250ZXh0OgogICAgY2x1c3RlcjogY2xpLXRlc3QtYWtzLW8zbXZmeW1yY3pzCiAgICB1c2VyOiBjbHVzdGVyVXNlcl9ha2tlc2hhci10ZXN0Ml9jbGktdGVzdC1ha3MtbzNtdmZ5bXJjenMKICBuYW1lOiBjbGktdGVzdC1ha3MtbzNtdmZ5bXJjenMKY3VycmVudC1jb250ZXh0OiBjbGktdGVzdC1ha3MtbzNtdmZ5bXJjenMKa2luZDogQ29uZmlnCnByZWZlcmVuY2VzOiB7fQp1c2VyczoKLSBuYW1lOiBjbHVzdGVyVXNlcl9ha2tlc2hhci10ZXN0Ml9jbGktdGVzdC1ha3MtbzNtdmZ5bXJjenMKICB1c2VyOgogICAgY2xpZW50LWNlcnRpZmljYXRlLWRhdGE6IExTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVVV2UkVORFFYVlRaMEYzU1VKQlowbFJTVzF3ZHpsQ2JHdFlXR2t6VjJFNWRTOUxURXN4VkVGT1FtZHJjV2hyYVVjNWR6QkNRVkZ6UmtGRVFVNEtUVkZ6ZDBOUldVUldVVkZFUlhkS2FsbFVRV1ZHZHpCNVRVUkJNRTFxYTNoTlJFMHlUVVJhWVVaM01IbE5ha0V3VFdwcmVFMUVVVEpOUkZwaFRVUkJlQXBHZWtGV1FtZE9Wa0pCYjFSRWJrNDFZek5TYkdKVWNIUlpXRTR3V2xoS2VrMVNWWGRGZDFsRVZsRlJSRVYzZUhSWldFNHdXbGhLYW1KSGJHeGlibEYzQ21kblNXbE5RVEJIUTFOeFIxTkpZak5FVVVWQ1FWRlZRVUUwU1VORWQwRjNaMmRKUzBGdlNVTkJVVU41TDJGRU0wUkpaRzR2V0VsWVMxQnlVbFk0V2s0S2RqQTNXRGxuVTFKUkszWXJRM0F5ZWtVdldUWkxjalZWTlVGdlJUQk1XakpVUkVaNGQwRlFibmh0VkdoNlRUQnpiM1Z0TlcwelMxaFBaRlZEWWtKd1V3b3pRbVowTlhGdE5XbEtOa2RqWkVGU1ZGWnFaRkU0YjJFMlRIWjZaMUoyYkU1bWIwa3hWRXhLTWtwQ2RHVXpUV1ZFZDBKcFlrSjZNWFJWVFZaSVNFZENDbFV2VlRWU2F6RlpSSGRqWjI5NlpIaDFRMEpMZDFKUmF6RTVTbkJRYkVSNFYyOXhPSHBFVUZCTk1UVTRWSEoxSzBac1QzUkVUMU4xVWs1SmNpOU9RVFlLTlVWelVYSTBXWFJqVWsxMmIyUnZUbGRPUzNkdVUzSkRTM00xWm05dlpqZ3lTR1kwVlZsUFNIaHhOMnd3U2pGV1ZUaG1Sa2R6TmxKdlkwcEhWRzl2VmdwSlMwOVBSV2x4VVdkMGVFUk9LMDl1WTBaWFdEUkphbVY0WnpCb09HTk9UQzh3VEVWa1pWRjNSelV4UjNCb2MzVndVM2xZWWxob1EyeHdibXgxZEVodENuTkxXbnBTWTBGalZHOTNabVZKUzJKaVIxaHZTRFpsVkhwTGFFWkpTRE0xVXpGWlRHWmpRMnRoU0dSdWJXTkJUakZvTWxaUlNFeHpORWRaVlhReFJ6VUtXa0p4VlVZd1RrTlRkazV1TDNaaWNVRlZZMDgzSzBaT09EZHFWM054VDFKT2VUTkROR2hOYjJoaVkwWTRaa2xFTTNadWNUWjBXR3R4YjBsdE1uaHdVd3BPTkhjMVpWaDRZbFk1WlRKdmVHMUxiMm9yZWtKbFlXaHpWVXhhV2tkbU1HcFNZMXBvWXpSb2VFcDBjVTlRUzNkTVQyVkRha3cxV1RCT1lWRnBORXhrQ25sS1owaHFRemhGZVVsSGVFMUZjMVl4VW1SMVdVTjFTazF5TDJGU05rOXFSMHhuTW1OR05FdENUSGRuZWsxWlZtazJNRFZPUVZSaWVHRnZWelZUYnpFS1ZUVnFhelpQWkd0dFQwcDJkeTlUWmk5VmNXUXhRMEZpZG5sNlFtRkhheloyZHpoSlpVYzBiM3BPU1VaclpVSjRjRmgxT0hCSGFFbFhUR3AyV0dac1ZBcHdaRE54VERjMlIzSXdha0pEVGtseVpXbExjRWRSU1VSQlVVRkNiM3BWZDAxNlFVOUNaMDVXU0ZFNFFrRm1PRVZDUVUxRFFtRkJkMFYzV1VSV1VqQnNDa0pCZDNkRFoxbEpTM2RaUWtKUlZVaEJkMGwzUkVGWlJGWlNNRlJCVVVndlFrRkpkMEZFUVU1Q1oydHhhR3RwUnpsM01FSkJVWE5HUVVGUFEwRm5SVUVLVEdGcWNGUTFTeTlNYkdOc1NVbzNMM2xxVWtSU2FtZE1TM051UTI1TFpHUlBhM0l2U0hGQ2FHaHZXRkpqZHpRNGFFVmlTMlo2VjNSdllUbFJURFZKTUFwWEwyZFNiVVpXVVUxNmNESmhSWGd2YUhscWJUTTNWbVIyTDBGdGF5OVJkSGN2UlhwTFYxbHRTMjE2WlhaS1JtOHdibHBoZG1wa1NHaGFjRVJDTW1aUUNsY3dia3RITHpkMVZXbEhaelZQZEdzME0zcHJaMmh6TTFJMFNHaFpiMHB6Y0VOMU1VOWFPRk51YnpOcmJVaFlaV3BNUzBKdlJVSjNSMGhSTVhWdGJIVUtkakpFU2sxaU1VdExjM05zUlZKRGVuUTBaRzB6VmxwMmQzbGhXR3RpZDJGT2EyMVBaRGhXZDJGUVJTc3dRMm9yY0ZsNE1GbGlUemRPY2k5RVJFTXZZUXB5UVdWak9VcHllVTFuZGtWbGFqUTBVM1ZDV1dsYVlrZHROMjl2WjJwNlVXZExlRE5MYTNwc2NFa3dTM2MxVDJWWmJXUXZWVGhRSzNaVlZWTllaMGhrQ21aTmMwUTFjRTk1WkVsQ1QzbGlkeXMzUkdwQlpVOVpaRUpXZWt0aFRFTk5TRzFCTmxKSVdqWTNjbTh6TVRWcVRHNXhhMHhLUTFkelRqWnZVVzFMZG5RS2NEUkNiRzAxWkVoQmJGcFdNazQ0YlZoWE4yOHlWa1ZtTWpkb1NsUnVSMFpxY0dSeGVqVXZRazV1VWpCTlZ6bEdibTByVlhKVWQwcERObVZUVlVkS1NRcFBNbE12ZDB3d1pYZDVibmRNV0drNWVYWXlRVlF4S3pGV2N6WlJOakZwUzJGVEwwWjZiVEJXVUVacGFsUnVWVVJNZEd4RmNraDJNVFpWY210TmMxTmtDbFF4ZG5GVlpqSk5OazFqWW5GbWNtZzFWRFEyY1dsaFRETXlaVFJzWXpsbWNtdFNNVk5QUm1RNFltMUVjak14Wm1sVGJXUktka2R4TTJGaFNtMDFWamdLTjFwcVdUSk9ZMFYwWlVod1dsSXJhMGhTUTJsM1RXSlNlQzkzYjAxWlpuRk1PRWRPTjBNeFprVnBaMEpXTUdKeVNURlljWFpJVGpRMFRrVkRkMmsxVndvMk1VVlpWV05wZFZoWFVVMTBUSGt6VkdKRmJtNW9ja1kxVkRsTk1ERkpaV2R6ZUVOS1IzUnVZVzVuUFFvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PQogICAgY2xpZW50LWtleS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJTVTBFZ1VGSkpWa0ZVUlNCTFJWa3RMUzB0TFFwTlNVbEtTMEZKUWtGQlMwTkJaMFZCYzNZeVp6bDNlVWhhTHpGNVJubHFOakJXWmtkVVlqbFBNUzlaUld0VlVISXZaM0ZrYzNoUU1rOXBjU3RXVDFGTENrSk9RekprYTNkNFkyTkJSRFU0V21zMFkzcE9URXRNY0hWYWRIbHNlbTVXUVcxM1lWVjBkMWczWldGd2RWbHBaV2h1U0ZGRlZURlpNMVZRUzBkMWFUY0tPRFJGWWpWVVdEWkRUbFY1ZVdScFVXSllkSHBJWnpoQldXMTNZemxpVmtSR1VuaDRaMVpRTVU5VldrNVhRVGhJU1V0Tk0yTmlaMmRUYzBWVlNrNW1Vd3BoVkRWUk9GWnhTM1pOZDNwNmVrNWxaa1UyTjNab1dsUnlVWHByY210VVUwc3ZlbEZQZFZKTVJVc3JSMHhZUlZSTU5raGhSRlpxVTNOS01IRjNhWEpQQ2xnMlMwZ3ZUbWd6SzBaSFJHZzRZWFUxWkVOa1ZsWlFTSGhTY2s5cllVaERVbXMyUzBaVFEycHFhRWx4YTBsTVkxRjZabXB3TTBKV2JDdERTVE56V1U0S1NXWklSRk12T1VONFNGaHJUVUoxWkZKeFdXSk1jVlZ6YkRJeE5GRndZVm8xWW5KU05YSkRiV013V0VGSVJUWk5TRE5wUTIweWVHdzJRaXR1YXpoNWJ3cFNVMEk1SzFWMFYwTXpNMEZ3UjJneldqVnVRVVJrV1dSc1ZVSjVOMDlDYlVaTVpGSjFWMUZoYkVKa1JGRnJjbnBhTHpjeU5tZEdTRVIxTDJoVVprODBDakZ5UzJwclZHTjBkM1ZKVkV0SlZ6TkNaa2g1UVRrM05UWjFjbFkxUzNGRFNuUnpZVlZxWlUxUFdHdzRWekZtV0hSeFRWcHBjVWt2YzNkWWJXOWlSa01LTWxkU2JqbEpNRmhIV1ZoUFNXTlRZbUZxYW5selEzcHVaMjk1SzFkT1JGZHJTWFZETTJOcFdVSTBkM1pDVFdsQ2MxUkNURVprVlZoaWJVRnlhVlJMTHdveWEyVnFiM2hwTkU1dVFtVkRaMU00U1UxNlIwWlpkWFJQVkZGRk1qaFhjVVoxVlhGT1ZrOVpOVTlxYmxwS2FtbGlPRkF3Ymk4eFMyNWtVV2RITnpoekNuZFhhSEJQY2poUVEwaG9kVXROZWxOQ1draG5ZMkZXTjNaTFVtOVRSbWswTnpFek5WVTJXR1EyYVNzcmFIRTVTWGRSYWxOTE0yOXBjVkpyUTBGM1JVRUtRVkZMUTBGblFVTnRheXRTTmtKMU56bHRTMGhXWWtFMFFsSmxPRWczUlUwd1QxbEhSM0lySzNoUVlrRkhUMVV5ZFZaS2JFNDFLM2h5UkhSTVFYaGhad29yWkV4VmRIWjZWMm8zZWxsRWJFcHdkMWx1YzBOM2J5czJPRmREVDFCTlkwbFpUMDFWUTBaSFFWUmxkVmRNY1ZoR1VuQkhVU3RaWm5neGRscG1SM2g2Q2xodE5VeHZlSFZQYWtGSlJHbFBTbEJxUWxSeWRXTlJUVGxaYm5SQlNWTk1XR0YwV1ZGWVpYZEZUU3RKYkhNeldtRkhPV0pxWTNablptVm9PV0ZtZVdzS1prTXJkM0p4VjAxR2VsVkNjMW81Y2pNNGEyWm5OVFoxZUhoR1kwZGtMMEpyVm5aYVNURkVUa2MwVW5CT01GcDRSRkZuU0VwTmJ6RmtPRFpWWW1FeGJ3bzNaalpGY0dVek4wbzBjSGxMUkVzMlpXZGFVVGxrU1RKYVdWQTJhRXQyT0V3clZuZHFiMkZZWWpaUFpURnlTbGc0UVhKMFpXMUlUV2RhUWl0a1YzSkxDa2x3UXpjMWJISnRTVkp2TmtadGNrMXNUMjUyZUdaTVl6bFdaVU5DWjFkWU5HeGxRMUpvVkdaeVlqaDRaa2xLV1N0S2J6ZGtaalpLSzBSdE0zcGtaRm9LTVZBeVdWQTFVbmhrZVZsV1JIRk1URU5FYmpaSFpHWjBSMGRrV2xaRE5XVm5lVVIxVTJOaVVWb3ZkVVJPY1RoNmRUZHhlalZtZDNGWGJFZHZjVzEzWndwd2VucEtRa2t4Um5odmNWbHliREZCWnpVMlJtOHJWVTlTU2psc2NXMVBjSFZqV0dnMmFWRlRWMVF3V1ZSQ1RFODJRWHBzVW1oVU5EbGhZbEUxWlVOR0NrdFFiWFY0T1VSWE0yZFFXbk56YkVsR00wTjNaWGt5WlZwalJ6bFNNRGxxVlVGblZqRTFOekZuTWxZMmFsbHRTVTlYYVRaUVIyUmhSeTl4YUdkVE1IVUtkVlF5UzNKTGNtMTRiVWxZY1dkM1lrcENaMHhFVTB4Q2FsYzJlV2xhVVRaVFYxSlRTVU5tWWtkWVFuUkxOMDlDWmpoblYybFJlVmhGYzJGV1NEQkVSQXB6Y1doUWFpdE5hamRvYVZOMU5HMXNXVk4yZFhkdWIwOTZXRlJLYWxWWWRWTTRVMFUyVDFsTmRXaDFiWFpFVTNkQlVVdERRVkZGUVhjcmVtbFhkazQzQ2xOeU5VMVdTak12UWpWWkszUTRTM2N4TlM5TmFVdExRV3RzWlRVMVduaEJkbE5JYUZkd2J6Sk5jbGh5VlVkYWRtMUhZVEZHU1hZeGRtWXpMMDAxVEU4S1RHaE5aRmgzVDNGWk1GUldhVFJ1ZVhsWE1FSlFUVWxqV214UGVXYzFPRFoyZWtWNFdWUnFNMHRxWlRGdk9ERlJUV3h1TmpORmNtWm1VR2t6ZVRSTFNRb3ZaemhSZDA5aVpHNDJhREZ5VDFnNFdtWnRMMnBvUlZReFRucGpaWGxvT1RZd2JXZHVXR3A1YURjMFdtOXhaRzVNYVUxTWJrRlJWMUYwZWtaNGRtUlpDbW96VEcwNFdXOWFSVXc0YTFscE0zWnROblZaTjNWTWJHbDNjRzVPUXlzelJWbFpNRnBLWkhOVFFVdEpjSEZyVERNMlpESnFSRGhvUTAxUVRERk1iMFFLYm5kdFNGZExhVzByWjJ0Q1NWY3lNbmhUVmk5SWFFaFFWR2xqTkRjM1Rta3hXR1pHTkdSRlFrNXVjRVZxVlZJeWIwZ3JPRnBqUVc5clVYSndWVmw2VlFwU09YTmliRkJKV0ZWa00ybEJVVXREUVZGRlFUWmtPVE55ZHpoV1N6aHZaek12WTFaWGRYRndPVTQwYmxwV1Iwd3ZNWGx6U21kUFEzRlVaekJGTVM4NUNrWnlWREl6SzB4SmFtdFNSMmcyWlUxeVUwVnlUV2xYU0ZWM2VTOXlUbFF4ZVhwcFFWUmFVRFYyZDFRNE9XbHdkU3NyZG5Zd2R6VnpPR3hxTDJGbmJXb0tUVU1yTkRVNVF5OUlaWGxUZG5WTldGcGphVzUwU2xGRVZIWjZZMU5LYUhWMU1sZFRSMnBQVm5jeU5YUkxSWGhSVFRGblUzaEVVVTB3ZUZZd1MzaFdkUXBzVW5FMVkyUjNWVWR2UWtWSk5URlhXRTF1T0V0UFFuUjBiRmxRYzFoVFVVbEhZU3RNUldWNWVGcGxaVWg0TVVGTWRYSkpOSGtyVmtkVVFUWk1hV1JOQ21ZMVlXSlJhRE5vU0hGTGQzTktjMFpVVFU1VmMwTnlWRlp4U1Zobk1rNTZUMEl6Wm5WclluVlRSelprYm5Gc05YcERORlZNY0ZocmNFZFdTMjVUZVdnS2NrTnZWVkVyZVVvemJVSklVa2cyZVhOdU1uRmFURFl3U0RCQ1MwVkxlRmRMYmtKbVlWTnRXRWRSUzBOQlVVSlRkWEkzYkhWeVVWQXpiMVJ4YjJkQ2FncEhjakJITmxFeU1VeHpUekV5YWtKRFIzZHlhU3R1VTFoeFEzVTFSSGszWkdkT1YwcEZTV2RGY1ZSSVJFdEZiM1V6U1dGaVNqRXdjVTVYV1UxcVkyRjJDblpuZDFKeVRVVTBOMjA0T0ZWYVlXVlhjVGhvVW5WWlQyWXhOR3BsUjA1a2FqQkxRMnhTY0UwclNrOXNNak5QT1VkSFV6ZGhWRmxvVjFGcmR5dDNjMUFLT1VwcmFqRmpWV0UxYW1ST1lrMWhZamxzY1daSmJucDRSV2hxYUVKWldXSmlWbXA2ZUc4MFdpOUVRbFozTmtGSGQyRlJPVzVKYm01dlNsRkdNemxOZGdwelFscFVOSEZQZG1KMWFsaDZhbFYzTTJOaGQxVlpiVk4xT0VZMWVrUnhjblZYTkhOUFYzUk1SMFJLUm1wQk5rNHpaV01yZG5kRWVXTmFjVmRDUkdwc0NtdFdTRW8xVFV4MFVXbFZTRGxIY3psNUwwRk9kbmRvTTNKUGFVRnljbXM1V1V0c04yOVVTV0ZIV0ZoaE0xTlpSVUZOUWl0aUswaG1TMXBVWlRoek5ra0tRV2hKUWtGdlNVSkJVVVJETjJRNWVuRmlObUp2VURKR2NuZDFPVzAxYmswemREQXpUbUZFWVZaM1QyeExOR1pqVVRGM2ExTm1NVWw2T0hneFJIcEVZUXBaTUROdFFUSkVaR0pMWmpCU1FrNXRlRlpzT1ZaSlRVcDJlVFI0WlhkVVQydG1ia1p6T1dsT1dWUnRhbFZKU3prdlF5OXRNR1ZIVTJGRVVsZEJNR1JKQ2xOallVZEdRVWROWkVwS1ZHdEpjWGhoTVVOMmMxWXlZVVpETmxOaFEzbE1iRFUyYWpFdlpVRXhRV1pSVVZKSWRsaG9TbFpXY1dVd016TkdlREZXTVhNS1QxUjVVamh5U0c4MVVFZHViMGRtVW1OcGJtbFljVlpEV0VkQ2JIZzVlbHBzUjFoWGVWTnhWamhHZEVGQlNXcHNWbUV3YjJsMGFsZ3ZNQ3R2Tmk4MlZ3bzJhMDFoT0VKeFlYZE1VREZ2WW5oRmJWSllRVVJWVVdKdlkzRTBSME5pUkdWSE9HNXlNVzh4VGt4TVpHOVdTRkpPUW5aamNGUmhZbkZRWWpkS2EzaEVDbUpVZGpWbGVVTXlXazFsUVRoUVNuZHRZMVZvTkVsS2VFaFFhSEJVY1VWQ1FXOUpRa0ZCTUdaRFoyVnpZMjFUTmsxVFkyc3plVWxoVm1nME9HNUlkallLTUVoWU5XNXRRM2g2VVVSSlJrZGpiREkwU0VSb1IyTjJUM0pJTmxGeE4waFRla04zVFUxVmEwNHJWR3MyWTJoSE1IRXdWbHBUTVRNclpGTmtjV0l6VEFwb1EwNHhhWEJZT1RWWE5WVjFTVlJOYVRST1JHeGpVWEpqVW01WU5ETmpjWE15Y1RWWGFYcFhja3BQTXpOdGFHSmpUVWd6ZFRreGEzSldlbFpUYURoUENsWkZhSFJhZG1wYVowTlVjRkpyVDNrNFJuVktUVXBZWkVSRlpYaFhiamRTYUdoNlYzSk1lak5hTkVneVJHazVWVVZwVVdGWWExSXZVVUZQUWxSRFpIa0tVRFZJVG5oSU1sTkhXSEpqYTJoNGNUY3pUMDB5WWtoR1RrSXlTQzg0TUc1aVQxcGxaMjkxYURKNVFsUmlOR0ozUjJSTlRWTkZhVEozY0V3MVZVdFdOUXBIY0M5S1pUZGpVWEJsYlVKTk9XZFlTWE5pWVVwaFNuaHpOVU5ZUjBzNU1FNTZOVTQ1V0hWM2NsRlNlSFo2TVZKb2IyVnFNVWhQVEdjclZUMEtMUzB0TFMxRlRrUWdVbE5CSUZCU1NWWkJWRVVnUzBWWkxTMHRMUzBLCiAgICB0b2tlbjogMGRlNGU4Y2M2ZmY2MjgzMjYxNWQ5ZjUyYzcxMTY3MzE4NTIzNTlmZjIzNzc5N2M5M2ZiMzAwM2Y0N2UxMjhiZTA1MjkwYzg5NjhjMDY5MmY2NGVlYWJkNGE5MzM3NTY2YmIwZDU1ZjA0OTI5OWIzYWE1ZTFjZWVkODhiY2NiNTgK\"\n - \ }\n ]\n }" + string: '{"repositoryPath":"mcr.microsoft.com/azurearck8s/canary/stable/azure-arc-k8sagents:1.3.8"}' headers: - cache-control: - - no-cache + api-supported-versions: + - 2019-11-01-Preview + connection: + - close content-length: - - '13004' + - '90' content-type: - - application/json + - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:51:38 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx + - Sun, 01 Aug 2021 13:03:49 GMT strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + - max-age=15724800; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' status: code: 200 message: OK - request: - body: null + body: '{"tags": {"foo": "doo"}, "location": "eastus2euap", "identity": {"type": + "SystemAssigned"}, "properties": {"agentPublicKeyCertificate": "MIICCgKCAgEAw7a556P1iGTnOffgc46vmftHKgA7bH+mVgRTzYe0g4rM4p1uiA4jQ2Bo/soSCqXQVG+Q0WIqai60rOJu1G49AsXrGuw7WBy7KUv+GTQFl7z5SWuPVW96WMzE0qLBVypMc6ogr44ismanyFhGzLSv+METP73iV1WiQcEf1D9FMgGnWhRlGOrj3eB4H2gBkApYHt5oqm9CwQN/Kfon3K2JY7oxOxowJz3GRVIVtB6h7L+IUbBg1/fRnpW5m8/s6fRyT+1cfJi8A4sfKB0GUs+DyNWGtqJMtO/pYoPJk2SpKm5uSFOgaiKcG6Iw8tXltmEzgy+KuaIX5inyo38ySXBOzIMrx8I2ojx/hYvt1NEdC8pimLE3sactu5B2TfdgRzD+BjLJifdFUnrUSxeOCGgyIfm8OMjPpt1iVRqJJFPqgflUDOb/sHBP+00cqO3K2tyoE1OQJllSWk3UBstY2f8Vhl4CMhpOURjAxKvXdscED8/a7jlqvcThYNXUIg+bYaSXwjv0+ukEtGz8ivwhwCqKQSSIssL/HYRosN+wCMpJT85i1qcl7DBpSzko6cfAL/HWVuPzluGlO2S7kTHHbGWkG3iCKHpBVg74+LRoc7T+GLSKJfgHxDA19zxoYGxNhP/5mO03gBq+WS5fr+yKTOhLf9EgaNtuqOkhaDiJZVKSrzUCAwEAAQ==", + "distribution": "aks", "infrastructure": "azure"}}' headers: Accept: - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedk8s connect + Connection: + - keep-alive + Content-Length: + - '894' Content-Type: - application/json + ParameterSetName: + - -g -n -l --tags --kube-config User-Agent: - - OpenAPI-Generator/11.0.0/python - method: GET - uri: https://cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io/apis/networking.k8s.io/v1/ + - AZURECLI/2.26.1 azsdk-python-mgmt-hybridkubernetes/1.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/cc-000002?api-version=2021-03-01 response: body: - string: '{"kind":"APIResourceList","apiVersion":"v1","groupVersion":"networking.k8s.io/v1","resources":[{"name":"networkpolicies","singularName":"","namespaced":true,"kind":"NetworkPolicy","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["netpol"],"storageVersionHash":"YpfwF18m1G8="}]} - - ' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/cc-000002","name":"cc-000002","type":"microsoft.kubernetes/connectedclusters","location":"eastus2euap","tags":{"foo":"doo"},"systemData":{"createdBy":"akkeshar@microsoft.com","createdByType":"User","createdAt":"2021-08-01T13:03:59.1455606Z","lastModifiedBy":"akkeshar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-08-01T13:03:59.1455606Z"},"identity":{"principalId":"a45968bd-00ac-44c5-a4d8-0a4c8f71603f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Accepted","connectivityStatus":"Connecting","agentPublicKeyCertificate":"MIICCgKCAgEAw7a556P1iGTnOffgc46vmftHKgA7bH+mVgRTzYe0g4rM4p1uiA4jQ2Bo/soSCqXQVG+Q0WIqai60rOJu1G49AsXrGuw7WBy7KUv+GTQFl7z5SWuPVW96WMzE0qLBVypMc6ogr44ismanyFhGzLSv+METP73iV1WiQcEf1D9FMgGnWhRlGOrj3eB4H2gBkApYHt5oqm9CwQN/Kfon3K2JY7oxOxowJz3GRVIVtB6h7L+IUbBg1/fRnpW5m8/s6fRyT+1cfJi8A4sfKB0GUs+DyNWGtqJMtO/pYoPJk2SpKm5uSFOgaiKcG6Iw8tXltmEzgy+KuaIX5inyo38ySXBOzIMrx8I2ojx/hYvt1NEdC8pimLE3sactu5B2TfdgRzD+BjLJifdFUnrUSxeOCGgyIfm8OMjPpt1iVRqJJFPqgflUDOb/sHBP+00cqO3K2tyoE1OQJllSWk3UBstY2f8Vhl4CMhpOURjAxKvXdscED8/a7jlqvcThYNXUIg+bYaSXwjv0+ukEtGz8ivwhwCqKQSSIssL/HYRosN+wCMpJT85i1qcl7DBpSzko6cfAL/HWVuPzluGlO2S7kTHHbGWkG3iCKHpBVg74+LRoc7T+GLSKJfgHxDA19zxoYGxNhP/5mO03gBq+WS5fr+yKTOhLf9EgaNtuqOkhaDiJZVKSrzUCAwEAAQ==","distribution":"aks","infrastructure":"azure"}}' headers: - audit-id: - - 239f2231-103a-4264-adb4-2fc53158fbb9 + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS2EUAP/operationStatuses/a035924c-8928-4973-a735-69de4e03245a?api-version=2021-03-01 + cache-control: + - no-cache content-length: - - '328' + - '1499' content-type: - - application/json + - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:51:41 GMT + - Sun, 01 Aug 2021 13:04:04 GMT + etag: + - '"0300b3a5-0000-3400-0000-61069bc30000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -1177,29 +985,34 @@ interactions: ParameterSetName: - -g -n -l --tags --kube-config User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kubernetes?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ExtendedLocation?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kubernetes","namespace":"Microsoft.Kubernetes","authorizations":[{"applicationId":"64b12d6e-6549-484c-8cc6-6281839ba394","roleDefinitionId":"1d1d44cf-68a1-4def-a2b6-cd7efc3515af"}],"resourceTypes":[{"resourceType":"locations","locations":[],"apiVersions":["2020-01-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East - US 2 EUAP","West Europe","East US"],"apiVersions":["2020-01-01-preview"],"capabilities":"None"},{"resourceType":"registeredSubscriptions","locations":[],"apiVersions":["2020-01-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["West - US","East US"],"apiVersions":["2019-11-01-preview","2019-09-01-privatepreview"],"capabilities":"None"},{"resourceType":"connectedClusters","locations":["East - US","West Europe","East US 2 EUAP"],"apiVersions":["2020-01-01-preview","2019-11-01-preview","2019-09-01-privatepreview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, - SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ExtendedLocation","namespace":"Microsoft.ExtendedLocation","authorizations":[{"applicationId":"bc313c14-388c-4e7d-a58e-70017303ee3b","roleDefinitionId":"a775b938-2819-4dd0-8067-01f6e3b06392"},{"applicationId":"319f651f-7ddb-4fc6-9857-7aef9250bd05","roleDefinitionId":"0981f4e0-04a7-4e31-bd2b-b2ac2fc6ba4e"}],"resourceTypes":[{"resourceType":"locations","locations":[],"apiVersions":["2021-03-15-preview","2020-07-15-privatepreview"],"capabilities":"None"},{"resourceType":"customLocations","locations":["East + US","West Europe","North Europe","France Central","Southeast Asia","Australia + East","East US 2","West US 2","UK South","Central US","West Central US","West + US","North Central US","South Central US","Korea Central","East US 2 EUAP"],"apiVersions":["2021-03-15-preview","2020-07-15-privatepreview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"customLocations/enabledResourceTypes","locations":["East + US","West Europe","North Europe","France Central","Southeast Asia","Australia + East","East US 2","West US 2","UK South","Central US","West Central US","West + US","North Central US","South Central US","Korea Central","East US 2 EUAP"],"apiVersions":["2021-03-15-preview","2020-07-15-privatepreview"],"capabilities":"None"},{"resourceType":"locations/operationsstatus","locations":["East + US","West Europe","North Europe","France Central","Southeast Asia","Australia + East","East US 2","West US 2","UK South","Central US","West Central US","West + US","North Central US","South Central US","Korea Central","East US 2 Euap"],"apiVersions":["2021-03-15-preview","2020-07-15-privatepreview"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":["East + US","West Europe","North Europe","France Central","Southeast Asia","Australia + East","East US 2","West US 2","UK South","Central US","West Central US","West + US","North Central US","South Central US","Korea Central","East US 2 Euap"],"apiVersions":["2021-03-15-preview","2020-07-15-privatepreview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2021-03-15-preview","2020-07-15-privatepreview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' headers: cache-control: - no-cache content-length: - - '1208' + - '2369' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:51:45 GMT + - Sun, 01 Aug 2021 13:04:05 GMT expires: - '-1' pragma: @@ -1227,43 +1040,61 @@ interactions: ParameterSetName: - -g -n -l --tags --kube-config User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-hybridkubernetes/0.1.1 Azure-SDK-For-Python AZURECLI/2.5.0 + - python/3.7.7 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.26.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar-test2/providers/Microsoft.Kubernetes/connectedClusters/cc-000002?api-version=2020-01-01-preview + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=displayName%20eq%20%27Custom%20Locations%20RP%27&api-version=1.6 response: body: - string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Kubernetes/connectedClusters/cc-000002'' - under resource group ''akkeshar-test2'' was not found."}}' + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"51dfe1e8-70c6-4de5-a08e-e18aff23d815","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"Custom + Locations RP","appId":"bc313c14-388c-4e7d-a58e-70017303ee3b","applicationTemplateId":null,"appOwnerTenantId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"Custom + Locations RP","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft + Services","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["bc313c14-388c-4e7d-a58e-70017303ee3b"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null}]}' headers: + access-control-allow-origin: + - '*' cache-control: - no-cache content-length: - - '169' + - '1246' content-type: - - application/json; charset=utf-8 + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; date: - - Wed, 29 Apr 2020 10:51:58 GMT + - Sun, 01 Aug 2021 13:04:06 GMT + duration: + - '1754441' expires: - '-1' + ocp-aad-diagnostics-server-name: + - V7ZnWAq1pA25vrXQmsRM9mwT5N2oOJoXH21SvGS9qlo= + ocp-aad-session-key: + - OIkQybNtqne3KVtskN7X-7P5cjGXQharVfrHXOuP70fXMAWAgxq2GwjmViwul4RWA6_lduJ_YoczPZZkzg1JR5apn6uhRLf0jHIyIWl4cQHX1w_a3oZS-CnoFT1jdW5p.ZYOmbKE1hjPZGkIMPrLEkrvF9b1OztoZbpPi4EOh9OA pragma: - no-cache + request-id: + - 3059d544-18ab-455d-855a-6da9d6ed8d5d strict-transport-security: - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-failure-cause: - - gateway + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '1' + x-powered-by: + - ASP.NET status: - code: 404 - message: Not Found + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1273,30 +1104,31 @@ interactions: ParameterSetName: - -g -n -l --tags --kube-config User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US + - AZURECLI/2.26.1 azsdk-python-mgmt-hybridkubernetes/1.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar-test2?api-version=2019-07-01 + uri: https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS2EUAP/operationStatuses/a035924c-8928-4973-a735-69de4e03245a?api-version=2021-03-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2","name":"akkeshar-test2","type":"Microsoft.Resources/resourceGroups","location":"eastus2","properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/providers/Microsoft.Kubernetes/locations/EASTUS2EUAP/operationStatuses/a035924c-8928-4973-a735-69de4e03245a","name":"a035924c-8928-4973-a735-69de4e03245a","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/cc-000002","status":"Succeeded","startTime":"2021-08-01T13:04:02.5482188Z","endTime":"2021-08-01T13:04:18.6820103Z","properties":null}' headers: cache-control: - no-cache content-length: - - '226' + - '439' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:51:58 GMT + - Sun, 01 Aug 2021 13:04:36 GMT + etag: + - '"3a00e105-0000-3400-0000-61069bd20000"' expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -1311,35 +1143,44 @@ interactions: - '*/*' Accept-Encoding: - gzip, deflate + CommandName: + - connectedk8s connect Connection: - keep-alive - Content-Length: - - '0' + ParameterSetName: + - -g -n -l --tags --kube-config User-Agent: - - python-requests/2.22.0 - method: POST - uri: https://eastus2euap.dp.kubernetesconfiguration.azure.com/azure-arc-k8sagents/GetLatestHelmPackagePath?api-version=2019-11-01-preview&releaseTrain=stable + - AZURECLI/2.26.1 azsdk-python-mgmt-hybridkubernetes/1.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/cc-000002?api-version=2021-03-01 response: body: - string: '{"repositoryPath":"azurearcfork8s.azurecr.io/canary/stable/azure-arc-k8sagents:0.1.119"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/cc-000002","name":"cc-000002","type":"microsoft.kubernetes/connectedclusters","location":"eastus2euap","tags":{"foo":"doo"},"systemData":{"createdBy":"akkeshar@microsoft.com","createdByType":"User","createdAt":"2021-08-01T13:03:59.1455606Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2021-08-01T13:04:09.3764133Z"},"identity":{"principalId":"a45968bd-00ac-44c5-a4d8-0a4c8f71603f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connecting","agentPublicKeyCertificate":"MIICCgKCAgEAw7a556P1iGTnOffgc46vmftHKgA7bH+mVgRTzYe0g4rM4p1uiA4jQ2Bo/soSCqXQVG+Q0WIqai60rOJu1G49AsXrGuw7WBy7KUv+GTQFl7z5SWuPVW96WMzE0qLBVypMc6ogr44ismanyFhGzLSv+METP73iV1WiQcEf1D9FMgGnWhRlGOrj3eB4H2gBkApYHt5oqm9CwQN/Kfon3K2JY7oxOxowJz3GRVIVtB6h7L+IUbBg1/fRnpW5m8/s6fRyT+1cfJi8A4sfKB0GUs+DyNWGtqJMtO/pYoPJk2SpKm5uSFOgaiKcG6Iw8tXltmEzgy+KuaIX5inyo38ySXBOzIMrx8I2ojx/hYvt1NEdC8pimLE3sactu5B2TfdgRzD+BjLJifdFUnrUSxeOCGgyIfm8OMjPpt1iVRqJJFPqgflUDOb/sHBP+00cqO3K2tyoE1OQJllSWk3UBstY2f8Vhl4CMhpOURjAxKvXdscED8/a7jlqvcThYNXUIg+bYaSXwjv0+ukEtGz8ivwhwCqKQSSIssL/HYRosN+wCMpJT85i1qcl7DBpSzko6cfAL/HWVuPzluGlO2S7kTHHbGWkG3iCKHpBVg74+LRoc7T+GLSKJfgHxDA19zxoYGxNhP/5mO03gBq+WS5fr+yKTOhLf9EgaNtuqOkhaDiJZVKSrzUCAwEAAQ==","distribution":"aks","infrastructure":"azure"}}' headers: - api-supported-versions: - - 2019-11-01-Preview - connection: - - close + cache-control: + - no-cache content-length: - - '88' + - '1521' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:52:00 GMT - server: - - openresty/1.15.8.2 + - Sun, 01 Aug 2021 13:04:36 GMT + etag: + - '"0300c3a5-0000-3400-0000-61069bd20000"' + expires: + - '-1' + pragma: + - no-cache strict-transport-security: - - max-age=15724800; includeSubDomains - - max-age=2592000 + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK @@ -1348,32 +1189,46 @@ interactions: headers: Accept: - application/json - Content-Type: - - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedk8s show + Connection: + - keep-alive + ParameterSetName: + - -g -n User-Agent: - - OpenAPI-Generator/11.0.0/python + - AZURECLI/2.26.1 azsdk-python-mgmt-hybridkubernetes/1.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io/api/v1/nodes + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/cc-000002?api-version=2021-03-01 response: body: - string: '{"kind":"NodeList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/nodes","resourceVersion":"954"},"items":[{"metadata":{"name":"aks-nodepool1-28230805-vmss000000","selfLink":"/api/v1/nodes/aks-nodepool1-28230805-vmss000000","uid":"0658b89a-392d-4e42-a0cb-0c3ddfd0acc6","resourceVersion":"893","creationTimestamp":"2020-04-29T10:50:51Z","labels":{"agentpool":"nodepool1","beta.kubernetes.io/arch":"amd64","beta.kubernetes.io/instance-type":"Standard_B2s","beta.kubernetes.io/os":"linux","failure-domain.beta.kubernetes.io/region":"westeurope","failure-domain.beta.kubernetes.io/zone":"0","kubernetes.azure.com/cluster":"MC_akkeshar-test2_cli-test-aks-000001_westeurope","kubernetes.azure.com/role":"agent","kubernetes.io/arch":"amd64","kubernetes.io/hostname":"aks-nodepool1-28230805-vmss000000","kubernetes.io/os":"linux","kubernetes.io/role":"agent","node-role.kubernetes.io/agent":"","storageprofile":"managed","storagetier":"Premium_LRS"},"annotations":{"node.alpha.kubernetes.io/ttl":"0","volumes.kubernetes.io/controller-managed-attach-detach":"true"}},"spec":{"podCIDR":"10.244.0.0/24","providerID":"azure:///subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mc_akkeshar-test2_cli-test-aks-000001_westeurope/providers/Microsoft.Compute/virtualMachineScaleSets/aks-nodepool1-28230805-vmss/virtualMachines/0"},"status":{"capacity":{"attachable-volumes-azure-disk":"4","cpu":"2","ephemeral-storage":"101445900Ki","hugepages-1Gi":"0","hugepages-2Mi":"0","memory":"4017084Ki","pods":"110"},"allocatable":{"attachable-volumes-azure-disk":"4","cpu":"1900m","ephemeral-storage":"93492541286","hugepages-1Gi":"0","hugepages-2Mi":"0","memory":"2200508Ki","pods":"110"},"conditions":[{"type":"NetworkUnavailable","status":"False","lastHeartbeatTime":"2020-04-29T10:51:14Z","lastTransitionTime":"2020-04-29T10:51:14Z","reason":"RouteCreated","message":"RouteController - created a route"},{"type":"MemoryPressure","status":"False","lastHeartbeatTime":"2020-04-29T10:52:12Z","lastTransitionTime":"2020-04-29T10:50:51Z","reason":"KubeletHasSufficientMemory","message":"kubelet - has sufficient memory available"},{"type":"DiskPressure","status":"False","lastHeartbeatTime":"2020-04-29T10:52:12Z","lastTransitionTime":"2020-04-29T10:50:51Z","reason":"KubeletHasNoDiskPressure","message":"kubelet - has no disk pressure"},{"type":"PIDPressure","status":"False","lastHeartbeatTime":"2020-04-29T10:52:12Z","lastTransitionTime":"2020-04-29T10:50:51Z","reason":"KubeletHasSufficientPID","message":"kubelet - has sufficient PID available"},{"type":"Ready","status":"True","lastHeartbeatTime":"2020-04-29T10:52:12Z","lastTransitionTime":"2020-04-29T10:50:51Z","reason":"KubeletReady","message":"kubelet - is posting ready status. AppArmor enabled"}],"addresses":[{"type":"Hostname","address":"aks-nodepool1-28230805-vmss000000"},{"type":"InternalIP","address":"10.240.0.4"}],"daemonEndpoints":{"kubeletEndpoint":{"Port":10250}},"nodeInfo":{"machineID":"86c63313e5c6482d80d8702de2e67010","systemUUID":"22E14129-D863-A04F-889A-C2BBCE1287F9","bootID":"cd54b12d-e4e2-4f13-b184-6d041ec85598","kernelVersion":"4.15.0-1077-azure","osImage":"Ubuntu - 16.04.6 LTS","containerRuntimeVersion":"docker://3.0.10+azure","kubeletVersion":"v1.15.10","kubeProxyVersion":"v1.15.10","operatingSystem":"linux","architecture":"amd64"},"images":[{"names":["mcr.microsoft.com/oss/kubernetes/hyperkube@sha256:77a141d66d8f3961928447bd1595e8af0e833eaa64a0f4813bf220a40c9c9893","mcr.microsoft.com/oss/kubernetes/hyperkube:v1.15.10-hotfix.20200326"],"sizeBytes":643025126},{"names":["mcr.microsoft.com/oss/kubernetes/hyperkube@sha256:4903a86f5a64b8bc997b744bbcb3976f9320cc2995334c9a294e9df7ab5d16a1","mcr.microsoft.com/oss/kubernetes/hyperkube:v1.15.10_f0.0.1"],"sizeBytes":643020934},{"names":["mcr.microsoft.com/oss/kubernetes/ingress/nginx-ingress-controller@sha256:2246064c965d8408cf794097a36cbed95262f63c800770ce32ac903df0df0c80","mcr.microsoft.com/oss/kubernetes/ingress/nginx-ingress-controller:0.19.0"],"sizeBytes":414090450},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod@sha256:1ab6e373673465a53b719ae3e3356b2b93b537351fe4cbf36e62327830a93585","mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod03022020"],"sizeBytes":396692153},{"names":["mcr.microsoft.com/azuremonitor/containerinsights/ciprod@sha256:6a00d818e129b956a22b723e5543a6cdad1431666c090ea5e3676001a921c539","mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod01072020"],"sizeBytes":396298129},{"names":["deis/hcp-tunnel-front@sha256:d237ae461a2f3f7d3f32c33b4d7b2f5fb1681c00b840e8515882c29267bc1c9b","deis/hcp-tunnel-front:v1.9.2-v4.0.11"],"sizeBytes":357377808},{"names":["deis/kube-svc-redirect@sha256:af50cfa03a6b02a4173f3adb476f403efde16193f91d02e2ae8123f57ee21204","deis/kube-svc-redirect:v1.0.7"],"sizeBytes":353963611},{"names":["deis/hcp-tunnel-front@sha256:cbd52a7489524e0389688fa9969d6e5c870500d3e5da33583b75bdcb75d40bbc","mcr.microsoft.com/aks/hcp/hcp-tunnel-front@sha256:cbd52a7489524e0389688fa9969d6e5c870500d3e5da33583b75bdcb75d40bbc","deis/hcp-tunnel-front:v1.9.2-v3.0.11","mcr.microsoft.com/aks/hcp/hcp-tunnel-front:v1.9.2-v3.0.11"],"sizeBytes":353663014},{"names":["mcr.microsoft.com/oss/kubernetes/autoscaler/cluster-proportional-autoscaler@sha256:dc8426f14b517d91272b62d18203475cfd50796d071c48925a662564361a885c","mcr.microsoft.com/oss/kubernetes/autoscaler/cluster-proportional-autoscaler:1.3.0_v0.0.5"],"sizeBytes":250775999},{"names":["mcr.microsoft.com/k8s/csi/azurefile-csi@sha256:3f48233e04580a4344d69921be1a38a0bb1616d0bf86ac3920e9d3c8cc805093","mcr.microsoft.com/k8s/csi/azurefile-csi:v0.3.0"],"sizeBytes":245146481},{"names":["mcr.microsoft.com/azure-application-gateway/kubernetes-ingress@sha256:9a8b2aafb2be07bbee231bd6af425975746a43a1f6b1456f7257d6982c5d6969","mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.0.1-rc3"],"sizeBytes":224310054},{"names":["mcr.microsoft.com/k8s/csi/azuredisk-csi@sha256:b3379ebfc891c17312ecaf299977144af6f6ed5180f0eaf79110add8d7381f75","mcr.microsoft.com/k8s/csi/azuredisk-csi:v0.4.0"],"sizeBytes":206475565},{"names":["mcr.microsoft.com/containernetworking/azure-npm@sha256:b2618daafe6fe4a5a78b9e35ecb98ad9795780f88a057876872b63366349281a","mcr.microsoft.com/containernetworking/azure-npm:v1.1.0"],"sizeBytes":155525259},{"names":["mcr.microsoft.com/containernetworking/azure-npm@sha256:0755a2743617712a62ad3e0352ba4ad4de807122642ca9a9e5b409a406429809","mcr.microsoft.com/containernetworking/azure-npm:v1.0.33"],"sizeBytes":152850571},{"names":["mcr.microsoft.com/containernetworking/azure-npm@sha256:2bcb232b4d8d21b4e5f90dbc088766968edef7daf6073c2ae6818848cc01450d","mcr.microsoft.com/containernetworking/azure-npm:v1.0.32"],"sizeBytes":133157858},{"names":["mcr.microsoft.com/oss/open-policy-agent/gatekeeper@sha256:0572ee453918f23f7950168f1aa563a354d65d12bee207a100de64ea172ecd5e","mcr.microsoft.com/oss/open-policy-agent/gatekeeper:v2.0.1"],"sizeBytes":129068206},{"names":["mcr.microsoft.com/containernetworking/azure-npm@sha256:266aef2236e0144078dcddb308ab9fbed5e30412db00b2d7e1e9f6bcba6d6835","mcr.microsoft.com/containernetworking/azure-npm:v1.0.30"],"sizeBytes":125356074},{"names":["mcr.microsoft.com/containernetworking/networkmonitor@sha256:d875511410502c3e37804e1f313cc2b0a03d7a03d3d5e6adaf8994b753a76f8e","mcr.microsoft.com/containernetworking/networkmonitor:v0.0.6"],"sizeBytes":123663837},{"names":["mcr.microsoft.com/oss/kubernetes/kubernetes-dashboard@sha256:dca7e06333b41acd5ba4c6554d93d7b57cf74a1f2c90a72dbbe39cbb40f86979","mcr.microsoft.com/oss/kubernetes/kubernetes-dashboard:v1.10.1"],"sizeBytes":121711221},{"names":["k8s.gcr.io/node-problem-detector@sha256:276335fa25a703615cc2f2cdc51ba693fac4bdd70baa63f9cbf228291defd776","k8s.gcr.io/node-problem-detector:v0.8.0"],"sizeBytes":108715243},{"names":["mcr.microsoft.com/containernetworking/networkmonitor@sha256:1ab5ce423894918c4fd7ec5533837e943dc0fb4c762c3f751486359348d4f8c9","mcr.microsoft.com/containernetworking/networkmonitor:v0.0.7"],"sizeBytes":104673601},{"names":["mcr.microsoft.com/oss/kubernetes/dashboard@sha256:85fbaa5c8fd7ffc5723965685d9467a89e2148206019d1a8979cec1f2d25faef","mcr.microsoft.com/oss/kubernetes/dashboard:v2.0.0-beta8"],"sizeBytes":90835430},{"names":["microsoft/virtual-kubelet@sha256:efc397d741d7e590c892c0ea5dccc9a800656c3adb95da4dae25c1cdd5eb6d9f","mcr.microsoft.com/oss/virtual-kubelet/virtual-kubelet@sha256:88974b99c1c19085f200b9a69942579a1d160924cff05c9143c1390f1a8d9fb2","microsoft/virtual-kubelet:latest","mcr.microsoft.com/oss/virtual-kubelet/virtual-kubelet:latest"],"sizeBytes":87436458},{"names":["mcr.microsoft.com/oss/kubernetes/k8s-dns-kube-dns@sha256:c1c11d18f192f4c8616eb5481b21114c331ea8de389e433f5f141bc0e5f58a3b","mcr.microsoft.com/oss/kubernetes/k8s-dns-kube-dns:1.15.4"],"sizeBytes":86980681},{"names":["mcr.microsoft.com/oss/kubernetes/ip-masq-agent@sha256:e9a6a4b30f278713486fb9bbb5eb4d691323e95be387f5a5a84500d5318dcb6e","mcr.microsoft.com/oss/kubernetes/ip-masq-agent:v2.0.0_v0.0.5"],"sizeBytes":86934309},{"names":["mcr.microsoft.com/oss/calico/cni@sha256:2eced7afb276895062ca2b68f0c45c2184d4621f19f2c72455b3335117db3d9c","mcr.microsoft.com/oss/calico/cni:v3.5.0"],"sizeBytes":83633850},{"names":["gcr.io/kubernetes-helm/tiller@sha256:d52b34a9f9aeec1cf74155ca51fcbb5d872a705914565c782be4531790a4ee0e","gcr.io/kubernetes-helm/tiller:v2.13.1"],"sizeBytes":82105090},{"names":["mcr.microsoft.com/containernetworking/azure-vnet-telemetry@sha256:427589864fb4a53866103951a81bb47e9481bbc75325eb5898d57eecf256701b","mcr.microsoft.com/containernetworking/azure-vnet-telemetry:v1.0.30"],"sizeBytes":78949814},{"names":["mcr.microsoft.com/oss/kubernetes/k8s-dns-dnsmasq-nanny@sha256:47660e5a9967a32e688ec78caa4b87498f161a41b6284edd43e9058a30295a47","mcr.microsoft.com/oss/kubernetes/k8s-dns-dnsmasq-nanny:1.15.4"],"sizeBytes":77756591},{"names":["mcr.microsoft.com/oss/kubernetes/heapster@sha256:675d882ed4d2e68af7f06637a6a479bfae20d2bf0b12764d9d9649c9b3d1e3e1","mcr.microsoft.com/oss/kubernetes/heapster:v1.5.1"],"sizeBytes":75318380},{"names":["mcr.microsoft.com/oss/kubernetes/heapster@sha256:badda1239d6d3de3f780812e068d76e5ecdfe993f0e64c1f290ba6f6a21a01de","mcr.microsoft.com/oss/kubernetes/heapster:v1.5.3"],"sizeBytes":75318342},{"names":["mcr.microsoft.com/oss/kubernetes/heapster@sha256:b25c594dd0a05851a977537e0dd9056707056b585471e4da77710d911f8c83c0","mcr.microsoft.com/oss/kubernetes/heapster:v1.5.4"],"sizeBytes":75318342},{"names":["mcr.microsoft.com/oss/kubernetes/rescheduler@sha256:be0ca4d2e7958abb116fa2d114609fd3d66a9d48b7c7a51a7c8088c43065b8a6","mcr.microsoft.com/oss/kubernetes/rescheduler:v0.3.1"],"sizeBytes":74659350},{"names":["gcr.io/kubernetes-helm/tiller@sha256:f6d8f4ab9ba993b5f5b60a6edafe86352eabe474ffeb84cb6c79b8866dce45d1","gcr.io/kubernetes-helm/tiller:v2.11.0"],"sizeBytes":71821984},{"names":["mcr.microsoft.com/oss/calico/node@sha256:3101acc2162dff74957ddc1c2b904f578d55aa27e2bc033e0531992592757570","mcr.microsoft.com/oss/calico/node:v3.5.0"],"sizeBytes":71710195},{"names":["gcr.io/kubernetes-helm/tiller@sha256:394fb7d5f2fbaca54f6a0dec387cef926f6ae359786c89f7da67db173b97a322","gcr.io/kubernetes-helm/tiller:v2.8.1"],"sizeBytes":71509364},{"names":["mcr.microsoft.com/oss/kubernetes/external-dns@sha256:c535c1a165b04af5eb93393272f6a5104a82b868f1b7e9c055055f8b1e7d2836","mcr.microsoft.com/oss/kubernetes/external-dns:v0.6.0-hotfix-20200228"],"sizeBytes":64446420},{"names":["nvidia/k8s-device-plugin@sha256:41b3531d338477d26eb1151c15d0bea130d31e690752315a5205d8094439b0a6","nvidia/k8s-device-plugin:1.11"],"sizeBytes":63138633},{"names":["nvidia/k8s-device-plugin@sha256:327487db623cc75bdff86e56942f4af280e5f3de907339d0141fdffaeef342b8","nvidia/k8s-device-plugin:1.10"],"sizeBytes":63130377},{"names":["mcr.microsoft.com/oss/open-policy-agent/gatekeeper@sha256:9d6a9a258270710b22f38ca3a44cb9f0604de8be96b82dd121c9c70548679e4e","mcr.microsoft.com/oss/open-policy-agent/gatekeeper:v3.1.0-beta.7"],"sizeBytes":53650918},{"names":["mcr.microsoft.com/oss/kubernetes/k8s-dns-kube-dns@sha256:1b24234b0418e280cfb08bfbd75c2461ee56296327efe481f4babff83a84b250","mcr.microsoft.com/oss/kubernetes/k8s-dns-kube-dns:1.14.13"],"sizeBytes":51157394},{"names":["quay.io/k8scsi/csi-attacher@sha256:6425af42299ba211de685a94953a5c4c6fcbfd2494e445437dd9ebd70b28bf8a","quay.io/k8scsi/csi-attacher:v1.0.1"],"sizeBytes":50168619},{"names":["mcr.microsoft.com/oss/kubernetes/k8s-dns-kube-dns@sha256:8601f2ab51558239fab20bd7dc1323da55e47f8ebc4ab6ca13eeea3c3fe1e363","mcr.microsoft.com/oss/kubernetes/k8s-dns-kube-dns:1.14.5"],"sizeBytes":49387411},{"names":["mcr.microsoft.com/oss/calico/typha@sha256:268e0b3e3e9935edd22bd5355dc10f8d823b6b2f02ae1093ee589880409012d8","mcr.microsoft.com/oss/calico/typha:v3.5.0"],"sizeBytes":49374661},{"names":["mcr.microsoft.com/oss/kubernetes/k8s-dns-kube-dns@sha256:d8129c9ed08a7d6ec4bd5c80b7bf70e35779e25680fce2a6c47900a0fd6a2439","mcr.microsoft.com/oss/kubernetes/k8s-dns-kube-dns:1.15.0"],"sizeBytes":49052023},{"names":["mcr.microsoft.com/oss/kubernetes/rescheduler@sha256:6fae2968a89a349a6ae580f8f54d23e33117cf360bcb984d4b350f8dcbcc7877","mcr.microsoft.com/oss/kubernetes/rescheduler:v0.4.0"],"sizeBytes":48973149},{"names":["quay.io/k8scsi/csi-provisioner@sha256:7d7d832832b536f32e899669a32d4fb75ab972da20c21a2bd6043eb498cf58e8","quay.io/k8scsi/csi-provisioner:v1.0.1"],"sizeBytes":47974767},{"names":["quay.io/k8scsi/csi-cluster-driver-registrar@sha256:fafd75ae5442f192cfa8c2e792903aee30d5884b62e802e4464b0a895d21e3ef","quay.io/k8scsi/csi-cluster-driver-registrar:v1.0.1"],"sizeBytes":45874691},{"names":["mcr.microsoft.com/oss/kubernetes/autoscaler/cluster-proportional-autoscaler@sha256:ee11d97e04758e799643775b3f77ea0702a248ae128ea97a28a9d205d38c81dd","mcr.microsoft.com/oss/kubernetes/autoscaler/cluster-proportional-autoscaler:1.3.0"],"sizeBytes":45844959},{"names":["mcr.microsoft.com/oss/kubernetes/coredns@sha256:14c8d39064e196620ee8eb9856d12646643425ede35c5c910aa798e147f44cee","mcr.microsoft.com/oss/kubernetes/coredns:1.5.0"],"sizeBytes":42488424}],"config":{}}}]} - - ' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/cc-000002","name":"cc-000002","type":"microsoft.kubernetes/connectedclusters","location":"eastus2euap","tags":{"foo":"doo"},"systemData":{"createdBy":"akkeshar@microsoft.com","createdByType":"User","createdAt":"2021-08-01T13:03:59.1455606Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2021-08-01T13:05:05.6129086Z"},"identity":{"principalId":"a45968bd-00ac-44c5-a4d8-0a4c8f71603f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","agentPublicKeyCertificate":"MIICCgKCAgEAw7a556P1iGTnOffgc46vmftHKgA7bH+mVgRTzYe0g4rM4p1uiA4jQ2Bo/soSCqXQVG+Q0WIqai60rOJu1G49AsXrGuw7WBy7KUv+GTQFl7z5SWuPVW96WMzE0qLBVypMc6ogr44ismanyFhGzLSv+METP73iV1WiQcEf1D9FMgGnWhRlGOrj3eB4H2gBkApYHt5oqm9CwQN/Kfon3K2JY7oxOxowJz3GRVIVtB6h7L+IUbBg1/fRnpW5m8/s6fRyT+1cfJi8A4sfKB0GUs+DyNWGtqJMtO/pYoPJk2SpKm5uSFOgaiKcG6Iw8tXltmEzgy+KuaIX5inyo38ySXBOzIMrx8I2ojx/hYvt1NEdC8pimLE3sactu5B2TfdgRzD+BjLJifdFUnrUSxeOCGgyIfm8OMjPpt1iVRqJJFPqgflUDOb/sHBP+00cqO3K2tyoE1OQJllSWk3UBstY2f8Vhl4CMhpOURjAxKvXdscED8/a7jlqvcThYNXUIg+bYaSXwjv0+ukEtGz8ivwhwCqKQSSIssL/HYRosN+wCMpJT85i1qcl7DBpSzko6cfAL/HWVuPzluGlO2S7kTHHbGWkG3iCKHpBVg74+LRoc7T+GLSKJfgHxDA19zxoYGxNhP/5mO03gBq+WS5fr+yKTOhLf9EgaNtuqOkhaDiJZVKSrzUCAwEAAQ==","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.20.7","totalNodeCount":1,"agentVersion":"1.3.8","totalCoreCount":2,"lastConnectivityTime":"2021-08-01T13:04:56.355Z","managedIdentityCertificateExpirationTime":"2021-10-30T12:59:00Z"}}' headers: - audit-id: - - 5d405f8a-6b30-43aa-bb04-0fe29cb5edfd + cache-control: + - no-cache + content-length: + - '1726' content-type: - - application/json + - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:52:21 GMT + - Sun, 01 Aug 2021 13:05:30 GMT + etag: + - '"0300e7a5-0000-3400-0000-61069c010000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains transfer-encoding: - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK @@ -1387,22 +1242,27 @@ interactions: User-Agent: - OpenAPI-Generator/11.0.0/python method: GET - uri: https://cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io/version/ + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/apis/networking.k8s.io/v1/ response: body: - string: "{\n \"major\": \"1\",\n \"minor\": \"15\",\n \"gitVersion\": \"v1.15.10\",\n - \ \"gitCommit\": \"059c666b8d0cce7219d2958e6ecc3198072de9bc\",\n \"gitTreeState\": - \"clean\",\n \"buildDate\": \"2020-04-03T15:17:29Z\",\n \"goVersion\": \"go1.12.12\",\n - \ \"compiler\": \"gc\",\n \"platform\": \"linux/amd64\"\n}" + string: '{"kind":"APIResourceList","apiVersion":"v1","groupVersion":"networking.k8s.io/v1","resources":[{"name":"ingressclasses","singularName":"","namespaced":false,"kind":"IngressClass","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"storageVersionHash":"6upRfBq0FOI="},{"name":"ingresses","singularName":"","namespaced":true,"kind":"Ingress","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ing"],"storageVersionHash":"ZOAfGflaKd0="},{"name":"ingresses/status","singularName":"","namespaced":true,"kind":"Ingress","verbs":["get","patch","update"]},{"name":"networkpolicies","singularName":"","namespaced":true,"kind":"NetworkPolicy","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["netpol"],"storageVersionHash":"YpfwF18m1G8="}]} + + ' headers: audit-id: - - e8327218-93be-4c61-a4a4-fe966edf40da + - 41ea184a-2457-4823-8c34-cbf3280d93c4 + cache-control: + - no-cache, private content-length: - - '265' + - '864' content-type: - application/json date: - - Wed, 29 Apr 2020 10:52:22 GMT + - Sun, 01 Aug 2021 13:05:31 GMT + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK @@ -1416,79 +1276,82 @@ interactions: User-Agent: - OpenAPI-Generator/11.0.0/python method: GET - uri: https://cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io/api/v1/namespaces/azure-arc/configmaps/azure-clusterconfig + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces/azure-arc/configmaps/azure-clusterconfig response: body: - string: '{"kind":"ConfigMap","apiVersion":"v1","metadata":{"name":"azure-clusterconfig","namespace":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc/configmaps/azure-clusterconfig","uid":"0700c00c-f24e-4819-a5d3-fabaa89c27d3","resourceVersion":"898","creationTimestamp":"2020-04-29T10:52:15Z"},"data":{"AZURE_ARC_AGENT_VERSION":"0.1.19","AZURE_REGION":"eastus2euap","AZURE_RESOURCE_GROUP":"akkeshar-test2","AZURE_RESOURCE_NAME":"cc-000002","AZURE_SUBSCRIPTION_ID":"1bfbb5d0-917e-4346-9026-1d3b344417f5","AZURE_TENANT_ID":"72f988bf-86f1-41af-91ab-2d7cd011db47","CLUSTER_TYPE":"ConnectedClusters","FLUX_CLIENT_DEFAULT_LOCATION":"azurearcfork8s.azurecr.io/arc-preview/fluxctl:0.1.3"}} + string: '{"kind":"ConfigMap","apiVersion":"v1","metadata":{"name":"azure-clusterconfig","namespace":"azure-arc","uid":"efd2522c-7327-4c26-9ad0-b6fd6f683d5d","resourceVersion":"815","creationTimestamp":"2021-08-01T13:04:15Z","labels":{"app.kubernetes.io/managed-by":"Helm"},"annotations":{"meta.helm.sh/release-name":"azure-arc","meta.helm.sh/release-namespace":"default"},"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:04:15Z","fieldsType":"FieldsV1","fieldsV1":{"f:data":{".":{},"f:ARC_AGENT_HELM_CHART_NAME":{},"f:ARC_AGENT_RELEASE_TRAIN":{},"f:AZURE_ARC_AGENT_VERSION":{},"f:AZURE_ARC_AUTOUPDATE":{},"f:AZURE_ARC_HELM_NAMESPACE":{},"f:AZURE_ARC_RELEASE_NAME":{},"f:AZURE_ENVIRONMENT":{},"f:AZURE_REGION":{},"f:AZURE_RESOURCE_GROUP":{},"f:AZURE_RESOURCE_NAME":{},"f:AZURE_SUBSCRIPTION_ID":{},"f:AZURE_TENANT_ID":{},"f:CLUSTER_CONNECT_AGENT_ENABLED":{},"f:CLUSTER_TYPE":{},"f:DEBUG_LOGGING":{},"f:EXTENSION_OPERATOR_ENABLED":{},"f:FLUX_CLIENT_DEFAULT_LOCATION":{},"f:FLUX_UPSTREAM_SERVICE_ENABLED":{},"f:GITOPS_ENABLED":{},"f:HELM_AUTO_UPDATE_CHECK_FREQUENCY_IN_MINUTES":{},"f:IS_CLIENT_SECRET_A_TOKEN":{},"f:KUBERNETES_DISTRO":{},"f:KUBERNETES_INFRA":{},"f:MANAGED_IDENTITY_AUTH":{},"f:NO_AUTH_HEADER_DATA_PLANE":{},"f:ONBOARDING_SECRET_NAME":{},"f:ONBOARDING_SECRET_NAMESPACE":{},"f:TAGS":{}},"f:metadata":{"f:annotations":{".":{},"f:meta.helm.sh/release-name":{},"f:meta.helm.sh/release-namespace":{}},"f:labels":{".":{},"f:app.kubernetes.io/managed-by":{}}}}}]},"data":{"ARC_AGENT_HELM_CHART_NAME":"azure-arc-k8sagents","ARC_AGENT_RELEASE_TRAIN":"stable","AZURE_ARC_AGENT_VERSION":"1.3.8","AZURE_ARC_AUTOUPDATE":"true","AZURE_ARC_HELM_NAMESPACE":"default","AZURE_ARC_RELEASE_NAME":"azure-arc","AZURE_ENVIRONMENT":"AZUREPUBLICCLOUD","AZURE_REGION":"eastus2euap","AZURE_RESOURCE_GROUP":"akkeshar","AZURE_RESOURCE_NAME":"cc-000002","AZURE_SUBSCRIPTION_ID":"1bfbb5d0-917e-4346-9026-1d3b344417f5","AZURE_TENANT_ID":"72f988bf-86f1-41af-91ab-2d7cd011db47","CLUSTER_CONNECT_AGENT_ENABLED":"true","CLUSTER_TYPE":"ConnectedClusters","DEBUG_LOGGING":"false","EXTENSION_OPERATOR_ENABLED":"true","FLUX_CLIENT_DEFAULT_LOCATION":"mcr.microsoft.com/azurearck8s/arc-preview/fluxctl:0.1.17","FLUX_UPSTREAM_SERVICE_ENABLED":"true","GITOPS_ENABLED":"true","HELM_AUTO_UPDATE_CHECK_FREQUENCY_IN_MINUTES":"60","IS_CLIENT_SECRET_A_TOKEN":"false","KUBERNETES_DISTRO":"aks","KUBERNETES_INFRA":"azure","MANAGED_IDENTITY_AUTH":"true","NO_AUTH_HEADER_DATA_PLANE":"false","ONBOARDING_SECRET_NAME":"azure-arc-connect-privatekey","ONBOARDING_SECRET_NAMESPACE":"azure-arc","TAGS":"map[]"}} ' headers: audit-id: - - 2a695abc-60aa-46d1-b445-c9f286044da3 - content-length: - - '680' + - 6b16bbf8-69ab-4d8c-b347-d7d2e72a60ca + cache-control: + - no-cache, private content-type: - application/json date: - - Wed, 29 Apr 2020 10:52:22 GMT + - Sun, 01 Aug 2021 13:05:36 GMT + transfer-encoding: + - chunked + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK - request: - body: '{"tags": {"foo": "doo"}, "location": "eastus2euap", "identity": {"type": - "SystemAssigned"}, "properties": {"agentPublicKeyCertificate": "MIICCgKCAgEA3NZ1TUlvFC3Z9HK1SlxEjvjSIeXYisKQHjjsP9vnjlBmgLVmEa9VLG5DbnV8994xyj2cnJYyXlwFRrX1MpsqvPDV3mA2RcN8nqs38lGppn6j9NkNp5h2++ApZO04TDm1Q20lFhgTOFfZ74uNaQIIwVlunyG7oVYdQc+v/89v8eMPLwSZ9vLCv12LTO6g3s7uVsqKKn1D9YgQrRqIVXfhrVAgshPG9VdQDwIyp2UO9VHheN0MmhO+5WqFgrsqSz3i546IrE1S48yiPf5Xg2KIxpgE0ONu4enIfa/iSD1+TnBi23rVGCt7XdmZvd1TduJYGfmC5XCtwVLlWGTqS0FYXgsQCgvwGSJ2xCXd3KnBiuj5dsR+nZ5FEmJ7UKk/6aghLOarwUHl+b5nCzA4pxb50y3oBiQR41jEExbNnjnv99NXeKWvfwYtfVwQgXoYuIw0CZ3q0KQRs+wb0mwZ0aG96vqpivo6KygmOu++/zLGBsFeTTQ3jYcF50D127xglV3XO+Q5qJJ/PchQ6WMUKD2LXxbyo4c/TWneeyz7AUk6qkuEH9Pabm4k9gYcvBkjzWR+Vsmp2N721u6qLQvwbIFFKs0fjj6xt71Nus2Tl1U9gon4HIhlT/3vhGJHqZZ16yzElduAoNAMGS8B36KPBEcHxiwouqsr8Ib8GEhfZI218b8CAwEAAQ==", - "aadProfile": {"tenantId": "", "clientAppId": "", "serverAppId": ""}}}' + body: null headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedk8s connect + - connectedk8s delete Connection: - keep-alive Content-Length: - - '914' - Content-Type: - - application/json; charset=utf-8 + - '0' ParameterSetName: - - -g -n -l --tags --kube-config + - -g -n --kube-config -y User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-hybridkubernetes/0.1.1 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar-test2/providers/Microsoft.Kubernetes/connectedClusters/cc-000002?api-version=2020-01-01-preview + - AZURECLI/2.26.1 azsdk-python-mgmt-hybridkubernetes/1.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/cc-000002?api-version=2021-03-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2/providers/Microsoft.Kubernetes/connectedClusters/cc-000002","name":"cc-000002","type":"Microsoft.Kubernetes/connectedClusters","location":"eastus2euap","tags":{"foo":"doo"},"identity":{"type":"SystemAssigned","principalId":"5f47d735-44b2-4169-9b2b-03c87ce648b5","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"properties":{"provisioningState":"Accepted","agentPublicKeyCertificate":"MIICCgKCAgEA3NZ1TUlvFC3Z9HK1SlxEjvjSIeXYisKQHjjsP9vnjlBmgLVmEa9VLG5DbnV8994xyj2cnJYyXlwFRrX1MpsqvPDV3mA2RcN8nqs38lGppn6j9NkNp5h2++ApZO04TDm1Q20lFhgTOFfZ74uNaQIIwVlunyG7oVYdQc+v/89v8eMPLwSZ9vLCv12LTO6g3s7uVsqKKn1D9YgQrRqIVXfhrVAgshPG9VdQDwIyp2UO9VHheN0MmhO+5WqFgrsqSz3i546IrE1S48yiPf5Xg2KIxpgE0ONu4enIfa/iSD1+TnBi23rVGCt7XdmZvd1TduJYGfmC5XCtwVLlWGTqS0FYXgsQCgvwGSJ2xCXd3KnBiuj5dsR+nZ5FEmJ7UKk/6aghLOarwUHl+b5nCzA4pxb50y3oBiQR41jEExbNnjnv99NXeKWvfwYtfVwQgXoYuIw0CZ3q0KQRs+wb0mwZ0aG96vqpivo6KygmOu++/zLGBsFeTTQ3jYcF50D127xglV3XO+Q5qJJ/PchQ6WMUKD2LXxbyo4c/TWneeyz7AUk6qkuEH9Pabm4k9gYcvBkjzWR+Vsmp2N721u6qLQvwbIFFKs0fjj6xt71Nus2Tl1U9gon4HIhlT/3vhGJHqZZ16yzElduAoNAMGS8B36KPBEcHxiwouqsr8Ib8GEhfZI218b8CAwEAAQ==","aadProfile":{"tenantId":"","clientAppId":"","serverAppId":""}}}' + string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Kubernetes/locations/EastUS2EUAP/operationStatuses/c5b0c990-93c3-4358-a83f-487e9e6e5124?api-version=2020-01-01-preview + - https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS2EUAP/operationStatuses/d3e8ef8b-34ae-4a08-b730-a65d2c12f68a?api-version=2021-03-01 cache-control: - no-cache content-length: - - '1252' + - '4' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:52:38 GMT + - Sun, 01 Aug 2021 13:05:39 GMT + etag: + - '"03000da6-0000-3400-0000-61069c230000"' expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS2EUAP/operationStatuses/d3e8ef8b-34ae-4a08-b730-a65d2c12f68a?api-version=2021-03-01 pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' status: - code: 201 - message: Created + code: 202 + message: Accepted - request: body: null headers: @@ -1499,25 +1362,27 @@ interactions: User-Agent: - OpenAPI-Generator/11.0.0/python method: GET - uri: https://cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io/api/v1/namespaces/azure-arc/pods + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc response: body: - string: '{"kind":"PodList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces/azure-arc/pods","resourceVersion":"999"},"items":[{"metadata":{"name":"config-agent-647ff874bc-zblvl","generateName":"config-agent-647ff874bc-","namespace":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc/pods/config-agent-647ff874bc-zblvl","uid":"74f59a99-26ca-4526-9ca5-c9cb04c1c557","resourceVersion":"963","creationTimestamp":"2020-04-29T10:52:17Z","labels":{"app.kubernetes.io/component":"config-agent","app.kubernetes.io/name":"azure-arc-k8s","pod-template-hash":"647ff874bc"},"ownerReferences":[{"apiVersion":"apps/v1","kind":"ReplicaSet","name":"config-agent-647ff874bc","uid":"10f59238-5b3e-46de-a466-93becc3df125","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"azure-arc-operatorsa-token-4tztb","secret":{"secretName":"azure-arc-operatorsa-token-4tztb","defaultMode":420}}],"containers":[{"name":"kube-rbac-proxy","image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","args":["--secure-listen-address=0.0.0.0:8443","--upstream=http://127.0.0.1:8080/","--logtostderr=true","--v=10"],"ports":[{"name":"https","containerPort":8443,"protocol":"TCP"}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"},{"name":"config-agent","image":"azurearcfork8s.azurecr.io/arc-preview/config-agent:0.1.19","env":[{"name":"AZURE_RESOURCE_NAME","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_NAME"}}},{"name":"AZURE_SUBSCRIPTION_ID","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_SUBSCRIPTION_ID"}}},{"name":"AZURE_RESOURCE_GROUP","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_GROUP"}}},{"name":"AZURE_REGION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_REGION"}}},{"name":"CLUSTER_TYPE","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"CLUSTER_TYPE"}}},{"name":"FLUX_CLIENT_DEFAULT_LOCATION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"FLUX_CLIENT_DEFAULT_LOCATION"}}}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","serviceAccountName":"azure-arc-operatorsa","serviceAccount":"azure-arc-operatorsa","nodeName":"aks-nodepool1-28230805-vmss000000","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Pending","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:19Z"},{"type":"Ready","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:19Z","reason":"ContainersNotReady","message":"containers - with unready status: [kube-rbac-proxy config-agent]"},{"type":"ContainersReady","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:19Z","reason":"ContainersNotReady","message":"containers - with unready status: [kube-rbac-proxy config-agent]"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:17Z"}],"hostIP":"10.240.0.4","startTime":"2020-04-29T10:52:19Z","containerStatuses":[{"name":"config-agent","state":{"waiting":{"reason":"ContainerCreating"}},"lastState":{},"ready":false,"restartCount":0,"image":"azurearcfork8s.azurecr.io/arc-preview/config-agent:0.1.19","imageID":""},{"name":"kube-rbac-proxy","state":{"waiting":{"reason":"ContainerCreating"}},"lastState":{},"ready":false,"restartCount":0,"image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","imageID":""}],"qosClass":"BestEffort"}},{"metadata":{"name":"controller-manager-55d5d4457c-v9lzt","generateName":"controller-manager-55d5d4457c-","namespace":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc/pods/controller-manager-55d5d4457c-v9lzt","uid":"6a9338c1-4f1b-46e0-a642-e9af0cc4d856","resourceVersion":"957","creationTimestamp":"2020-04-29T10:52:17Z","labels":{"control-plane":"controller-manager","pod-template-hash":"55d5d4457c"},"ownerReferences":[{"apiVersion":"apps/v1","kind":"ReplicaSet","name":"controller-manager-55d5d4457c","uid":"15af7726-f7ff-4c3d-a7a4-03370fb43e34","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"azure-arc-operatorsa-token-4tztb","secret":{"secretName":"azure-arc-operatorsa-token-4tztb","defaultMode":420}}],"containers":[{"name":"kube-rbac-proxy","image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","args":["--secure-listen-address=0.0.0.0:8443","--upstream=http://127.0.0.1:8080/","--logtostderr=true","--v=10"],"ports":[{"name":"https","containerPort":8443,"protocol":"TCP"}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"},{"name":"manager","image":"azurearcfork8s.azurecr.io/arc-preview/configoperator:0.1.19","command":["/data/manager"],"args":["--metrics-addr=127.0.0.1:8080","--enable-leader-election"],"env":[{"name":"AZURE_RESOURCE_NAME","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_NAME"}}},{"name":"AZURE_SUBSCRIPTION_ID","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_SUBSCRIPTION_ID"}}},{"name":"AZURE_RESOURCE_GROUP","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_GROUP"}}},{"name":"AZURE_REGION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_REGION"}}},{"name":"CLUSTER_TYPE","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"CLUSTER_TYPE"}}}],"resources":{"limits":{"cpu":"100m","memory":"300Mi"},"requests":{"cpu":"100m","memory":"100Mi"}},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":10,"dnsPolicy":"ClusterFirst","serviceAccountName":"azure-arc-operatorsa","serviceAccount":"azure-arc-operatorsa","nodeName":"aks-nodepool1-28230805-vmss000000","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Pending","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:18Z"},{"type":"Ready","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:18Z","reason":"ContainersNotReady","message":"containers - with unready status: [kube-rbac-proxy manager]"},{"type":"ContainersReady","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:18Z","reason":"ContainersNotReady","message":"containers - with unready status: [kube-rbac-proxy manager]"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:17Z"}],"hostIP":"10.240.0.4","startTime":"2020-04-29T10:52:18Z","containerStatuses":[{"name":"kube-rbac-proxy","state":{"waiting":{"reason":"ContainerCreating"}},"lastState":{},"ready":false,"restartCount":0,"image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","imageID":""},{"name":"manager","state":{"waiting":{"reason":"ContainerCreating"}},"lastState":{},"ready":false,"restartCount":0,"image":"azurearcfork8s.azurecr.io/arc-preview/configoperator:0.1.19","imageID":""}],"qosClass":"Burstable"}},{"metadata":{"name":"metrics-agent-58694fc95c-mfvr9","generateName":"metrics-agent-58694fc95c-","namespace":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc/pods/metrics-agent-58694fc95c-mfvr9","uid":"e207a5ec-f4d6-42fd-90cb-34a21a139dcb","resourceVersion":"992","creationTimestamp":"2020-04-29T10:52:17Z","labels":{"app.kubernetes.io/component":"metrics-agent","app.kubernetes.io/name":"azure-arc-k8s","pod-template-hash":"58694fc95c"},"ownerReferences":[{"apiVersion":"apps/v1","kind":"ReplicaSet","name":"metrics-agent-58694fc95c","uid":"e0be435d-3c4c-4a14-86bf-421d9eecb317","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"azure-arc-operatorsa-token-4tztb","secret":{"secretName":"azure-arc-operatorsa-token-4tztb","defaultMode":420}}],"containers":[{"name":"metrics-agent","image":"azurearcfork8s.azurecr.io/arc-preview/metrics-agent:0.1.19","env":[{"name":"AZURE_RESOURCE_NAME","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_NAME"}}},{"name":"AZURE_SUBSCRIPTION_ID","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_SUBSCRIPTION_ID"}}},{"name":"AZURE_RESOURCE_GROUP","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_GROUP"}}},{"name":"AZURE_REGION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_REGION"}}},{"name":"CLUSTER_TYPE","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"CLUSTER_TYPE"}}}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","serviceAccountName":"azure-arc-operatorsa","serviceAccount":"azure-arc-operatorsa","nodeName":"aks-nodepool1-28230805-vmss000000","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Running","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:18Z"},{"type":"Ready","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:36Z"},{"type":"ContainersReady","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:36Z"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:17Z"}],"hostIP":"10.240.0.4","podIP":"10.244.0.9","startTime":"2020-04-29T10:52:18Z","containerStatuses":[{"name":"metrics-agent","state":{"running":{"startedAt":"2020-04-29T10:52:34Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"azurearcfork8s.azurecr.io/arc-preview/metrics-agent:0.1.19","imageID":"docker-pullable://azurearcfork8s.azurecr.io/arc-preview/metrics-agent@sha256:47f694735b320866359942eecca0e45e6539a530da5721c38c5e80d02e26463b","containerID":"docker://9e8b7fd7547c87930b89297534990520c89a5ced5fd49850b1a01038592e6ad6"}],"qosClass":"BestEffort"}}]} + string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"resourceVersion":"1573"},"items":[{"metadata":{"name":"azure-arc","uid":"1ad99091-8ee1-408f-898a-7ec198c6bf95","resourceVersion":"1572","creationTimestamp":"2021-08-01T13:04:15Z","deletionTimestamp":"2021-08-01T13:05:55Z","labels":{"admission.policy.azure.com/ignore":"true","app.kubernetes.io/managed-by":"Helm","control-plane":"true"},"annotations":{"meta.helm.sh/release-name":"azure-arc","meta.helm.sh/release-namespace":"default"},"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:04:15Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:meta.helm.sh/release-name":{},"f:meta.helm.sh/release-namespace":{}},"f:labels":{".":{},"f:admission.policy.azure.com/ignore":{},"f:app.kubernetes.io/managed-by":{},"f:control-plane":{}}},"f:status":{"f:phase":{}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating"}}]} ' headers: audit-id: - - 4a89b536-1243-4abc-bc44-69a1c29cfe29 + - fd63b403-a45e-41f6-8315-3e6a1d86d663 + cache-control: + - no-cache, private + content-length: + - '973' content-type: - application/json date: - - Wed, 29 Apr 2020 10:52:42 GMT - transfer-encoding: - - chunked + - Sun, 01 Aug 2021 13:05:56 GMT + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK @@ -1526,45 +1391,71 @@ interactions: headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - connectedk8s connect - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --kube-config + Content-Type: + - application/json User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-hybridkubernetes/0.1.1 Azure-SDK-For-Python AZURECLI/2.5.0 + - OpenAPI-Generator/11.0.0/python method: GET - uri: https://management.azure.com/providers/Microsoft.Kubernetes/locations/EastUS2EUAP/operationStatuses/c5b0c990-93c3-4358-a83f-487e9e6e5124?api-version=2020-01-01-preview + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc response: body: - string: '{"id":"/providers/Microsoft.Kubernetes/locations/EastUS2EUAP/operationStatuses/c5b0c990-93c3-4358-a83f-487e9e6e5124","name":"c5b0c990-93c3-4358-a83f-487e9e6e5124","status":"Succeeded","startTime":"2020-04-29T10:52:33.3793399Z","properties":{"provisioningState":"Succeeded"}}' + string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"resourceVersion":"1629"},"items":[{"metadata":{"name":"azure-arc","uid":"1ad99091-8ee1-408f-898a-7ec198c6bf95","resourceVersion":"1572","creationTimestamp":"2021-08-01T13:04:15Z","deletionTimestamp":"2021-08-01T13:05:55Z","labels":{"admission.policy.azure.com/ignore":"true","app.kubernetes.io/managed-by":"Helm","control-plane":"true"},"annotations":{"meta.helm.sh/release-name":"azure-arc","meta.helm.sh/release-namespace":"default"},"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:04:15Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:meta.helm.sh/release-name":{},"f:meta.helm.sh/release-namespace":{}},"f:labels":{".":{},"f:admission.policy.azure.com/ignore":{},"f:app.kubernetes.io/managed-by":{},"f:control-plane":{}}},"f:status":{"f:phase":{}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating"}}]} + + ' headers: + audit-id: + - 4069ae9d-f811-45e5-af0b-fd5a35841cd5 cache-control: - - no-cache + - no-cache, private content-length: - - '274' + - '973' content-type: - - application/json; charset=utf-8 + - application/json date: - - Wed, 29 Apr 2020 10:53:09 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains + - Sun, 01 Aug 2021 13:06:01 GMT + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAPI-Generator/11.0.0/python + method: GET + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc + response: + body: + string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"resourceVersion":"1747"},"items":[{"metadata":{"name":"azure-arc","uid":"1ad99091-8ee1-408f-898a-7ec198c6bf95","resourceVersion":"1739","creationTimestamp":"2021-08-01T13:04:15Z","deletionTimestamp":"2021-08-01T13:05:55Z","labels":{"admission.policy.azure.com/ignore":"true","app.kubernetes.io/managed-by":"Helm","control-plane":"true"},"annotations":{"meta.helm.sh/release-name":"azure-arc","meta.helm.sh/release-namespace":"default"},"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:04:15Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:meta.helm.sh/release-name":{},"f:meta.helm.sh/release-namespace":{}},"f:labels":{".":{},"f:admission.policy.azure.com/ignore":{},"f:app.kubernetes.io/managed-by":{},"f:control-plane":{}}},"f:status":{"f:phase":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:06:03Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:conditions":{".":{},"k:{\"type\":\"NamespaceContentRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionContentFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionDiscoveryFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionGroupVersionParsingFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceFinalizersRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating","conditions":[{"type":"NamespaceDeletionDiscoveryFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ResourcesDiscovered","message":"All + resources successfully discovered"},{"type":"NamespaceDeletionGroupVersionParsingFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ParsedGroupVersions","message":"All + legacy kube types successfully parsed"},{"type":"NamespaceDeletionContentFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentDeleted","message":"All + content successfully deleted, may be waiting on finalization"},{"type":"NamespaceContentRemaining","status":"True","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"SomeResourcesRemain","message":"Some + resources are remaining: pods. has 10 resource instances"},{"type":"NamespaceFinalizersRemaining","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentHasNoFinalizers","message":"All + content-preserving finalizers finished"}]}}]} + + ' + headers: + audit-id: + - 1afac4f9-d8cd-48d3-b2de-338bb481a1c2 + cache-control: + - no-cache, private + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:06:06 GMT transfer-encoding: - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK @@ -1572,38 +1463,37 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - connectedk8s connect + - connectedk8s delete Connection: - keep-alive ParameterSetName: - - -g -n -l --tags --kube-config + - -g -n --kube-config -y User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-hybridkubernetes/0.1.1 Azure-SDK-For-Python AZURECLI/2.5.0 + - AZURECLI/2.26.1 azsdk-python-mgmt-hybridkubernetes/1.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar-test2/providers/Microsoft.Kubernetes/connectedClusters/cc-000002?api-version=2020-01-01-preview + uri: https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS2EUAP/operationStatuses/d3e8ef8b-34ae-4a08-b730-a65d2c12f68a?api-version=2021-03-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2/providers/Microsoft.Kubernetes/connectedClusters/cc-000002","name":"cc-000002","type":"Microsoft.Kubernetes/connectedClusters","location":"eastus2euap","tags":{"foo":"doo"},"identity":{"type":"SystemAssigned","principalId":"5f47d735-44b2-4169-9b2b-03c87ce648b5","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"properties":{"provisioningState":"Succeeded","agentPublicKeyCertificate":"MIICCgKCAgEA3NZ1TUlvFC3Z9HK1SlxEjvjSIeXYisKQHjjsP9vnjlBmgLVmEa9VLG5DbnV8994xyj2cnJYyXlwFRrX1MpsqvPDV3mA2RcN8nqs38lGppn6j9NkNp5h2++ApZO04TDm1Q20lFhgTOFfZ74uNaQIIwVlunyG7oVYdQc+v/89v8eMPLwSZ9vLCv12LTO6g3s7uVsqKKn1D9YgQrRqIVXfhrVAgshPG9VdQDwIyp2UO9VHheN0MmhO+5WqFgrsqSz3i546IrE1S48yiPf5Xg2KIxpgE0ONu4enIfa/iSD1+TnBi23rVGCt7XdmZvd1TduJYGfmC5XCtwVLlWGTqS0FYXgsQCgvwGSJ2xCXd3KnBiuj5dsR+nZ5FEmJ7UKk/6aghLOarwUHl+b5nCzA4pxb50y3oBiQR41jEExbNnjnv99NXeKWvfwYtfVwQgXoYuIw0CZ3q0KQRs+wb0mwZ0aG96vqpivo6KygmOu++/zLGBsFeTTQ3jYcF50D127xglV3XO+Q5qJJ/PchQ6WMUKD2LXxbyo4c/TWneeyz7AUk6qkuEH9Pabm4k9gYcvBkjzWR+Vsmp2N721u6qLQvwbIFFKs0fjj6xt71Nus2Tl1U9gon4HIhlT/3vhGJHqZZ16yzElduAoNAMGS8B36KPBEcHxiwouqsr8Ib8GEhfZI218b8CAwEAAQ==","aadProfile":{"tenantId":"","clientAppId":"","serverAppId":""}}}' + string: '{"id":"/providers/Microsoft.Kubernetes/locations/EASTUS2EUAP/operationStatuses/d3e8ef8b-34ae-4a08-b730-a65d2c12f68a","name":"d3e8ef8b-34ae-4a08-b730-a65d2c12f68a","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/cc-000002","status":"Succeeded","startTime":"2021-08-01T13:05:39.2636047Z","endTime":"2021-08-01T13:05:48.6248515Z","properties":null}' headers: cache-control: - no-cache content-length: - - '1253' + - '439' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Apr 2020 10:53:11 GMT + - Sun, 01 Aug 2021 13:06:10 GMT + etag: + - '"3a007e0a-0000-3400-0000-61069c2c0000"' expires: - '-1' pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1625,33 +1515,32 @@ interactions: User-Agent: - OpenAPI-Generator/11.0.0/python method: GET - uri: https://cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io/api/v1/namespaces/azure-arc/pods?timeoutSeconds=30&watch=True + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc response: body: - string: '{"type":"ADDED","object":{"kind":"Pod","apiVersion":"v1","metadata":{"name":"metrics-agent-58694fc95c-mfvr9","generateName":"metrics-agent-58694fc95c-","namespace":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc/pods/metrics-agent-58694fc95c-mfvr9","uid":"e207a5ec-f4d6-42fd-90cb-34a21a139dcb","resourceVersion":"992","creationTimestamp":"2020-04-29T10:52:17Z","labels":{"app.kubernetes.io/component":"metrics-agent","app.kubernetes.io/name":"azure-arc-k8s","pod-template-hash":"58694fc95c"},"ownerReferences":[{"apiVersion":"apps/v1","kind":"ReplicaSet","name":"metrics-agent-58694fc95c","uid":"e0be435d-3c4c-4a14-86bf-421d9eecb317","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"azure-arc-operatorsa-token-4tztb","secret":{"secretName":"azure-arc-operatorsa-token-4tztb","defaultMode":420}}],"containers":[{"name":"metrics-agent","image":"azurearcfork8s.azurecr.io/arc-preview/metrics-agent:0.1.19","env":[{"name":"AZURE_RESOURCE_NAME","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_NAME"}}},{"name":"AZURE_SUBSCRIPTION_ID","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_SUBSCRIPTION_ID"}}},{"name":"AZURE_RESOURCE_GROUP","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_GROUP"}}},{"name":"AZURE_REGION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_REGION"}}},{"name":"CLUSTER_TYPE","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"CLUSTER_TYPE"}}}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","serviceAccountName":"azure-arc-operatorsa","serviceAccount":"azure-arc-operatorsa","nodeName":"aks-nodepool1-28230805-vmss000000","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Running","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:18Z"},{"type":"Ready","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:36Z"},{"type":"ContainersReady","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:36Z"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:17Z"}],"hostIP":"10.240.0.4","podIP":"10.244.0.9","startTime":"2020-04-29T10:52:18Z","containerStatuses":[{"name":"metrics-agent","state":{"running":{"startedAt":"2020-04-29T10:52:34Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"azurearcfork8s.azurecr.io/arc-preview/metrics-agent:0.1.19","imageID":"docker-pullable://azurearcfork8s.azurecr.io/arc-preview/metrics-agent@sha256:47f694735b320866359942eecca0e45e6539a530da5721c38c5e80d02e26463b","containerID":"docker://9e8b7fd7547c87930b89297534990520c89a5ced5fd49850b1a01038592e6ad6"}],"qosClass":"BestEffort"}}} - - {"type":"ADDED","object":{"kind":"Pod","apiVersion":"v1","metadata":{"name":"controller-manager-55d5d4457c-v9lzt","generateName":"controller-manager-55d5d4457c-","namespace":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc/pods/controller-manager-55d5d4457c-v9lzt","uid":"6a9338c1-4f1b-46e0-a642-e9af0cc4d856","resourceVersion":"957","creationTimestamp":"2020-04-29T10:52:17Z","labels":{"control-plane":"controller-manager","pod-template-hash":"55d5d4457c"},"ownerReferences":[{"apiVersion":"apps/v1","kind":"ReplicaSet","name":"controller-manager-55d5d4457c","uid":"15af7726-f7ff-4c3d-a7a4-03370fb43e34","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"azure-arc-operatorsa-token-4tztb","secret":{"secretName":"azure-arc-operatorsa-token-4tztb","defaultMode":420}}],"containers":[{"name":"kube-rbac-proxy","image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","args":["--secure-listen-address=0.0.0.0:8443","--upstream=http://127.0.0.1:8080/","--logtostderr=true","--v=10"],"ports":[{"name":"https","containerPort":8443,"protocol":"TCP"}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"},{"name":"manager","image":"azurearcfork8s.azurecr.io/arc-preview/configoperator:0.1.19","command":["/data/manager"],"args":["--metrics-addr=127.0.0.1:8080","--enable-leader-election"],"env":[{"name":"AZURE_RESOURCE_NAME","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_NAME"}}},{"name":"AZURE_SUBSCRIPTION_ID","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_SUBSCRIPTION_ID"}}},{"name":"AZURE_RESOURCE_GROUP","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_GROUP"}}},{"name":"AZURE_REGION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_REGION"}}},{"name":"CLUSTER_TYPE","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"CLUSTER_TYPE"}}}],"resources":{"limits":{"cpu":"100m","memory":"300Mi"},"requests":{"cpu":"100m","memory":"100Mi"}},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":10,"dnsPolicy":"ClusterFirst","serviceAccountName":"azure-arc-operatorsa","serviceAccount":"azure-arc-operatorsa","nodeName":"aks-nodepool1-28230805-vmss000000","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Pending","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:18Z"},{"type":"Ready","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:18Z","reason":"ContainersNotReady","message":"containers - with unready status: [kube-rbac-proxy manager]"},{"type":"ContainersReady","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:18Z","reason":"ContainersNotReady","message":"containers - with unready status: [kube-rbac-proxy manager]"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:17Z"}],"hostIP":"10.240.0.4","startTime":"2020-04-29T10:52:18Z","containerStatuses":[{"name":"kube-rbac-proxy","state":{"waiting":{"reason":"ContainerCreating"}},"lastState":{},"ready":false,"restartCount":0,"image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","imageID":""},{"name":"manager","state":{"waiting":{"reason":"ContainerCreating"}},"lastState":{},"ready":false,"restartCount":0,"image":"azurearcfork8s.azurecr.io/arc-preview/configoperator:0.1.19","imageID":""}],"qosClass":"Burstable"}}} - - {"type":"ADDED","object":{"kind":"Pod","apiVersion":"v1","metadata":{"name":"config-agent-647ff874bc-zblvl","generateName":"config-agent-647ff874bc-","namespace":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc/pods/config-agent-647ff874bc-zblvl","uid":"74f59a99-26ca-4526-9ca5-c9cb04c1c557","resourceVersion":"963","creationTimestamp":"2020-04-29T10:52:17Z","labels":{"app.kubernetes.io/component":"config-agent","app.kubernetes.io/name":"azure-arc-k8s","pod-template-hash":"647ff874bc"},"ownerReferences":[{"apiVersion":"apps/v1","kind":"ReplicaSet","name":"config-agent-647ff874bc","uid":"10f59238-5b3e-46de-a466-93becc3df125","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"azure-arc-operatorsa-token-4tztb","secret":{"secretName":"azure-arc-operatorsa-token-4tztb","defaultMode":420}}],"containers":[{"name":"kube-rbac-proxy","image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","args":["--secure-listen-address=0.0.0.0:8443","--upstream=http://127.0.0.1:8080/","--logtostderr=true","--v=10"],"ports":[{"name":"https","containerPort":8443,"protocol":"TCP"}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"},{"name":"config-agent","image":"azurearcfork8s.azurecr.io/arc-preview/config-agent:0.1.19","env":[{"name":"AZURE_RESOURCE_NAME","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_NAME"}}},{"name":"AZURE_SUBSCRIPTION_ID","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_SUBSCRIPTION_ID"}}},{"name":"AZURE_RESOURCE_GROUP","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_GROUP"}}},{"name":"AZURE_REGION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_REGION"}}},{"name":"CLUSTER_TYPE","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"CLUSTER_TYPE"}}},{"name":"FLUX_CLIENT_DEFAULT_LOCATION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"FLUX_CLIENT_DEFAULT_LOCATION"}}}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","serviceAccountName":"azure-arc-operatorsa","serviceAccount":"azure-arc-operatorsa","nodeName":"aks-nodepool1-28230805-vmss000000","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Pending","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:19Z"},{"type":"Ready","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:19Z","reason":"ContainersNotReady","message":"containers - with unready status: [kube-rbac-proxy config-agent]"},{"type":"ContainersReady","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:19Z","reason":"ContainersNotReady","message":"containers - with unready status: [kube-rbac-proxy config-agent]"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:17Z"}],"hostIP":"10.240.0.4","startTime":"2020-04-29T10:52:19Z","containerStatuses":[{"name":"config-agent","state":{"waiting":{"reason":"ContainerCreating"}},"lastState":{},"ready":false,"restartCount":0,"image":"azurearcfork8s.azurecr.io/arc-preview/config-agent:0.1.19","imageID":""},{"name":"kube-rbac-proxy","state":{"waiting":{"reason":"ContainerCreating"}},"lastState":{},"ready":false,"restartCount":0,"image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","imageID":""}],"qosClass":"BestEffort"}}} - - {"type":"MODIFIED","object":{"kind":"Pod","apiVersion":"v1","metadata":{"name":"controller-manager-55d5d4457c-v9lzt","generateName":"controller-manager-55d5d4457c-","namespace":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc/pods/controller-manager-55d5d4457c-v9lzt","uid":"6a9338c1-4f1b-46e0-a642-e9af0cc4d856","resourceVersion":"1012","creationTimestamp":"2020-04-29T10:52:17Z","labels":{"control-plane":"controller-manager","pod-template-hash":"55d5d4457c"},"ownerReferences":[{"apiVersion":"apps/v1","kind":"ReplicaSet","name":"controller-manager-55d5d4457c","uid":"15af7726-f7ff-4c3d-a7a4-03370fb43e34","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"azure-arc-operatorsa-token-4tztb","secret":{"secretName":"azure-arc-operatorsa-token-4tztb","defaultMode":420}}],"containers":[{"name":"kube-rbac-proxy","image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","args":["--secure-listen-address=0.0.0.0:8443","--upstream=http://127.0.0.1:8080/","--logtostderr=true","--v=10"],"ports":[{"name":"https","containerPort":8443,"protocol":"TCP"}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"},{"name":"manager","image":"azurearcfork8s.azurecr.io/arc-preview/configoperator:0.1.19","command":["/data/manager"],"args":["--metrics-addr=127.0.0.1:8080","--enable-leader-election"],"env":[{"name":"AZURE_RESOURCE_NAME","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_NAME"}}},{"name":"AZURE_SUBSCRIPTION_ID","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_SUBSCRIPTION_ID"}}},{"name":"AZURE_RESOURCE_GROUP","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_GROUP"}}},{"name":"AZURE_REGION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_REGION"}}},{"name":"CLUSTER_TYPE","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"CLUSTER_TYPE"}}}],"resources":{"limits":{"cpu":"100m","memory":"300Mi"},"requests":{"cpu":"100m","memory":"100Mi"}},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":10,"dnsPolicy":"ClusterFirst","serviceAccountName":"azure-arc-operatorsa","serviceAccount":"azure-arc-operatorsa","nodeName":"aks-nodepool1-28230805-vmss000000","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Running","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:18Z"},{"type":"Ready","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:44Z"},{"type":"ContainersReady","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:44Z"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:17Z"}],"hostIP":"10.240.0.4","podIP":"10.244.0.8","startTime":"2020-04-29T10:52:18Z","containerStatuses":[{"name":"kube-rbac-proxy","state":{"running":{"startedAt":"2020-04-29T10:52:26Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","imageID":"docker-pullable://gcr.io/kubebuilder/kube-rbac-proxy@sha256:297896d96b827bbcb1abd696da1b2d81cab88359ac34cce0e8281f266b4e08de","containerID":"docker://4ded9c0834e0f8574c75ef17e8704d6b92c30597d8978f3e9eb45a72563b95f7"},{"name":"manager","state":{"running":{"startedAt":"2020-04-29T10:52:43Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"azurearcfork8s.azurecr.io/arc-preview/configoperator:0.1.19","imageID":"docker-pullable://azurearcfork8s.azurecr.io/arc-preview/configoperator@sha256:ea33b13ee5d596650cfeced4e593c9b10f46a6f6a6a35aae80187efdf9eae7e2","containerID":"docker://e3b1e2fd416f155a1042aaf39571c4bf9d438c692e2a2c9c926f6587854cdbdd"}],"qosClass":"Burstable"}}} - - {"type":"MODIFIED","object":{"kind":"Pod","apiVersion":"v1","metadata":{"name":"config-agent-647ff874bc-zblvl","generateName":"config-agent-647ff874bc-","namespace":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc/pods/config-agent-647ff874bc-zblvl","uid":"74f59a99-26ca-4526-9ca5-c9cb04c1c557","resourceVersion":"1037","creationTimestamp":"2020-04-29T10:52:17Z","labels":{"app.kubernetes.io/component":"config-agent","app.kubernetes.io/name":"azure-arc-k8s","pod-template-hash":"647ff874bc"},"ownerReferences":[{"apiVersion":"apps/v1","kind":"ReplicaSet","name":"config-agent-647ff874bc","uid":"10f59238-5b3e-46de-a466-93becc3df125","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"azure-arc-operatorsa-token-4tztb","secret":{"secretName":"azure-arc-operatorsa-token-4tztb","defaultMode":420}}],"containers":[{"name":"kube-rbac-proxy","image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","args":["--secure-listen-address=0.0.0.0:8443","--upstream=http://127.0.0.1:8080/","--logtostderr=true","--v=10"],"ports":[{"name":"https","containerPort":8443,"protocol":"TCP"}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"},{"name":"config-agent","image":"azurearcfork8s.azurecr.io/arc-preview/config-agent:0.1.19","env":[{"name":"AZURE_RESOURCE_NAME","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_NAME"}}},{"name":"AZURE_SUBSCRIPTION_ID","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_SUBSCRIPTION_ID"}}},{"name":"AZURE_RESOURCE_GROUP","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_RESOURCE_GROUP"}}},{"name":"AZURE_REGION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"AZURE_REGION"}}},{"name":"CLUSTER_TYPE","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"CLUSTER_TYPE"}}},{"name":"FLUX_CLIENT_DEFAULT_LOCATION","valueFrom":{"configMapKeyRef":{"name":"azure-clusterconfig","key":"FLUX_CLIENT_DEFAULT_LOCATION"}}}],"resources":{},"volumeMounts":[{"name":"azure-arc-operatorsa-token-4tztb","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","serviceAccountName":"azure-arc-operatorsa","serviceAccount":"azure-arc-operatorsa","nodeName":"aks-nodepool1-28230805-vmss000000","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Running","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:19Z"},{"type":"Ready","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:53Z"},{"type":"ContainersReady","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:53Z"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-04-29T10:52:17Z"}],"hostIP":"10.240.0.4","podIP":"10.244.0.10","startTime":"2020-04-29T10:52:19Z","containerStatuses":[{"name":"config-agent","state":{"running":{"startedAt":"2020-04-29T10:52:52Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"azurearcfork8s.azurecr.io/arc-preview/config-agent:0.1.19","imageID":"docker-pullable://azurearcfork8s.azurecr.io/arc-preview/config-agent@sha256:766f5acc681d0764948f89e7252f874d8d2f23ffad38d449d0d84f7794185b6e","containerID":"docker://94f2d9214ac84140c53df6904b1c87df5056130eeabfbd9505c3f802744db4c3"},{"name":"kube-rbac-proxy","state":{"running":{"startedAt":"2020-04-29T10:52:34Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0","imageID":"docker-pullable://gcr.io/kubebuilder/kube-rbac-proxy@sha256:297896d96b827bbcb1abd696da1b2d81cab88359ac34cce0e8281f266b4e08de","containerID":"docker://6a158873a95678904d9e76730051d52c6c9a263bcb9243792f6eff21e3748194"}],"qosClass":"BestEffort"}}} + string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"resourceVersion":"1760"},"items":[{"metadata":{"name":"azure-arc","uid":"1ad99091-8ee1-408f-898a-7ec198c6bf95","resourceVersion":"1752","creationTimestamp":"2021-08-01T13:04:15Z","deletionTimestamp":"2021-08-01T13:05:55Z","labels":{"admission.policy.azure.com/ignore":"true","app.kubernetes.io/managed-by":"Helm","control-plane":"true"},"annotations":{"meta.helm.sh/release-name":"azure-arc","meta.helm.sh/release-namespace":"default"},"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:04:15Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:meta.helm.sh/release-name":{},"f:meta.helm.sh/release-namespace":{}},"f:labels":{".":{},"f:admission.policy.azure.com/ignore":{},"f:app.kubernetes.io/managed-by":{},"f:control-plane":{}}},"f:status":{"f:phase":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:06:03Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:conditions":{".":{},"k:{\"type\":\"NamespaceContentRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionContentFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionDiscoveryFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionGroupVersionParsingFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceFinalizersRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating","conditions":[{"type":"NamespaceDeletionDiscoveryFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ResourcesDiscovered","message":"All + resources successfully discovered"},{"type":"NamespaceDeletionGroupVersionParsingFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ParsedGroupVersions","message":"All + legacy kube types successfully parsed"},{"type":"NamespaceDeletionContentFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentDeleted","message":"All + content successfully deleted, may be waiting on finalization"},{"type":"NamespaceContentRemaining","status":"True","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"SomeResourcesRemain","message":"Some + resources are remaining: pods. has 9 resource instances"},{"type":"NamespaceFinalizersRemaining","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentHasNoFinalizers","message":"All + content-preserving finalizers finished"}]}}]} ' headers: audit-id: - - 26a1f601-87fa-4fb4-b6b8-f88c3a6f4c8b + - 6215c8c3-9203-4d11-a110-821a8a89f7da + cache-control: + - no-cache, private content-type: - application/json date: - - Wed, 29 Apr 2020 10:52:43 GMT + - Sun, 01 Aug 2021 13:06:11 GMT transfer-encoding: - chunked + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK @@ -1660,47 +1549,37 @@ interactions: headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - connectedk8s show - Connection: - - keep-alive - ParameterSetName: - - -g -n + Content-Type: + - application/json User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-hybridkubernetes/0.1.1 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US + - OpenAPI-Generator/11.0.0/python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar-test2/providers/Microsoft.Kubernetes/connectedClusters/cc-000002?api-version=2020-01-01-preview + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2/providers/Microsoft.Kubernetes/connectedClusters/cc-000002","name":"cc-000002","type":"Microsoft.Kubernetes/connectedClusters","location":"eastus2euap","tags":{"foo":"doo"},"identity":{"type":"SystemAssigned","principalId":"5f47d735-44b2-4169-9b2b-03c87ce648b5","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"properties":{"provisioningState":"Succeeded","agentPublicKeyCertificate":"MIICCgKCAgEA3NZ1TUlvFC3Z9HK1SlxEjvjSIeXYisKQHjjsP9vnjlBmgLVmEa9VLG5DbnV8994xyj2cnJYyXlwFRrX1MpsqvPDV3mA2RcN8nqs38lGppn6j9NkNp5h2++ApZO04TDm1Q20lFhgTOFfZ74uNaQIIwVlunyG7oVYdQc+v/89v8eMPLwSZ9vLCv12LTO6g3s7uVsqKKn1D9YgQrRqIVXfhrVAgshPG9VdQDwIyp2UO9VHheN0MmhO+5WqFgrsqSz3i546IrE1S48yiPf5Xg2KIxpgE0ONu4enIfa/iSD1+TnBi23rVGCt7XdmZvd1TduJYGfmC5XCtwVLlWGTqS0FYXgsQCgvwGSJ2xCXd3KnBiuj5dsR+nZ5FEmJ7UKk/6aghLOarwUHl+b5nCzA4pxb50y3oBiQR41jEExbNnjnv99NXeKWvfwYtfVwQgXoYuIw0CZ3q0KQRs+wb0mwZ0aG96vqpivo6KygmOu++/zLGBsFeTTQ3jYcF50D127xglV3XO+Q5qJJ/PchQ6WMUKD2LXxbyo4c/TWneeyz7AUk6qkuEH9Pabm4k9gYcvBkjzWR+Vsmp2N721u6qLQvwbIFFKs0fjj6xt71Nus2Tl1U9gon4HIhlT/3vhGJHqZZ16yzElduAoNAMGS8B36KPBEcHxiwouqsr8Ib8GEhfZI218b8CAwEAAQ==","aadProfile":{"tenantId":"","clientAppId":"","serverAppId":""}}}' + string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"resourceVersion":"1766"},"items":[{"metadata":{"name":"azure-arc","uid":"1ad99091-8ee1-408f-898a-7ec198c6bf95","resourceVersion":"1763","creationTimestamp":"2021-08-01T13:04:15Z","deletionTimestamp":"2021-08-01T13:05:55Z","labels":{"admission.policy.azure.com/ignore":"true","app.kubernetes.io/managed-by":"Helm","control-plane":"true"},"annotations":{"meta.helm.sh/release-name":"azure-arc","meta.helm.sh/release-namespace":"default"},"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:04:15Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:meta.helm.sh/release-name":{},"f:meta.helm.sh/release-namespace":{}},"f:labels":{".":{},"f:admission.policy.azure.com/ignore":{},"f:app.kubernetes.io/managed-by":{},"f:control-plane":{}}},"f:status":{"f:phase":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:06:03Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:conditions":{".":{},"k:{\"type\":\"NamespaceContentRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionContentFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionDiscoveryFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionGroupVersionParsingFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceFinalizersRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating","conditions":[{"type":"NamespaceDeletionDiscoveryFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ResourcesDiscovered","message":"All + resources successfully discovered"},{"type":"NamespaceDeletionGroupVersionParsingFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ParsedGroupVersions","message":"All + legacy kube types successfully parsed"},{"type":"NamespaceDeletionContentFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentDeleted","message":"All + content successfully deleted, may be waiting on finalization"},{"type":"NamespaceContentRemaining","status":"True","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"SomeResourcesRemain","message":"Some + resources are remaining: pods. has 7 resource instances"},{"type":"NamespaceFinalizersRemaining","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentHasNoFinalizers","message":"All + content-preserving finalizers finished"}]}}]} + + ' headers: + audit-id: + - e6aad6ec-ab86-4308-83d7-62a102b1d90c cache-control: - - no-cache - content-length: - - '1253' + - no-cache, private content-type: - - application/json; charset=utf-8 + - application/json date: - - Wed, 29 Apr 2020 10:53:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains + - Sun, 01 Aug 2021 13:06:16 GMT transfer-encoding: - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK @@ -1714,21 +1593,32 @@ interactions: User-Agent: - OpenAPI-Generator/11.0.0/python method: GET - uri: https://cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io/apis/networking.k8s.io/v1/ + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc response: body: - string: '{"kind":"APIResourceList","apiVersion":"v1","groupVersion":"networking.k8s.io/v1","resources":[{"name":"networkpolicies","singularName":"","namespaced":true,"kind":"NetworkPolicy","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["netpol"],"storageVersionHash":"YpfwF18m1G8="}]} + string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"resourceVersion":"1775"},"items":[{"metadata":{"name":"azure-arc","uid":"1ad99091-8ee1-408f-898a-7ec198c6bf95","resourceVersion":"1763","creationTimestamp":"2021-08-01T13:04:15Z","deletionTimestamp":"2021-08-01T13:05:55Z","labels":{"admission.policy.azure.com/ignore":"true","app.kubernetes.io/managed-by":"Helm","control-plane":"true"},"annotations":{"meta.helm.sh/release-name":"azure-arc","meta.helm.sh/release-namespace":"default"},"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:04:15Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:meta.helm.sh/release-name":{},"f:meta.helm.sh/release-namespace":{}},"f:labels":{".":{},"f:admission.policy.azure.com/ignore":{},"f:app.kubernetes.io/managed-by":{},"f:control-plane":{}}},"f:status":{"f:phase":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:06:03Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:conditions":{".":{},"k:{\"type\":\"NamespaceContentRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionContentFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionDiscoveryFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionGroupVersionParsingFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceFinalizersRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating","conditions":[{"type":"NamespaceDeletionDiscoveryFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ResourcesDiscovered","message":"All + resources successfully discovered"},{"type":"NamespaceDeletionGroupVersionParsingFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ParsedGroupVersions","message":"All + legacy kube types successfully parsed"},{"type":"NamespaceDeletionContentFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentDeleted","message":"All + content successfully deleted, may be waiting on finalization"},{"type":"NamespaceContentRemaining","status":"True","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"SomeResourcesRemain","message":"Some + resources are remaining: pods. has 7 resource instances"},{"type":"NamespaceFinalizersRemaining","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentHasNoFinalizers","message":"All + content-preserving finalizers finished"}]}}]} ' headers: audit-id: - - 856933e7-e9f2-46fd-a73d-72909fde0fc0 - content-length: - - '328' + - d7abb30e-0a5d-4ce5-bc95-1cd24a99e7dd + cache-control: + - no-cache, private content-type: - application/json date: - - Wed, 29 Apr 2020 10:53:15 GMT + - Sun, 01 Aug 2021 13:06:22 GMT + transfer-encoding: + - chunked + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK @@ -1742,21 +1632,32 @@ interactions: User-Agent: - OpenAPI-Generator/11.0.0/python method: GET - uri: https://cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io/api/v1/namespaces/azure-arc/configmaps/azure-clusterconfig + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc response: body: - string: '{"kind":"ConfigMap","apiVersion":"v1","metadata":{"name":"azure-clusterconfig","namespace":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc/configmaps/azure-clusterconfig","uid":"0700c00c-f24e-4819-a5d3-fabaa89c27d3","resourceVersion":"898","creationTimestamp":"2020-04-29T10:52:15Z"},"data":{"AZURE_ARC_AGENT_VERSION":"0.1.19","AZURE_REGION":"eastus2euap","AZURE_RESOURCE_GROUP":"akkeshar-test2","AZURE_RESOURCE_NAME":"cc-000002","AZURE_SUBSCRIPTION_ID":"1bfbb5d0-917e-4346-9026-1d3b344417f5","AZURE_TENANT_ID":"72f988bf-86f1-41af-91ab-2d7cd011db47","CLUSTER_TYPE":"ConnectedClusters","FLUX_CLIENT_DEFAULT_LOCATION":"azurearcfork8s.azurecr.io/arc-preview/fluxctl:0.1.3"}} + string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"resourceVersion":"1787"},"items":[{"metadata":{"name":"azure-arc","uid":"1ad99091-8ee1-408f-898a-7ec198c6bf95","resourceVersion":"1763","creationTimestamp":"2021-08-01T13:04:15Z","deletionTimestamp":"2021-08-01T13:05:55Z","labels":{"admission.policy.azure.com/ignore":"true","app.kubernetes.io/managed-by":"Helm","control-plane":"true"},"annotations":{"meta.helm.sh/release-name":"azure-arc","meta.helm.sh/release-namespace":"default"},"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:04:15Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:meta.helm.sh/release-name":{},"f:meta.helm.sh/release-namespace":{}},"f:labels":{".":{},"f:admission.policy.azure.com/ignore":{},"f:app.kubernetes.io/managed-by":{},"f:control-plane":{}}},"f:status":{"f:phase":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:06:03Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:conditions":{".":{},"k:{\"type\":\"NamespaceContentRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionContentFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionDiscoveryFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionGroupVersionParsingFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceFinalizersRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating","conditions":[{"type":"NamespaceDeletionDiscoveryFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ResourcesDiscovered","message":"All + resources successfully discovered"},{"type":"NamespaceDeletionGroupVersionParsingFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ParsedGroupVersions","message":"All + legacy kube types successfully parsed"},{"type":"NamespaceDeletionContentFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentDeleted","message":"All + content successfully deleted, may be waiting on finalization"},{"type":"NamespaceContentRemaining","status":"True","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"SomeResourcesRemain","message":"Some + resources are remaining: pods. has 7 resource instances"},{"type":"NamespaceFinalizersRemaining","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentHasNoFinalizers","message":"All + content-preserving finalizers finished"}]}}]} ' headers: audit-id: - - 56487951-40ae-4d2d-a209-c24b6ebf631e - content-length: - - '680' + - 2157ceab-7d85-41ea-8a91-5c1486a1885c + cache-control: + - no-cache, private content-type: - application/json date: - - Wed, 29 Apr 2020 10:53:34 GMT + - Sun, 01 Aug 2021 13:06:27 GMT + transfer-encoding: + - chunked + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: code: 200 message: OK @@ -1765,52 +1666,40 @@ interactions: headers: Accept: - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - connectedk8s delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -n --kube-config -y + Content-Type: + - application/json User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-hybridkubernetes/0.1.1 Azure-SDK-For-Python AZURECLI/2.5.0 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/akkeshar-test2/providers/Microsoft.Kubernetes/connectedClusters/cc-000002?api-version=2020-01-01-preview + - OpenAPI-Generator/11.0.0/python + method: GET + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar-test2/providers/Microsoft.Kubernetes/connectedClusters/cc-000002","name":"cc-000002","type":"Microsoft.Kubernetes/connectedClusters","location":"eastus2euap","tags":{"foo":"doo"},"identity":{"type":"SystemAssigned","principalId":"5f47d735-44b2-4169-9b2b-03c87ce648b5","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"properties":{"provisioningState":"Deleting","agentPublicKeyCertificate":"MIICCgKCAgEA3NZ1TUlvFC3Z9HK1SlxEjvjSIeXYisKQHjjsP9vnjlBmgLVmEa9VLG5DbnV8994xyj2cnJYyXlwFRrX1MpsqvPDV3mA2RcN8nqs38lGppn6j9NkNp5h2++ApZO04TDm1Q20lFhgTOFfZ74uNaQIIwVlunyG7oVYdQc+v/89v8eMPLwSZ9vLCv12LTO6g3s7uVsqKKn1D9YgQrRqIVXfhrVAgshPG9VdQDwIyp2UO9VHheN0MmhO+5WqFgrsqSz3i546IrE1S48yiPf5Xg2KIxpgE0ONu4enIfa/iSD1+TnBi23rVGCt7XdmZvd1TduJYGfmC5XCtwVLlWGTqS0FYXgsQCgvwGSJ2xCXd3KnBiuj5dsR+nZ5FEmJ7UKk/6aghLOarwUHl+b5nCzA4pxb50y3oBiQR41jEExbNnjnv99NXeKWvfwYtfVwQgXoYuIw0CZ3q0KQRs+wb0mwZ0aG96vqpivo6KygmOu++/zLGBsFeTTQ3jYcF50D127xglV3XO+Q5qJJ/PchQ6WMUKD2LXxbyo4c/TWneeyz7AUk6qkuEH9Pabm4k9gYcvBkjzWR+Vsmp2N721u6qLQvwbIFFKs0fjj6xt71Nus2Tl1U9gon4HIhlT/3vhGJHqZZ16yzElduAoNAMGS8B36KPBEcHxiwouqsr8Ib8GEhfZI218b8CAwEAAQ==","aadProfile":{"tenantId":"","clientAppId":"","serverAppId":""}}}' + string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"resourceVersion":"1806"},"items":[{"metadata":{"name":"azure-arc","uid":"1ad99091-8ee1-408f-898a-7ec198c6bf95","resourceVersion":"1763","creationTimestamp":"2021-08-01T13:04:15Z","deletionTimestamp":"2021-08-01T13:05:55Z","labels":{"admission.policy.azure.com/ignore":"true","app.kubernetes.io/managed-by":"Helm","control-plane":"true"},"annotations":{"meta.helm.sh/release-name":"azure-arc","meta.helm.sh/release-namespace":"default"},"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:04:15Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:meta.helm.sh/release-name":{},"f:meta.helm.sh/release-namespace":{}},"f:labels":{".":{},"f:admission.policy.azure.com/ignore":{},"f:app.kubernetes.io/managed-by":{},"f:control-plane":{}}},"f:status":{"f:phase":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:06:03Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:conditions":{".":{},"k:{\"type\":\"NamespaceContentRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionContentFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionDiscoveryFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionGroupVersionParsingFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceFinalizersRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating","conditions":[{"type":"NamespaceDeletionDiscoveryFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ResourcesDiscovered","message":"All + resources successfully discovered"},{"type":"NamespaceDeletionGroupVersionParsingFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ParsedGroupVersions","message":"All + legacy kube types successfully parsed"},{"type":"NamespaceDeletionContentFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentDeleted","message":"All + content successfully deleted, may be waiting on finalization"},{"type":"NamespaceContentRemaining","status":"True","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"SomeResourcesRemain","message":"Some + resources are remaining: pods. has 7 resource instances"},{"type":"NamespaceFinalizersRemaining","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentHasNoFinalizers","message":"All + content-preserving finalizers finished"}]}}]} + + ' headers: + audit-id: + - a2582bb8-407d-4567-a47a-fc9a1155ebef cache-control: - - no-cache - content-length: - - '1252' + - no-cache, private content-type: - - application/json; charset=utf-8 + - application/json date: - - Wed, 29 Apr 2020 10:53:35 GMT - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Kubernetes/locations/EastUS2EUAP/operationStatuses/10dd82d0-36e8-43d2-9977-c93478045467?api-version=2020-01-01-preview - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - Sun, 01 Aug 2021 13:06:32 GMT + transfer-encoding: + - chunked + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: @@ -1821,21 +1710,933 @@ interactions: User-Agent: - OpenAPI-Generator/11.0.0/python method: GET - uri: https://cli-test-a-akkeshar-test2-1bfbb5-c4bb7537.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc response: body: - string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces","resourceVersion":"1142"},"items":[{"metadata":{"name":"azure-arc","selfLink":"/api/v1/namespaces/azure-arc","uid":"5310daee-c1f1-4531-bedf-5f5d90153ec9","resourceVersion":"1140","creationTimestamp":"2020-04-29T10:52:11Z","deletionTimestamp":"2020-04-29T10:53:40Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating"}}]} + string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"resourceVersion":"1814"},"items":[{"metadata":{"name":"azure-arc","uid":"1ad99091-8ee1-408f-898a-7ec198c6bf95","resourceVersion":"1812","creationTimestamp":"2021-08-01T13:04:15Z","deletionTimestamp":"2021-08-01T13:05:55Z","labels":{"admission.policy.azure.com/ignore":"true","app.kubernetes.io/managed-by":"Helm","control-plane":"true"},"annotations":{"meta.helm.sh/release-name":"azure-arc","meta.helm.sh/release-namespace":"default"},"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:04:15Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:meta.helm.sh/release-name":{},"f:meta.helm.sh/release-namespace":{}},"f:labels":{".":{},"f:admission.policy.azure.com/ignore":{},"f:app.kubernetes.io/managed-by":{},"f:control-plane":{}}},"f:status":{"f:phase":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2021-08-01T13:06:03Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:conditions":{".":{},"k:{\"type\":\"NamespaceContentRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionContentFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionDiscoveryFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceDeletionGroupVersionParsingFailure\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"NamespaceFinalizersRemaining\"}":{".":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating","conditions":[{"type":"NamespaceDeletionDiscoveryFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ResourcesDiscovered","message":"All + resources successfully discovered"},{"type":"NamespaceDeletionGroupVersionParsingFailure","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ParsedGroupVersions","message":"All + legacy kube types successfully parsed"},{"type":"NamespaceDeletionContentFailure","status":"True","lastTransitionTime":"2021-08-01T13:06:35Z","reason":"ContentDeletionFailed","message":"Failed + to delete all resource types, 1 remaining: unexpected items still remain in + namespace: azure-arc for gvr: /v1, Resource=pods"},{"type":"NamespaceContentRemaining","status":"True","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"SomeResourcesRemain","message":"Some + resources are remaining: pods. has 1 resource instances"},{"type":"NamespaceFinalizersRemaining","status":"False","lastTransitionTime":"2021-08-01T13:06:03Z","reason":"ContentHasNoFinalizers","message":"All + content-preserving finalizers finished"}]}}]} ' headers: audit-id: - - a27a85cf-7fc0-4019-af9b-fb8bb0091d1b - content-length: - - '425' + - 81e16bc6-09aa-4f83-a126-56864f7a50a4 + cache-control: + - no-cache, private content-type: - application/json date: - - Wed, 29 Apr 2020 10:53:41 GMT + - Sun, 01 Aug 2021 13:06:37 GMT + transfer-encoding: + - chunked + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - OpenAPI-Generator/11.0.0/python + method: GET + uri: https://cli-test-a-akkeshar-1bfbb5-864c8a90.hcp.westeurope.azmk8s.io/api/v1/namespaces?fieldSelector=metadata.name%3Dazure-arc + response: + body: + string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"resourceVersion":"1825"},"items":[]} + + ' + headers: + audit-id: + - 94eb20b1-c1d1-4c30-afa4-6e7af4ab3212 + cache-control: + - no-cache, private + content-length: + - '92' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:06:42 GMT + x-kubernetes-pf-flowschema-uid: + - 42425a08-be81-4317-a915-f233576debbf + x-kubernetes-pf-prioritylevel-uid: + - e660e6bc-f525-4a90-b922-f9dcb6519d33 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/akkeshar/providers/Microsoft.ContainerService/managedClusters/cli-test-aks-000001?api-version=2021-05-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + cache-control: + - no-cache + content-length: + - '0' + date: + - Sun, 01 Aug 2021 13:06:44 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operationresults/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:07:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:07:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:08:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:08:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:09:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:09:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:10:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:10:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:11:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:11:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:12:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:12:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:13:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:13:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:14:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:14:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - aks delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.26.1 azsdk-python-azure-mgmt-containerservice/16.0.0 Python/3.7.7 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westeurope/operations/555cde31-85d4-4cb5-98e4-4f41314d3b08?api-version=2017-08-31 + response: + body: + string: "{\n \"name\": \"31de5c55-d485-b54c-98e4-4f41314d3b08\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2021-08-01T13:06:44.99Z\",\n \"endTime\": + \"2021-08-01T13:15:17.9802038Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json + date: + - Sun, 01 Aug 2021 13:15:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff status: code: 200 message: OK diff --git a/src/connectedk8s/azext_connectedk8s/tests/latest/test_connectedk8s_scenario.py b/src/connectedk8s/azext_connectedk8s/tests/latest/test_connectedk8s_scenario.py index 1f71f497b10..cd81443b27c 100644 --- a/src/connectedk8s/azext_connectedk8s/tests/latest/test_connectedk8s_scenario.py +++ b/src/connectedk8s/azext_connectedk8s/tests/latest/test_connectedk8s_scenario.py @@ -28,17 +28,19 @@ def test_connectedk8s(self): 'kubeconfig': "%s" % (_get_test_data_file(managed_cluster_name + '-config.yaml')), 'managed_cluster_name': managed_cluster_name }) - self.cmd('aks create -g akkeshar-test2 -n {} -s Standard_B2s -l westeurope -c 1 --generate-ssh-keys'.format(managed_cluster_name)) - self.cmd('aks get-credentials -g akkeshar-test2 -n {managed_cluster_name} -f {kubeconfig}') - os.environ['HELMCHART'] = _get_test_data_file('setupChart.tgz') - self.cmd('connectedk8s connect -g akkeshar-test2 -n {name} -l eastus2euap --tags foo=doo --kube-config {kubeconfig}', checks=[ + self.cmd('aks create -g akkeshar -n {} -s Standard_B2s -l westeurope -c 1 --generate-ssh-keys'.format(managed_cluster_name)) + self.cmd('aks get-credentials -g akkeshar -n {managed_cluster_name} -f {kubeconfig}') + self.cmd('connectedk8s connect -g akkeshar -n {name} -l eastus2euap --tags foo=doo --kube-config {kubeconfig}', checks=[ self.check('tags.foo', 'doo'), self.check('name', '{name}') ]) - self.cmd('connectedk8s show -g akkeshar-test2 -n {name}', checks=[ + self.cmd('connectedk8s show -g akkeshar -n {name}', checks=[ self.check('name', '{name}'), - self.check('resourceGroup', 'akkeshar-test2'), + self.check('resourceGroup', 'akkeshar'), self.check('tags.foo', 'doo') ]) - self.cmd('connectedk8s delete -g akkeshar-test2 -n {name} --kube-config {kubeconfig} -y') - self.cmd('aks delete -g akkeshar-test2 -n {} -y'.format(managed_cluster_name)) + self.cmd('connectedk8s delete -g akkeshar -n {name} --kube-config {kubeconfig} -y') + self.cmd('aks delete -g akkeshar -n {} -y'.format(managed_cluster_name)) + + # delete the kube config + os.remove("%s" % (_get_test_data_file(managed_cluster_name + '-config.yaml'))) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/__init__.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/__init__.py index aa536dff1e2..580fd6adae4 100644 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/__init__.py +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/__init__.py @@ -1,18 +1,19 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from .connected_kubernetes_client import ConnectedKubernetesClient -from .version import VERSION - -__all__ = ['ConnectedKubernetesClient'] +from ._connected_kubernetes_client import ConnectedKubernetesClient +from ._version import VERSION __version__ = VERSION +__all__ = ['ConnectedKubernetesClient'] +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/_configuration.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/_configuration.py new file mode 100644 index 00000000000..94b86be667a --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/_configuration.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies +from azure.mgmt.core.policies import ARMHttpLoggingPolicy + +from ._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + + +class ConnectedKubernetesClientConfiguration(Configuration): + """Configuration for ConnectedKubernetesClient. + + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(ConnectedKubernetesClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = "2021-03-01" + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-hybridkubernetes/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/_connected_kubernetes_client.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/_connected_kubernetes_client.py new file mode 100644 index 00000000000..9b129da7386 --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/_connected_kubernetes_client.py @@ -0,0 +1,94 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.mgmt.core import ARMPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Optional + + from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from ._configuration import ConnectedKubernetesClientConfiguration +from .operations import ConnectedClusterOperations +from .operations import Operations +from . import models + + +class ConnectedKubernetesClient(object): + """Azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster. + + :ivar connected_cluster: ConnectedClusterOperations operations + :vartype connected_cluster: connected_kubernetes_client.operations.ConnectedClusterOperations + :ivar operations: Operations operations + :vartype operations: connected_kubernetes_client.operations.Operations + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + base_url=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> None + if not base_url: + base_url = 'https://management.azure.com' + self._config = ConnectedKubernetesClientConfiguration(credential, subscription_id, **kwargs) + self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False + self._deserialize = Deserializer(client_models) + + self.connected_cluster = ConnectedClusterOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize) + + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> ConnectedKubernetesClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/_metadata.json b/src/connectedk8s/azext_connectedk8s/vendored_sdks/_metadata.json new file mode 100644 index 00000000000..f76dc3a23ee --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/_metadata.json @@ -0,0 +1,104 @@ +{ + "chosen_version": "2021-03-01", + "total_api_version_list": ["2021-03-01"], + "client": { + "name": "ConnectedKubernetesClient", + "filename": "_connected_kubernetes_client", + "description": "Azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "azure_arm": true, + "has_lro_operations": true, + "client_side_validation": false, + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ConnectedKubernetesClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ConnectedKubernetesClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + }, + "global_parameters": { + "sync": { + "credential": { + "signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "The ID of the target subscription.", + "docstring_type": "str", + "required": true + } + }, + "async": { + "credential": { + "signature": "credential: \"AsyncTokenCredential\",", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id: str,", + "description": "The ID of the target subscription.", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, subscription_id", + "service_client_specific": { + "sync": { + "api_version": { + "signature": "api_version=None, # type: Optional[str]", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url=None, # type: Optional[str]", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile=KnownProfiles.default, # type: KnownProfiles", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + }, + "async": { + "api_version": { + "signature": "api_version: Optional[str] = None,", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url: Optional[str] = None,", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile: KnownProfiles = KnownProfiles.default,", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + } + } + }, + "config": { + "credential": true, + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" + }, + "operation_groups": { + "connected_cluster": "ConnectedClusterOperations", + "operations": "Operations" + } +} \ No newline at end of file diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/version.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/_version.py similarity index 84% rename from src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/version.py rename to src/connectedk8s/azext_connectedk8s/vendored_sdks/_version.py index e7efe25ea7e..c47f66669f1 100644 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/version.py +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/_version.py @@ -1,13 +1,9 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.1" - +VERSION = "1.0.0" diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/connected_kubernetes_client.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/connected_kubernetes_client.py deleted file mode 100644 index 7be1f08b890..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/connected_kubernetes_client.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import SDKClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.connected_cluster_operations import ConnectedClusterOperations -from .operations.operations import Operations -from . import models - - -class ConnectedKubernetesClientConfiguration(AzureConfiguration): - """Configuration for ConnectedKubernetesClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ConnectedKubernetesClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-hybridkubernetes/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - - -class ConnectedKubernetesClient(SDKClient): - """Azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster - - :ivar config: Configuration for client. - :vartype config: ConnectedKubernetesClientConfiguration - - :ivar connected_cluster: ConnectedCluster operations - :vartype connected_cluster: azure.mgmt.hybridkubernetes.operations.ConnectedClusterOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.hybridkubernetes.operations.Operations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = ConnectedKubernetesClientConfiguration(credentials, subscription_id, base_url) - super(ConnectedKubernetesClient, self).__init__(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2021-03-01' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.connected_cluster = ConnectedClusterOperations( - self._client, self.config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/__init__.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/__init__.py index e338bd90bb5..2c3091d2c8b 100644 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/__init__.py +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/__init__.py @@ -1,71 +1,65 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- try: - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation - from .connected_cluster_identity_py3 import ConnectedClusterIdentity - from .system_data_py3 import SystemData - from .connected_cluster_py3 import ConnectedCluster - from .connected_cluster_patch_py3 import ConnectedClusterPatch - from .proxy_resource_py3 import ProxyResource - from .azure_entity_resource_py3 import AzureEntityResource - from .resource_py3 import Resource - from .tracked_resource_py3 import TrackedResource - from .error_additional_info_py3 import ErrorAdditionalInfo - from .error_detail_py3 import ErrorDetail - from .error_response_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import ConnectedCluster + from ._models_py3 import ConnectedClusterIdentity + from ._models_py3 import ConnectedClusterList + from ._models_py3 import ConnectedClusterPatch + from ._models_py3 import ErrorAdditionalInfo + from ._models_py3 import ErrorDetail + from ._models_py3 import ErrorResponse + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import OperationList + from ._models_py3 import Resource + from ._models_py3 import SystemData + from ._models_py3 import TrackedResource except (SyntaxError, ImportError): - from .operation_display import OperationDisplay - from .operation import Operation - from .connected_cluster_identity import ConnectedClusterIdentity - from .system_data import SystemData - from .connected_cluster import ConnectedCluster - from .connected_cluster_patch import ConnectedClusterPatch - from .proxy_resource import ProxyResource - from .azure_entity_resource import AzureEntityResource - from .resource import Resource - from .tracked_resource import TrackedResource - from .error_additional_info import ErrorAdditionalInfo - from .error_detail import ErrorDetail - from .error_response import ErrorResponse, ErrorResponseException -from .connected_cluster_paged import ConnectedClusterPaged -from .operation_paged import OperationPaged -from .connected_kubernetes_client_enums import ( - ResourceIdentityType, - ProvisioningState, + from ._models import ConnectedCluster # type: ignore + from ._models import ConnectedClusterIdentity # type: ignore + from ._models import ConnectedClusterList # type: ignore + from ._models import ConnectedClusterPatch # type: ignore + from ._models import ErrorAdditionalInfo # type: ignore + from ._models import ErrorDetail # type: ignore + from ._models import ErrorResponse # type: ignore + from ._models import Operation # type: ignore + from ._models import OperationDisplay # type: ignore + from ._models import OperationList # type: ignore + from ._models import Resource # type: ignore + from ._models import SystemData # type: ignore + from ._models import TrackedResource # type: ignore + +from ._connected_kubernetes_client_enums import ( ConnectivityStatus, CreatedByType, LastModifiedByType, + ProvisioningState, + ResourceIdentityType, ) __all__ = [ - 'OperationDisplay', - 'Operation', - 'ConnectedClusterIdentity', - 'SystemData', 'ConnectedCluster', + 'ConnectedClusterIdentity', + 'ConnectedClusterList', 'ConnectedClusterPatch', - 'ProxyResource', - 'AzureEntityResource', - 'Resource', - 'TrackedResource', 'ErrorAdditionalInfo', 'ErrorDetail', - 'ErrorResponse', 'ErrorResponseException', - 'ConnectedClusterPaged', - 'OperationPaged', - 'ResourceIdentityType', - 'ProvisioningState', + 'ErrorResponse', + 'Operation', + 'OperationDisplay', + 'OperationList', + 'Resource', + 'SystemData', + 'TrackedResource', 'ConnectivityStatus', 'CreatedByType', 'LastModifiedByType', + 'ProvisioningState', + 'ResourceIdentityType', ] diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/_connected_kubernetes_client_enums.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/_connected_kubernetes_client_enums.py new file mode 100644 index 00000000000..84f185bf193 --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/_connected_kubernetes_client_enums.py @@ -0,0 +1,75 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum, EnumMeta +from six import with_metaclass + +class _CaseInsensitiveEnumMeta(EnumMeta): + def __getitem__(self, name): + return super().__getitem__(name.upper()) + + def __getattr__(cls, name): + """Return the enum member matching `name` + We use __getattr__ instead of descriptors or inserting into the enum + class' __dict__ in order to support `name` and `value` being both + properties for enum members (which live in the class' __dict__) and + enum members themselves. + """ + try: + return cls._member_map_[name.upper()] + except KeyError: + raise AttributeError(name) + + +class ConnectivityStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Represents the connectivity status of the connected cluster. + """ + + CONNECTING = "Connecting" + CONNECTED = "Connected" + OFFLINE = "Offline" + EXPIRED = "Expired" + +class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity that created the resource. + """ + + USER = "User" + APPLICATION = "Application" + MANAGED_IDENTITY = "ManagedIdentity" + KEY = "Key" + +class LastModifiedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity that last modified the resource. + """ + + USER = "User" + APPLICATION = "Application" + MANAGED_IDENTITY = "ManagedIdentity" + KEY = "Key" + +class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The current deployment state of connectedClusters. + """ + + SUCCEEDED = "Succeeded" + FAILED = "Failed" + CANCELED = "Canceled" + PROVISIONING = "Provisioning" + UPDATING = "Updating" + DELETING = "Deleting" + ACCEPTED = "Accepted" + +class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity used for the connected cluster. The type 'SystemAssigned, includes a + system created identity. The type 'None' means no identity is assigned to the connected + cluster. + """ + + NONE = "None" + SYSTEM_ASSIGNED = "SystemAssigned" diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/_models.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/_models.py new file mode 100644 index 00000000000..030d3aba956 --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/_models.py @@ -0,0 +1,523 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + + +class Resource(msrest.serialization.Model): + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(TrackedResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.location = kwargs['location'] + + +class ConnectedCluster(TrackedResource): + """Represents a connected cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + :param identity: Required. The identity of the connected cluster. + :type identity: ~connected_kubernetes_client.models.ConnectedClusterIdentity + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~connected_kubernetes_client.models.SystemData + :param agent_public_key_certificate: Required. Base64 encoded public certificate used by the + agent to do the initial handshake to the backend services in Azure. + :type agent_public_key_certificate: str + :ivar kubernetes_version: The Kubernetes version of the connected cluster resource. + :vartype kubernetes_version: str + :ivar total_node_count: Number of nodes present in the connected cluster resource. + :vartype total_node_count: int + :ivar total_core_count: Number of CPU cores present in the connected cluster resource. + :vartype total_core_count: int + :ivar agent_version: Version of the agent running on the connected cluster resource. + :vartype agent_version: str + :param provisioning_state: Provisioning state of the connected cluster resource. Possible + values include: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", + "Accepted". + :type provisioning_state: str or ~connected_kubernetes_client.models.ProvisioningState + :param distribution: The Kubernetes distribution running on this connected cluster. + :type distribution: str + :param infrastructure: The infrastructure on which the Kubernetes cluster represented by this + connected cluster is running on. + :type infrastructure: str + :ivar offering: Connected cluster offering. + :vartype offering: str + :ivar managed_identity_certificate_expiration_time: Expiration time of the managed identity + certificate. + :vartype managed_identity_certificate_expiration_time: ~datetime.datetime + :ivar last_connectivity_time: Time representing the last instance when heart beat was received + from the cluster. + :vartype last_connectivity_time: ~datetime.datetime + :ivar connectivity_status: Represents the connectivity status of the connected cluster. + Possible values include: "Connecting", "Connected", "Offline", "Expired". + :vartype connectivity_status: str or ~connected_kubernetes_client.models.ConnectivityStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'identity': {'required': True}, + 'system_data': {'readonly': True}, + 'agent_public_key_certificate': {'required': True}, + 'kubernetes_version': {'readonly': True}, + 'total_node_count': {'readonly': True}, + 'total_core_count': {'readonly': True}, + 'agent_version': {'readonly': True}, + 'offering': {'readonly': True}, + 'managed_identity_certificate_expiration_time': {'readonly': True}, + 'last_connectivity_time': {'readonly': True}, + 'connectivity_status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'ConnectedClusterIdentity'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'agent_public_key_certificate': {'key': 'properties.agentPublicKeyCertificate', 'type': 'str'}, + 'kubernetes_version': {'key': 'properties.kubernetesVersion', 'type': 'str'}, + 'total_node_count': {'key': 'properties.totalNodeCount', 'type': 'int'}, + 'total_core_count': {'key': 'properties.totalCoreCount', 'type': 'int'}, + 'agent_version': {'key': 'properties.agentVersion', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'distribution': {'key': 'properties.distribution', 'type': 'str'}, + 'infrastructure': {'key': 'properties.infrastructure', 'type': 'str'}, + 'offering': {'key': 'properties.offering', 'type': 'str'}, + 'managed_identity_certificate_expiration_time': {'key': 'properties.managedIdentityCertificateExpirationTime', 'type': 'iso-8601'}, + 'last_connectivity_time': {'key': 'properties.lastConnectivityTime', 'type': 'iso-8601'}, + 'connectivity_status': {'key': 'properties.connectivityStatus', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConnectedCluster, self).__init__(**kwargs) + self.identity = kwargs['identity'] + self.system_data = None + self.agent_public_key_certificate = kwargs['agent_public_key_certificate'] + self.kubernetes_version = None + self.total_node_count = None + self.total_core_count = None + self.agent_version = None + self.provisioning_state = kwargs.get('provisioning_state', None) + self.distribution = kwargs.get('distribution', None) + self.infrastructure = kwargs.get('infrastructure', None) + self.offering = None + self.managed_identity_certificate_expiration_time = None + self.last_connectivity_time = None + self.connectivity_status = None + + +class ConnectedClusterIdentity(msrest.serialization.Model): + """Identity for the connected cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal id of connected cluster identity. This property will only be + provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the connected cluster. This property will only + be provided for a system assigned identity. + :vartype tenant_id: str + :param type: Required. The type of identity used for the connected cluster. The type + 'SystemAssigned, includes a system created identity. The type 'None' means no identity is + assigned to the connected cluster. Possible values include: "None", "SystemAssigned". Default + value: "SystemAssigned". + :type type: str or ~connected_kubernetes_client.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConnectedClusterIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', "SystemAssigned") + + +class ConnectedClusterList(msrest.serialization.Model): + """The paginated list of connected Clusters. + + :param value: The list of connected clusters. + :type value: list[~connected_kubernetes_client.models.ConnectedCluster] + :param next_link: The link to fetch the next page of connected cluster. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ConnectedCluster]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConnectedClusterList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class ConnectedClusterPatch(msrest.serialization.Model): + """Object containing updates for patch operations. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param properties: Describes the connected cluster resource properties that can be updated + during PATCH operation. + :type properties: str + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConnectedClusterPatch, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.properties = kwargs.get('properties', None) + + +class ErrorAdditionalInfo(msrest.serialization.Model): + """The resource management error additional info. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: str + """ + + _validation = { + 'type': {'readonly': True}, + 'info': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorAdditionalInfo, self).__init__(**kwargs) + self.type = None + self.info = None + + +class ErrorDetail(msrest.serialization.Model): + """The error detail. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: list[~connected_kubernetes_client.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: list[~connected_kubernetes_client.models.ErrorAdditionalInfo] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + 'additional_info': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetail]'}, + 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorDetail, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + self.additional_info = None + + +class ErrorResponse(msrest.serialization.Model): + """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). + + :param error: The error object. + :type error: ~connected_kubernetes_client.models.ErrorDetail + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetail'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class Operation(msrest.serialization.Model): + """The Connected cluster API operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Operation name: {Microsoft.Kubernetes}/{resource}/{operation}. + :vartype name: str + :ivar display: The object that represents the operation. + :vartype display: ~connected_kubernetes_client.models.OperationDisplay + """ + + _validation = { + 'name': {'readonly': True}, + 'display': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__( + self, + **kwargs + ): + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = None + + +class OperationDisplay(msrest.serialization.Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.connectedClusters. + :type provider: str + :param resource: Connected Cluster Resource on which the operation is performed. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class OperationList(msrest.serialization.Model): + """The paginated list of connected cluster API operations. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The list of connected cluster API operations. + :vartype value: list[~connected_kubernetes_client.models.Operation] + :param next_link: The link to fetch the next page of connected cluster API operations. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationList, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~connected_kubernetes_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~connected_kubernetes_client.models.LastModifiedByType + :param last_modified_at: The timestamp of resource modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/_models_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/_models_py3.py new file mode 100644 index 00000000000..90e1b0bd198 --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/_models_py3.py @@ -0,0 +1,563 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +import datetime +from typing import Dict, List, Optional, Union + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + +from ._connected_kubernetes_client_enums import * + + +class Resource(msrest.serialization.Model): + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + +class ConnectedCluster(TrackedResource): + """Represents a connected cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + :param identity: Required. The identity of the connected cluster. + :type identity: ~connected_kubernetes_client.models.ConnectedClusterIdentity + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~connected_kubernetes_client.models.SystemData + :param agent_public_key_certificate: Required. Base64 encoded public certificate used by the + agent to do the initial handshake to the backend services in Azure. + :type agent_public_key_certificate: str + :ivar kubernetes_version: The Kubernetes version of the connected cluster resource. + :vartype kubernetes_version: str + :ivar total_node_count: Number of nodes present in the connected cluster resource. + :vartype total_node_count: int + :ivar total_core_count: Number of CPU cores present in the connected cluster resource. + :vartype total_core_count: int + :ivar agent_version: Version of the agent running on the connected cluster resource. + :vartype agent_version: str + :param provisioning_state: Provisioning state of the connected cluster resource. Possible + values include: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", + "Accepted". + :type provisioning_state: str or ~connected_kubernetes_client.models.ProvisioningState + :param distribution: The Kubernetes distribution running on this connected cluster. + :type distribution: str + :param infrastructure: The infrastructure on which the Kubernetes cluster represented by this + connected cluster is running on. + :type infrastructure: str + :ivar offering: Connected cluster offering. + :vartype offering: str + :ivar managed_identity_certificate_expiration_time: Expiration time of the managed identity + certificate. + :vartype managed_identity_certificate_expiration_time: ~datetime.datetime + :ivar last_connectivity_time: Time representing the last instance when heart beat was received + from the cluster. + :vartype last_connectivity_time: ~datetime.datetime + :ivar connectivity_status: Represents the connectivity status of the connected cluster. + Possible values include: "Connecting", "Connected", "Offline", "Expired". + :vartype connectivity_status: str or ~connected_kubernetes_client.models.ConnectivityStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'identity': {'required': True}, + 'system_data': {'readonly': True}, + 'agent_public_key_certificate': {'required': True}, + 'kubernetes_version': {'readonly': True}, + 'total_node_count': {'readonly': True}, + 'total_core_count': {'readonly': True}, + 'agent_version': {'readonly': True}, + 'offering': {'readonly': True}, + 'managed_identity_certificate_expiration_time': {'readonly': True}, + 'last_connectivity_time': {'readonly': True}, + 'connectivity_status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'ConnectedClusterIdentity'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'agent_public_key_certificate': {'key': 'properties.agentPublicKeyCertificate', 'type': 'str'}, + 'kubernetes_version': {'key': 'properties.kubernetesVersion', 'type': 'str'}, + 'total_node_count': {'key': 'properties.totalNodeCount', 'type': 'int'}, + 'total_core_count': {'key': 'properties.totalCoreCount', 'type': 'int'}, + 'agent_version': {'key': 'properties.agentVersion', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'distribution': {'key': 'properties.distribution', 'type': 'str'}, + 'infrastructure': {'key': 'properties.infrastructure', 'type': 'str'}, + 'offering': {'key': 'properties.offering', 'type': 'str'}, + 'managed_identity_certificate_expiration_time': {'key': 'properties.managedIdentityCertificateExpirationTime', 'type': 'iso-8601'}, + 'last_connectivity_time': {'key': 'properties.lastConnectivityTime', 'type': 'iso-8601'}, + 'connectivity_status': {'key': 'properties.connectivityStatus', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + identity: "ConnectedClusterIdentity", + agent_public_key_certificate: str, + tags: Optional[Dict[str, str]] = None, + provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, + distribution: Optional[str] = None, + infrastructure: Optional[str] = None, + **kwargs + ): + super(ConnectedCluster, self).__init__(tags=tags, location=location, **kwargs) + self.identity = identity + self.system_data = None + self.agent_public_key_certificate = agent_public_key_certificate + self.kubernetes_version = None + self.total_node_count = None + self.total_core_count = None + self.agent_version = None + self.provisioning_state = provisioning_state + self.distribution = distribution + self.infrastructure = infrastructure + self.offering = None + self.managed_identity_certificate_expiration_time = None + self.last_connectivity_time = None + self.connectivity_status = None + + +class ConnectedClusterIdentity(msrest.serialization.Model): + """Identity for the connected cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal id of connected cluster identity. This property will only be + provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the connected cluster. This property will only + be provided for a system assigned identity. + :vartype tenant_id: str + :param type: Required. The type of identity used for the connected cluster. The type + 'SystemAssigned, includes a system created identity. The type 'None' means no identity is + assigned to the connected cluster. Possible values include: "None", "SystemAssigned". Default + value: "SystemAssigned". + :type type: str or ~connected_kubernetes_client.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + type: Union[str, "ResourceIdentityType"] = "SystemAssigned", + **kwargs + ): + super(ConnectedClusterIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + + +class ConnectedClusterList(msrest.serialization.Model): + """The paginated list of connected Clusters. + + :param value: The list of connected clusters. + :type value: list[~connected_kubernetes_client.models.ConnectedCluster] + :param next_link: The link to fetch the next page of connected cluster. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ConnectedCluster]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["ConnectedCluster"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(ConnectedClusterList, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class ConnectedClusterPatch(msrest.serialization.Model): + """Object containing updates for patch operations. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param properties: Describes the connected cluster resource properties that can be updated + during PATCH operation. + :type properties: str + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'str'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + properties: Optional[str] = None, + **kwargs + ): + super(ConnectedClusterPatch, self).__init__(**kwargs) + self.tags = tags + self.properties = properties + + +class ErrorAdditionalInfo(msrest.serialization.Model): + """The resource management error additional info. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: str + """ + + _validation = { + 'type': {'readonly': True}, + 'info': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorAdditionalInfo, self).__init__(**kwargs) + self.type = None + self.info = None + + +class ErrorDetail(msrest.serialization.Model): + """The error detail. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: list[~connected_kubernetes_client.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: list[~connected_kubernetes_client.models.ErrorAdditionalInfo] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + 'additional_info': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetail]'}, + 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorDetail, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + self.additional_info = None + + +class ErrorResponse(msrest.serialization.Model): + """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). + + :param error: The error object. + :type error: ~connected_kubernetes_client.models.ErrorDetail + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetail'}, + } + + def __init__( + self, + *, + error: Optional["ErrorDetail"] = None, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.error = error + + +class Operation(msrest.serialization.Model): + """The Connected cluster API operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Operation name: {Microsoft.Kubernetes}/{resource}/{operation}. + :vartype name: str + :ivar display: The object that represents the operation. + :vartype display: ~connected_kubernetes_client.models.OperationDisplay + """ + + _validation = { + 'name': {'readonly': True}, + 'display': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__( + self, + **kwargs + ): + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = None + + +class OperationDisplay(msrest.serialization.Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.connectedClusters. + :type provider: str + :param resource: Connected Cluster Resource on which the operation is performed. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + *, + provider: Optional[str] = None, + resource: Optional[str] = None, + operation: Optional[str] = None, + description: Optional[str] = None, + **kwargs + ): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class OperationList(msrest.serialization.Model): + """The paginated list of connected cluster API operations. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The list of connected cluster API operations. + :vartype value: list[~connected_kubernetes_client.models.Operation] + :param next_link: The link to fetch the next page of connected cluster API operations. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(OperationList, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~connected_kubernetes_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~connected_kubernetes_client.models.LastModifiedByType + :param last_modified_at: The timestamp of resource modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "LastModifiedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/azure_entity_resource.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/azure_entity_resource.py deleted file mode 100644 index 695d8ed2d99..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/azure_entity_resource.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class AzureEntityResource(Resource): - """Entity Resource. - - The resource model definition for an Azure Resource Manager resource with - an etag. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :ivar etag: Resource Etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/azure_entity_resource_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/azure_entity_resource_py3.py deleted file mode 100644 index 04504109e71..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/azure_entity_resource_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class AzureEntityResource(Resource): - """Entity Resource. - - The resource model definition for an Azure Resource Manager resource with - an etag. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :ivar etag: Resource Etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster.py deleted file mode 100644 index cd269d452c1..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource import TrackedResource - - -class ConnectedCluster(TrackedResource): - """Represents a connected cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param identity: Required. The identity of the connected cluster. - :type identity: - ~azure.mgmt.hybridkubernetes.models.ConnectedClusterIdentity - :param agent_public_key_certificate: Required. Base64 encoded public - certificate used by the agent to do the initial handshake to the backend - services in Azure. - :type agent_public_key_certificate: str - :ivar kubernetes_version: The Kubernetes version of the connected cluster - resource - :vartype kubernetes_version: str - :ivar total_node_count: Number of nodes present in the connected cluster - resource - :vartype total_node_count: int - :ivar total_core_count: Number of CPU cores present in the connected - cluster resource - :vartype total_core_count: int - :ivar agent_version: Version of the agent running on the connected cluster - resource - :vartype agent_version: str - :param provisioning_state: Provisioning state of the connected cluster - resource. Possible values include: 'Succeeded', 'Failed', 'Canceled', - 'Provisioning', 'Updating', 'Deleting', 'Accepted' - :type provisioning_state: str or - ~azure.mgmt.hybridkubernetes.models.ProvisioningState - :param distribution: The Kubernetes distribution running on this connected - cluster. - :type distribution: str - :param infrastructure: The infrastructure on which the Kubernetes cluster - represented by this connected cluster is running on. - :type infrastructure: str - :ivar offering: Connected cluster offering - :vartype offering: str - :ivar managed_identity_certificate_expiration_time: Expiration time of the - managed identity certificate - :vartype managed_identity_certificate_expiration_time: datetime - :ivar last_connectivity_time: Time representing the last instance when - heart beat was received from the cluster - :vartype last_connectivity_time: datetime - :ivar connectivity_status: Represents the connectivity status of the - connected cluster. Possible values include: 'Connecting', 'Connected', - 'Offline', 'Expired' - :vartype connectivity_status: str or - ~azure.mgmt.hybridkubernetes.models.ConnectivityStatus - :ivar system_data: Metadata pertaining to creation and last modification - of the resource - :vartype system_data: ~azure.mgmt.hybridkubernetes.models.SystemData - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'identity': {'required': True}, - 'agent_public_key_certificate': {'required': True}, - 'kubernetes_version': {'readonly': True}, - 'total_node_count': {'readonly': True}, - 'total_core_count': {'readonly': True}, - 'agent_version': {'readonly': True}, - 'offering': {'readonly': True}, - 'managed_identity_certificate_expiration_time': {'readonly': True}, - 'last_connectivity_time': {'readonly': True}, - 'connectivity_status': {'readonly': True}, - 'system_data': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'ConnectedClusterIdentity'}, - 'agent_public_key_certificate': {'key': 'properties.agentPublicKeyCertificate', 'type': 'str'}, - 'kubernetes_version': {'key': 'properties.kubernetesVersion', 'type': 'str'}, - 'total_node_count': {'key': 'properties.totalNodeCount', 'type': 'int'}, - 'total_core_count': {'key': 'properties.totalCoreCount', 'type': 'int'}, - 'agent_version': {'key': 'properties.agentVersion', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'distribution': {'key': 'properties.distribution', 'type': 'str'}, - 'infrastructure': {'key': 'properties.infrastructure', 'type': 'str'}, - 'offering': {'key': 'properties.offering', 'type': 'str'}, - 'managed_identity_certificate_expiration_time': {'key': 'properties.managedIdentityCertificateExpirationTime', 'type': 'iso-8601'}, - 'last_connectivity_time': {'key': 'properties.lastConnectivityTime', 'type': 'iso-8601'}, - 'connectivity_status': {'key': 'properties.connectivityStatus', 'type': 'str'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, - } - - def __init__(self, **kwargs): - super(ConnectedCluster, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) - self.agent_public_key_certificate = kwargs.get('agent_public_key_certificate', None) - self.kubernetes_version = None - self.total_node_count = None - self.total_core_count = None - self.agent_version = None - self.provisioning_state = kwargs.get('provisioning_state', None) - self.distribution = kwargs.get('distribution', None) - self.infrastructure = kwargs.get('infrastructure', None) - self.offering = None - self.managed_identity_certificate_expiration_time = None - self.last_connectivity_time = None - self.connectivity_status = None - self.system_data = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_identity.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_identity.py deleted file mode 100644 index 490b414a380..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_identity.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectedClusterIdentity(Model): - """Identity for the connected cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar principal_id: The principal id of connected cluster identity. This - property will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id associated with the connected cluster. This - property will only be provided for a system assigned identity. - :vartype tenant_id: str - :param type: Required. The type of identity used for the connected - cluster. The type 'SystemAssigned, includes a system created identity. The - type 'None' means no identity is assigned to the connected cluster. - Possible values include: 'None', 'SystemAssigned'. Default value: - "SystemAssigned" . - :type type: str or - ~azure.mgmt.hybridkubernetes.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, **kwargs): - super(ConnectedClusterIdentity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = kwargs.get('type', "SystemAssigned") diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_identity_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_identity_py3.py deleted file mode 100644 index ed309c5e2b9..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_identity_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectedClusterIdentity(Model): - """Identity for the connected cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar principal_id: The principal id of connected cluster identity. This - property will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id associated with the connected cluster. This - property will only be provided for a system assigned identity. - :vartype tenant_id: str - :param type: Required. The type of identity used for the connected - cluster. The type 'SystemAssigned, includes a system created identity. The - type 'None' means no identity is assigned to the connected cluster. - Possible values include: 'None', 'SystemAssigned'. Default value: - "SystemAssigned" . - :type type: str or - ~azure.mgmt.hybridkubernetes.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, *, type="SystemAssigned", **kwargs) -> None: - super(ConnectedClusterIdentity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = type diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_paged.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_paged.py deleted file mode 100644 index 55600c14031..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ConnectedClusterPaged(Paged): - """ - A paging container for iterating over a list of :class:`ConnectedCluster ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ConnectedCluster]'} - } - - def __init__(self, *args, **kwargs): - - super(ConnectedClusterPaged, self).__init__(*args, **kwargs) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_patch.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_patch.py deleted file mode 100644 index 6ce0901b210..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_patch.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectedClusterPatch(Model): - """Object containing updates for patch operations. - - :param tags: Resource tags. - :type tags: dict[str, str] - :param properties: Describes the connected cluster resource properties - that can be updated during PATCH operation. - :type properties: object - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(ConnectedClusterPatch, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.properties = kwargs.get('properties', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_patch_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_patch_py3.py deleted file mode 100644 index e8133910184..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_patch_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectedClusterPatch(Model): - """Object containing updates for patch operations. - - :param tags: Resource tags. - :type tags: dict[str, str] - :param properties: Describes the connected cluster resource properties - that can be updated during PATCH operation. - :type properties: object - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, *, tags=None, properties=None, **kwargs) -> None: - super(ConnectedClusterPatch, self).__init__(**kwargs) - self.tags = tags - self.properties = properties diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_py3.py deleted file mode 100644 index 9dc730e1273..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_cluster_py3.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource_py3 import TrackedResource - - -class ConnectedCluster(TrackedResource): - """Represents a connected cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param identity: Required. The identity of the connected cluster. - :type identity: - ~azure.mgmt.hybridkubernetes.models.ConnectedClusterIdentity - :param agent_public_key_certificate: Required. Base64 encoded public - certificate used by the agent to do the initial handshake to the backend - services in Azure. - :type agent_public_key_certificate: str - :ivar kubernetes_version: The Kubernetes version of the connected cluster - resource - :vartype kubernetes_version: str - :ivar total_node_count: Number of nodes present in the connected cluster - resource - :vartype total_node_count: int - :ivar total_core_count: Number of CPU cores present in the connected - cluster resource - :vartype total_core_count: int - :ivar agent_version: Version of the agent running on the connected cluster - resource - :vartype agent_version: str - :param provisioning_state: Provisioning state of the connected cluster - resource. Possible values include: 'Succeeded', 'Failed', 'Canceled', - 'Provisioning', 'Updating', 'Deleting', 'Accepted' - :type provisioning_state: str or - ~azure.mgmt.hybridkubernetes.models.ProvisioningState - :param distribution: The Kubernetes distribution running on this connected - cluster. - :type distribution: str - :param infrastructure: The infrastructure on which the Kubernetes cluster - represented by this connected cluster is running on. - :type infrastructure: str - :ivar offering: Connected cluster offering - :vartype offering: str - :ivar managed_identity_certificate_expiration_time: Expiration time of the - managed identity certificate - :vartype managed_identity_certificate_expiration_time: datetime - :ivar last_connectivity_time: Time representing the last instance when - heart beat was received from the cluster - :vartype last_connectivity_time: datetime - :ivar connectivity_status: Represents the connectivity status of the - connected cluster. Possible values include: 'Connecting', 'Connected', - 'Offline', 'Expired' - :vartype connectivity_status: str or - ~azure.mgmt.hybridkubernetes.models.ConnectivityStatus - :ivar system_data: Metadata pertaining to creation and last modification - of the resource - :vartype system_data: ~azure.mgmt.hybridkubernetes.models.SystemData - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'identity': {'required': True}, - 'agent_public_key_certificate': {'required': True}, - 'kubernetes_version': {'readonly': True}, - 'total_node_count': {'readonly': True}, - 'total_core_count': {'readonly': True}, - 'agent_version': {'readonly': True}, - 'offering': {'readonly': True}, - 'managed_identity_certificate_expiration_time': {'readonly': True}, - 'last_connectivity_time': {'readonly': True}, - 'connectivity_status': {'readonly': True}, - 'system_data': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'ConnectedClusterIdentity'}, - 'agent_public_key_certificate': {'key': 'properties.agentPublicKeyCertificate', 'type': 'str'}, - 'kubernetes_version': {'key': 'properties.kubernetesVersion', 'type': 'str'}, - 'total_node_count': {'key': 'properties.totalNodeCount', 'type': 'int'}, - 'total_core_count': {'key': 'properties.totalCoreCount', 'type': 'int'}, - 'agent_version': {'key': 'properties.agentVersion', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'distribution': {'key': 'properties.distribution', 'type': 'str'}, - 'infrastructure': {'key': 'properties.infrastructure', 'type': 'str'}, - 'offering': {'key': 'properties.offering', 'type': 'str'}, - 'managed_identity_certificate_expiration_time': {'key': 'properties.managedIdentityCertificateExpirationTime', 'type': 'iso-8601'}, - 'last_connectivity_time': {'key': 'properties.lastConnectivityTime', 'type': 'iso-8601'}, - 'connectivity_status': {'key': 'properties.connectivityStatus', 'type': 'str'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, - } - - def __init__(self, *, location: str, identity, agent_public_key_certificate: str, tags=None, provisioning_state=None, distribution: str=None, infrastructure: str=None, **kwargs) -> None: - super(ConnectedCluster, self).__init__(tags=tags, location=location, **kwargs) - self.identity = identity - self.agent_public_key_certificate = agent_public_key_certificate - self.kubernetes_version = None - self.total_node_count = None - self.total_core_count = None - self.agent_version = None - self.provisioning_state = provisioning_state - self.distribution = distribution - self.infrastructure = infrastructure - self.offering = None - self.managed_identity_certificate_expiration_time = None - self.last_connectivity_time = None - self.connectivity_status = None - self.system_data = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_kubernetes_client_enums.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_kubernetes_client_enums.py deleted file mode 100644 index ec9a12306e5..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/connected_kubernetes_client_enums.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class ResourceIdentityType(str, Enum): - - none = "None" - system_assigned = "SystemAssigned" - - -class ProvisioningState(str, Enum): - - succeeded = "Succeeded" - failed = "Failed" - canceled = "Canceled" - provisioning = "Provisioning" - updating = "Updating" - deleting = "Deleting" - accepted = "Accepted" - - -class ConnectivityStatus(str, Enum): - - connecting = "Connecting" - connected = "Connected" - offline = "Offline" - expired = "Expired" - - -class CreatedByType(str, Enum): - - user = "User" - application = "Application" - managed_identity = "ManagedIdentity" - key = "Key" - - -class LastModifiedByType(str, Enum): - - user = "User" - application = "Application" - managed_identity = "ManagedIdentity" - key = "Key" diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_additional_info.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_additional_info.py deleted file mode 100644 index 8667aa7f24b..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_additional_info.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorAdditionalInfo(Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: object - """ - - _validation = { - 'type': {'readonly': True}, - 'info': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(ErrorAdditionalInfo, self).__init__(**kwargs) - self.type = None - self.info = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_additional_info_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_additional_info_py3.py deleted file mode 100644 index a18439b9247..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_additional_info_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorAdditionalInfo(Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: object - """ - - _validation = { - 'type': {'readonly': True}, - 'info': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, - } - - def __init__(self, **kwargs) -> None: - super(ErrorAdditionalInfo, self).__init__(**kwargs) - self.type = None - self.info = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_detail.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_detail.py deleted file mode 100644 index 0201b8df3f2..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_detail.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorDetail(Model): - """The error detail. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.hybridkubernetes.models.ErrorDetail] - :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure.mgmt.hybridkubernetes.models.ErrorAdditionalInfo] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'additional_info': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDetail]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, - } - - def __init__(self, **kwargs): - super(ErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.additional_info = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_detail_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_detail_py3.py deleted file mode 100644 index 5e82714fa9a..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_detail_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorDetail(Model): - """The error detail. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.hybridkubernetes.models.ErrorDetail] - :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure.mgmt.hybridkubernetes.models.ErrorAdditionalInfo] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'additional_info': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDetail]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, - } - - def __init__(self, **kwargs) -> None: - super(ErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.additional_info = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_response.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_response.py deleted file mode 100644 index a562916dbc6..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_response.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response. - - Common error response for all Azure Resource Manager APIs to return error - details for failed operations. (This also follows the OData error response - format.). - - :param error: The error object. - :type error: ~azure.mgmt.hybridkubernetes.models.ErrorDetail - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDetail'}, - } - - def __init__(self, **kwargs): - super(ErrorResponse, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_response_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_response_py3.py deleted file mode 100644 index 2b5081a3866..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/error_response_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response. - - Common error response for all Azure Resource Manager APIs to return error - details for failed operations. (This also follows the OData error response - format.). - - :param error: The error object. - :type error: ~azure.mgmt.hybridkubernetes.models.ErrorDetail - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDetail'}, - } - - def __init__(self, *, error=None, **kwargs) -> None: - super(ErrorResponse, self).__init__(**kwargs) - self.error = error - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation.py deleted file mode 100644 index a92f2775c6f..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """The Connected cluster API operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Operation name: {Microsoft.Kubernetes}/{resource}/{operation} - :vartype name: str - :ivar display: The object that represents the operation. - :vartype display: ~azure.mgmt.hybridkubernetes.models.OperationDisplay - """ - - _validation = { - 'name': {'readonly': True}, - 'display': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_display.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_display.py deleted file mode 100644 index d7d73494c89..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_display.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.connectedClusters - :type provider: str - :param resource: Connected Cluster Resource on which the operation is - performed - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_display_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_display_py3.py deleted file mode 100644 index ec4cfb57ef1..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_display_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.connectedClusters - :type provider: str - :param resource: Connected Cluster Resource on which the operation is - performed - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_paged.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_paged.py deleted file mode 100644 index 56892781d2b..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_py3.py deleted file mode 100644 index d0871dcc46f..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/operation_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """The Connected cluster API operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Operation name: {Microsoft.Kubernetes}/{resource}/{operation} - :vartype name: str - :ivar display: The object that represents the operation. - :vartype display: ~azure.mgmt.hybridkubernetes.models.OperationDisplay - """ - - _validation = { - 'name': {'readonly': True}, - 'display': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/proxy_resource.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/proxy_resource.py deleted file mode 100644 index 76698f8e638..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/proxy_resource.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ProxyResource(Resource): - """Proxy Resource. - - The resource model definition for a Azure Resource Manager proxy resource. - It will not have tags and a location. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProxyResource, self).__init__(**kwargs) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/proxy_resource_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/proxy_resource_py3.py deleted file mode 100644 index cda7af9567b..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/proxy_resource_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ProxyResource(Resource): - """Proxy Resource. - - The resource model definition for a Azure Resource Manager proxy resource. - It will not have tags and a location. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ProxyResource, self).__init__(**kwargs) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/resource.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/resource.py deleted file mode 100644 index 67e3ec63baa..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/resource.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Common fields that are returned in the response for all Azure Resource - Manager resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/resource_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/resource_py3.py deleted file mode 100644 index 52780ddb943..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/resource_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Common fields that are returned in the response for all Azure Resource - Manager resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/system_data.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/system_data.py deleted file mode 100644 index ba29cb21ce1..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/system_data.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SystemData(Model): - """Metadata pertaining to creation and last modification of the resource. - - :param created_by: The identity that created the resource. - :type created_by: str - :param created_by_type: The type of identity that created the resource. - Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' - :type created_by_type: str or - ~azure.mgmt.hybridkubernetes.models.CreatedByType - :param created_at: The timestamp of resource creation (UTC). - :type created_at: datetime - :param last_modified_by: The identity that last modified the resource. - :type last_modified_by: str - :param last_modified_by_type: The type of identity that last modified the - resource. Possible values include: 'User', 'Application', - 'ManagedIdentity', 'Key' - :type last_modified_by_type: str or - ~azure.mgmt.hybridkubernetes.models.LastModifiedByType - :param last_modified_at: The timestamp of resource modification (UTC). - :type last_modified_at: datetime - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'created_by_type': {'key': 'createdByType', 'type': 'str'}, - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, - 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, - 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(SystemData, self).__init__(**kwargs) - self.created_by = kwargs.get('created_by', None) - self.created_by_type = kwargs.get('created_by_type', None) - self.created_at = kwargs.get('created_at', None) - self.last_modified_by = kwargs.get('last_modified_by', None) - self.last_modified_by_type = kwargs.get('last_modified_by_type', None) - self.last_modified_at = kwargs.get('last_modified_at', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/system_data_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/system_data_py3.py deleted file mode 100644 index 865f9525f0d..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/system_data_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SystemData(Model): - """Metadata pertaining to creation and last modification of the resource. - - :param created_by: The identity that created the resource. - :type created_by: str - :param created_by_type: The type of identity that created the resource. - Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' - :type created_by_type: str or - ~azure.mgmt.hybridkubernetes.models.CreatedByType - :param created_at: The timestamp of resource creation (UTC). - :type created_at: datetime - :param last_modified_by: The identity that last modified the resource. - :type last_modified_by: str - :param last_modified_by_type: The type of identity that last modified the - resource. Possible values include: 'User', 'Application', - 'ManagedIdentity', 'Key' - :type last_modified_by_type: str or - ~azure.mgmt.hybridkubernetes.models.LastModifiedByType - :param last_modified_at: The timestamp of resource modification (UTC). - :type last_modified_at: datetime - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'created_by_type': {'key': 'createdByType', 'type': 'str'}, - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, - 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, - 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, - } - - def __init__(self, *, created_by: str=None, created_by_type=None, created_at=None, last_modified_by: str=None, last_modified_by_type=None, last_modified_at=None, **kwargs) -> None: - super(SystemData, self).__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/tracked_resource.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/tracked_resource.py deleted file mode 100644 index 6d2a30bc256..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/tracked_resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class TrackedResource(Resource): - """Tracked Resource. - - The resource model definition for an Azure Resource Manager tracked top - level resource which has 'tags' and a 'location'. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs.get('location', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/tracked_resource_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/tracked_resource_py3.py deleted file mode 100644 index 0d465ca30d8..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/models/tracked_resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class TrackedResource(Resource): - """Tracked Resource. - - The resource model definition for an Azure Resource Manager tracked top - level resource which has 'tags' and a 'location'. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, *, location: str, tags=None, **kwargs) -> None: - super(TrackedResource, self).__init__(**kwargs) - self.tags = tags - self.location = location diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/__init__.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/__init__.py index 86d5be1f5b6..4bf80ae81ea 100644 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/__init__.py +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/__init__.py @@ -1,16 +1,13 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from .connected_cluster_operations import ConnectedClusterOperations -from .operations import Operations +from ._connected_cluster_operations import ConnectedClusterOperations +from ._operations import Operations __all__ = [ 'ConnectedClusterOperations', diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/_connected_cluster_operations.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/_connected_cluster_operations.py new file mode 100644 index 00000000000..9efeb126fea --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/_connected_cluster_operations.py @@ -0,0 +1,572 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ConnectedClusterOperations(object): + """ConnectedClusterOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~connected_kubernetes_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _create_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + connected_cluster, # type: "_models.ConnectedCluster" + **kwargs # type: Any + ): + # type: (...) -> "_models.ConnectedCluster" + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(connected_cluster, 'ConnectedCluster') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def begin_create( + self, + resource_group_name, # type: str + cluster_name, # type: str + connected_cluster, # type: "_models.ConnectedCluster" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.ConnectedCluster"] + """Register a new Kubernetes cluster with Azure Resource Manager. + + API to register a new Kubernetes cluster and create a tracked resource in Azure Resource + Manager (ARM). + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the Kubernetes cluster on which get is called. + :type cluster_name: str + :param connected_cluster: Parameters supplied to Create a Connected Cluster. + :type connected_cluster: ~connected_kubernetes_client.models.ConnectedCluster + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either ConnectedCluster or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~connected_kubernetes_client.models.ConnectedCluster] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedCluster"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + connected_cluster=connected_cluster, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def update( + self, + resource_group_name, # type: str + cluster_name, # type: str + connected_cluster_patch, # type: "_models.ConnectedClusterPatch" + **kwargs # type: Any + ): + # type: (...) -> "_models.ConnectedCluster" + """Updates a connected cluster. + + API to update certain properties of the connected cluster resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the Kubernetes cluster on which get is called. + :type cluster_name: str + :param connected_cluster_patch: Parameters supplied to update Connected Cluster. + :type connected_cluster_patch: ~connected_kubernetes_client.models.ConnectedClusterPatch + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConnectedCluster, or the result of cls(response) + :rtype: ~connected_kubernetes_client.models.ConnectedCluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(connected_cluster_patch, 'ConnectedClusterPatch') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + cluster_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ConnectedCluster" + """Get the properties of the specified connected cluster. + + Returns the properties of the specified connected cluster, including name, identity, + properties, and additional cluster details. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the Kubernetes cluster on which get is called. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConnectedCluster, or the result of cls(response) + :rtype: ~connected_kubernetes_client.models.ConnectedCluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + cluster_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Delete a connected cluster. + + Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM). + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the Kubernetes cluster on which get is called. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ConnectedClusterList"] + """Lists all connected clusters. + + API to enumerate registered connected K8s clusters under a Resource Group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ConnectedClusterList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~connected_kubernetes_client.models.ConnectedClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ConnectedClusterList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters'} # type: ignore + + def list_by_subscription( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ConnectedClusterList"] + """Lists all connected clusters. + + API to enumerate registered connected K8s clusters under a Subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ConnectedClusterList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~connected_kubernetes_client.models.ConnectedClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ConnectedClusterList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kubernetes/connectedClusters'} # type: ignore diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/_operations.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/_operations.py new file mode 100644 index 00000000000..4effb139b9c --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/_operations.py @@ -0,0 +1,110 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class Operations(object): + """Operations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~connected_kubernetes_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.OperationList"] + """Lists all of the available API operations for Connected Cluster resource. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OperationList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~connected_kubernetes_client.models.OperationList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.get.metadata['url'] # type: ignore + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('OperationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + get.metadata = {'url': '/providers/Microsoft.Kubernetes/operations'} # type: ignore diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/connected_cluster_operations.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/connected_cluster_operations.py deleted file mode 100644 index 80e4cfcd3a4..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/connected_cluster_operations.py +++ /dev/null @@ -1,508 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class ConnectedClusterOperations(object): - """ConnectedClusterOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2021-03-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2021-03-01" - - self.config = config - - - def _create_initial( - self, resource_group_name, cluster_name, connected_cluster, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(connected_cluster, 'ConnectedCluster') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ConnectedCluster', response) - if response.status_code == 201: - deserialized = self._deserialize('ConnectedCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def create( - self, resource_group_name, cluster_name, connected_cluster, custom_headers=None, raw=False, polling=True, **operation_config): - """Register a new Kubernetes cluster with Azure Resource Manager. - - API to register a new Kubernetes cluster and create a tracked resource - in Azure Resource Manager (ARM). - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param cluster_name: The name of the Kubernetes cluster on which get - is called. - :type cluster_name: str - :param connected_cluster: Parameters supplied to Create a Connected - Cluster. - :type connected_cluster: - ~azure.mgmt.hybridkubernetes.models.ConnectedCluster - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns ConnectedCluster or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.hybridkubernetes.models.ConnectedCluster] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.hybridkubernetes.models.ConnectedCluster]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - connected_cluster=connected_cluster, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('ConnectedCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} - - def update( - self, resource_group_name, cluster_name, tags=None, properties=None, custom_headers=None, raw=False, **operation_config): - """Updates a connected cluster. - - API to update certain properties of the connected cluster resource. - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param cluster_name: The name of the Kubernetes cluster on which get - is called. - :type cluster_name: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param properties: Describes the connected cluster resource properties - that can be updated during PATCH operation. - :type properties: object - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ConnectedCluster or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.hybridkubernetes.models.ConnectedCluster or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - connected_cluster_patch = models.ConnectedClusterPatch(tags=tags, properties=properties) - - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(connected_cluster_patch, 'ConnectedClusterPatch') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ConnectedCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} - - def get( - self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): - """Get the properties of the specified connected cluster. - - Returns the properties of the specified connected cluster, including - name, identity, properties, and additional cluster details. - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param cluster_name: The name of the Kubernetes cluster on which get - is called. - :type cluster_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ConnectedCluster or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.hybridkubernetes.models.ConnectedCluster or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ConnectedCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} - - - def _delete_initial( - self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, cluster_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Delete a connected cluster. - - Delete a connected cluster, removing the tracked resource in Azure - Resource Manager (ARM). - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param cluster_name: The name of the Kubernetes cluster on which get - is called. - :type cluster_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Lists all connected clusters. - - API to enumerate registered connected K8s clusters under a Resource - Group. - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ConnectedCluster - :rtype: - ~azure.mgmt.hybridkubernetes.models.ConnectedClusterPaged[~azure.mgmt.hybridkubernetes.models.ConnectedCluster] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.ConnectedClusterPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ConnectedClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters'} - - def list_by_subscription( - self, custom_headers=None, raw=False, **operation_config): - """Lists all connected clusters. - - API to enumerate registered connected K8s clusters under a - Subscription. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ConnectedCluster - :rtype: - ~azure.mgmt.hybridkubernetes.models.ConnectedClusterPaged[~azure.mgmt.hybridkubernetes.models.ConnectedCluster] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_subscription.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.ConnectedClusterPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ConnectedClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kubernetes/connectedClusters'} diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/operations.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/operations.py deleted file mode 100644 index 39230ffb511..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/operations/operations.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class Operations(object): - """Operations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2021-03-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2021-03-01" - - self.config = config - - def get( - self, custom_headers=None, raw=False, **operation_config): - """Lists all of the available API operations for Connected Cluster - resource. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Operation - :rtype: - ~azure.mgmt.hybridkubernetes.models.OperationPaged[~azure.mgmt.hybridkubernetes.models.Operation] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.get.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - get.metadata = {'url': '/providers/Microsoft.Kubernetes/operations'} diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/__init__.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/__init__.py index aa536dff1e2..580fd6adae4 100644 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/__init__.py +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/__init__.py @@ -1,18 +1,19 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from .connected_kubernetes_client import ConnectedKubernetesClient -from .version import VERSION - -__all__ = ['ConnectedKubernetesClient'] +from ._connected_kubernetes_client import ConnectedKubernetesClient +from ._version import VERSION __version__ = VERSION +__all__ = ['ConnectedKubernetesClient'] +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/_configuration.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/_configuration.py new file mode 100644 index 00000000000..203a6d771a9 --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/_configuration.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies +from azure.mgmt.core.policies import ARMHttpLoggingPolicy + +from ._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + + +class ConnectedKubernetesClientConfiguration(Configuration): + """Configuration for ConnectedKubernetesClient. + + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(ConnectedKubernetesClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = "2021-04-01-preview" + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-hybridkubernetes/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/_connected_kubernetes_client.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/_connected_kubernetes_client.py new file mode 100644 index 00000000000..9b129da7386 --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/_connected_kubernetes_client.py @@ -0,0 +1,94 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.mgmt.core import ARMPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Optional + + from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from ._configuration import ConnectedKubernetesClientConfiguration +from .operations import ConnectedClusterOperations +from .operations import Operations +from . import models + + +class ConnectedKubernetesClient(object): + """Azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster. + + :ivar connected_cluster: ConnectedClusterOperations operations + :vartype connected_cluster: connected_kubernetes_client.operations.ConnectedClusterOperations + :ivar operations: Operations operations + :vartype operations: connected_kubernetes_client.operations.Operations + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + base_url=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> None + if not base_url: + base_url = 'https://management.azure.com' + self._config = ConnectedKubernetesClientConfiguration(credential, subscription_id, **kwargs) + self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False + self._deserialize = Deserializer(client_models) + + self.connected_cluster = ConnectedClusterOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize) + + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> ConnectedKubernetesClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/version.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/_version.py similarity index 84% rename from src/connectedk8s/azext_connectedk8s/vendored_sdks/version.py rename to src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/_version.py index e7efe25ea7e..e5754a47ce6 100644 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/version.py +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/_version.py @@ -1,13 +1,9 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.1" - +VERSION = "1.0.0b1" diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/connected_kubernetes_client.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/connected_kubernetes_client.py deleted file mode 100644 index 51c9bb8c6c6..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/connected_kubernetes_client.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import SDKClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.connected_cluster_operations import ConnectedClusterOperations -from .operations.operations import Operations -from . import models - - -class ConnectedKubernetesClientConfiguration(AzureConfiguration): - """Configuration for ConnectedKubernetesClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ConnectedKubernetesClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-hybridkubernetes/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - - -class ConnectedKubernetesClient(SDKClient): - """Azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster - - :ivar config: Configuration for client. - :vartype config: ConnectedKubernetesClientConfiguration - - :ivar connected_cluster: ConnectedCluster operations - :vartype connected_cluster: azure.mgmt.hybridkubernetes.operations.ConnectedClusterOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.hybridkubernetes.operations.Operations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = ConnectedKubernetesClientConfiguration(credentials, subscription_id, base_url) - super(ConnectedKubernetesClient, self).__init__(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2021-04-01-preview' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.connected_cluster = ConnectedClusterOperations( - self._client, self.config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/__init__.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/__init__.py index d889e14077b..c2ed3c2a82c 100644 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/__init__.py +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/__init__.py @@ -1,85 +1,81 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- try: - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation - from .connected_cluster_identity_py3 import ConnectedClusterIdentity - from .system_data_py3 import SystemData - from .connected_cluster_py3 import ConnectedCluster - from .hybrid_connection_config_py3 import HybridConnectionConfig - from .credential_result_py3 import CredentialResult - from .credential_results_py3 import CredentialResults - from .connected_cluster_patch_py3 import ConnectedClusterPatch - from .list_cluster_user_credentials_properties_py3 import ListClusterUserCredentialsProperties - from .proxy_resource_py3 import ProxyResource - from .azure_entity_resource_py3 import AzureEntityResource - from .resource_py3 import Resource - from .tracked_resource_py3 import TrackedResource - from .error_additional_info_py3 import ErrorAdditionalInfo - from .error_detail_py3 import ErrorDetail - from .error_response_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import ConnectedCluster + from ._models_py3 import ConnectedClusterIdentity + from ._models_py3 import ConnectedClusterList + from ._models_py3 import ConnectedClusterPatch + from ._models_py3 import CredentialResult + from ._models_py3 import CredentialResults + from ._models_py3 import ErrorAdditionalInfo + from ._models_py3 import ErrorDetail + from ._models_py3 import ErrorResponse + from ._models_py3 import HybridConnectionConfig + from ._models_py3 import ListClusterUserCredentialsProperties + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import OperationList + from ._models_py3 import Resource + from ._models_py3 import SystemData + from ._models_py3 import TrackedResource except (SyntaxError, ImportError): - from .operation_display import OperationDisplay - from .operation import Operation - from .connected_cluster_identity import ConnectedClusterIdentity - from .system_data import SystemData - from .connected_cluster import ConnectedCluster - from .hybrid_connection_config import HybridConnectionConfig - from .credential_result import CredentialResult - from .credential_results import CredentialResults - from .connected_cluster_patch import ConnectedClusterPatch - from .list_cluster_user_credentials_properties import ListClusterUserCredentialsProperties - from .proxy_resource import ProxyResource - from .azure_entity_resource import AzureEntityResource - from .resource import Resource - from .tracked_resource import TrackedResource - from .error_additional_info import ErrorAdditionalInfo - from .error_detail import ErrorDetail - from .error_response import ErrorResponse, ErrorResponseException -from .connected_cluster_paged import ConnectedClusterPaged -from .operation_paged import OperationPaged -from .connected_kubernetes_client_enums import ( - ResourceIdentityType, - ProvisioningState, + from ._models import ConnectedCluster # type: ignore + from ._models import ConnectedClusterIdentity # type: ignore + from ._models import ConnectedClusterList # type: ignore + from ._models import ConnectedClusterPatch # type: ignore + from ._models import CredentialResult # type: ignore + from ._models import CredentialResults # type: ignore + from ._models import ErrorAdditionalInfo # type: ignore + from ._models import ErrorDetail # type: ignore + from ._models import ErrorResponse # type: ignore + from ._models import HybridConnectionConfig # type: ignore + from ._models import ListClusterUserCredentialsProperties # type: ignore + from ._models import Operation # type: ignore + from ._models import OperationDisplay # type: ignore + from ._models import OperationList # type: ignore + from ._models import Resource # type: ignore + from ._models import SystemData # type: ignore + from ._models import TrackedResource # type: ignore + +from ._connected_kubernetes_client_enums import ( + AuthenticationMethod, ConnectivityStatus, CreatedByType, LastModifiedByType, - AuthenticationMethod, + PrivateLinkState, + ProvisioningState, + ResourceIdentityType, ) __all__ = [ - 'OperationDisplay', - 'Operation', - 'ConnectedClusterIdentity', - 'SystemData', 'ConnectedCluster', - 'HybridConnectionConfig', + 'ConnectedClusterIdentity', + 'ConnectedClusterList', + 'ConnectedClusterPatch', 'CredentialResult', 'CredentialResults', - 'ConnectedClusterPatch', + 'ErrorAdditionalInfo', + 'ErrorDetail', + 'ErrorResponse', + 'HybridConnectionConfig', 'ListClusterUserCredentialsProperties', - 'ProxyResource', - 'AzureEntityResource', + 'Operation', + 'OperationDisplay', + 'OperationList', 'Resource', + 'SystemData', 'TrackedResource', - 'ErrorAdditionalInfo', - 'ErrorDetail', - 'ErrorResponse', 'ErrorResponseException', - 'ConnectedClusterPaged', - 'OperationPaged', - 'ResourceIdentityType', - 'ProvisioningState', + 'AuthenticationMethod', 'ConnectivityStatus', 'CreatedByType', 'LastModifiedByType', - 'AuthenticationMethod', + 'PrivateLinkState', + 'ProvisioningState', + 'ResourceIdentityType', ] diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/_connected_kubernetes_client_enums.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/_connected_kubernetes_client_enums.py new file mode 100644 index 00000000000..1e844b8ab57 --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/_connected_kubernetes_client_enums.py @@ -0,0 +1,89 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum, EnumMeta +from six import with_metaclass + +class _CaseInsensitiveEnumMeta(EnumMeta): + def __getitem__(self, name): + return super().__getitem__(name.upper()) + + def __getattr__(cls, name): + """Return the enum member matching `name` + We use __getattr__ instead of descriptors or inserting into the enum + class' __dict__ in order to support `name` and `value` being both + properties for enum members (which live in the class' __dict__) and + enum members themselves. + """ + try: + return cls._member_map_[name.upper()] + except KeyError: + raise AttributeError(name) + + +class AuthenticationMethod(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The mode of client authentication. + """ + + TOKEN = "Token" + AAD = "AAD" + +class ConnectivityStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Represents the connectivity status of the connected cluster. + """ + + CONNECTING = "Connecting" + CONNECTED = "Connected" + OFFLINE = "Offline" + EXPIRED = "Expired" + +class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity that created the resource. + """ + + USER = "User" + APPLICATION = "Application" + MANAGED_IDENTITY = "ManagedIdentity" + KEY = "Key" + +class LastModifiedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity that last modified the resource. + """ + + USER = "User" + APPLICATION = "Application" + MANAGED_IDENTITY = "ManagedIdentity" + KEY = "Key" + +class PrivateLinkState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Property which describes the state of private link on a connected cluster resource. + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The current deployment state of connectedClusters. + """ + + SUCCEEDED = "Succeeded" + FAILED = "Failed" + CANCELED = "Canceled" + PROVISIONING = "Provisioning" + UPDATING = "Updating" + DELETING = "Deleting" + ACCEPTED = "Accepted" + +class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity used for the connected cluster. The type 'SystemAssigned, includes a + system created identity. The type 'None' means no identity is assigned to the connected + cluster. + """ + + NONE = "None" + SYSTEM_ASSIGNED = "SystemAssigned" diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/_models.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/_models.py new file mode 100644 index 00000000000..cbd55c35e2d --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/_models.py @@ -0,0 +1,671 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + + +class Resource(msrest.serialization.Model): + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(TrackedResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.location = kwargs['location'] + + +class ConnectedCluster(TrackedResource): + """Represents a connected cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + :param identity: Required. The identity of the connected cluster. + :type identity: ~connected_kubernetes_client.models.ConnectedClusterIdentity + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~connected_kubernetes_client.models.SystemData + :param agent_public_key_certificate: Required. Base64 encoded public certificate used by the + agent to do the initial handshake to the backend services in Azure. + :type agent_public_key_certificate: str + :ivar kubernetes_version: The Kubernetes version of the connected cluster resource. + :vartype kubernetes_version: str + :ivar total_node_count: Number of nodes present in the connected cluster resource. + :vartype total_node_count: int + :ivar total_core_count: Number of CPU cores present in the connected cluster resource. + :vartype total_core_count: int + :ivar agent_version: Version of the agent running on the connected cluster resource. + :vartype agent_version: str + :param provisioning_state: Provisioning state of the connected cluster resource. Possible + values include: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", + "Accepted". + :type provisioning_state: str or ~connected_kubernetes_client.models.ProvisioningState + :param distribution: The Kubernetes distribution running on this connected cluster. + :type distribution: str + :param infrastructure: The infrastructure on which the Kubernetes cluster represented by this + connected cluster is running on. + :type infrastructure: str + :ivar offering: Connected cluster offering. + :vartype offering: str + :ivar managed_identity_certificate_expiration_time: Expiration time of the managed identity + certificate. + :vartype managed_identity_certificate_expiration_time: ~datetime.datetime + :ivar last_connectivity_time: Time representing the last instance when heart beat was received + from the cluster. + :vartype last_connectivity_time: ~datetime.datetime + :ivar connectivity_status: Represents the connectivity status of the connected cluster. + Possible values include: "Connecting", "Connected", "Offline", "Expired". + :vartype connectivity_status: str or ~connected_kubernetes_client.models.ConnectivityStatus + :param private_link_state: Property which describes the state of private link on a connected + cluster resource. Possible values include: "Enabled", "Disabled". + :type private_link_state: str or ~connected_kubernetes_client.models.PrivateLinkState + :param private_link_scope_resource_id: The resource id of the private link scope this connected + cluster is assigned to, if any. + :type private_link_scope_resource_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'identity': {'required': True}, + 'system_data': {'readonly': True}, + 'agent_public_key_certificate': {'required': True}, + 'kubernetes_version': {'readonly': True}, + 'total_node_count': {'readonly': True}, + 'total_core_count': {'readonly': True}, + 'agent_version': {'readonly': True}, + 'offering': {'readonly': True}, + 'managed_identity_certificate_expiration_time': {'readonly': True}, + 'last_connectivity_time': {'readonly': True}, + 'connectivity_status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'ConnectedClusterIdentity'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'agent_public_key_certificate': {'key': 'properties.agentPublicKeyCertificate', 'type': 'str'}, + 'kubernetes_version': {'key': 'properties.kubernetesVersion', 'type': 'str'}, + 'total_node_count': {'key': 'properties.totalNodeCount', 'type': 'int'}, + 'total_core_count': {'key': 'properties.totalCoreCount', 'type': 'int'}, + 'agent_version': {'key': 'properties.agentVersion', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'distribution': {'key': 'properties.distribution', 'type': 'str'}, + 'infrastructure': {'key': 'properties.infrastructure', 'type': 'str'}, + 'offering': {'key': 'properties.offering', 'type': 'str'}, + 'managed_identity_certificate_expiration_time': {'key': 'properties.managedIdentityCertificateExpirationTime', 'type': 'iso-8601'}, + 'last_connectivity_time': {'key': 'properties.lastConnectivityTime', 'type': 'iso-8601'}, + 'connectivity_status': {'key': 'properties.connectivityStatus', 'type': 'str'}, + 'private_link_state': {'key': 'properties.privateLinkState', 'type': 'str'}, + 'private_link_scope_resource_id': {'key': 'properties.privateLinkScopeResourceId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConnectedCluster, self).__init__(**kwargs) + self.identity = kwargs['identity'] + self.system_data = None + self.agent_public_key_certificate = kwargs['agent_public_key_certificate'] + self.kubernetes_version = None + self.total_node_count = None + self.total_core_count = None + self.agent_version = None + self.provisioning_state = kwargs.get('provisioning_state', None) + self.distribution = kwargs.get('distribution', None) + self.infrastructure = kwargs.get('infrastructure', None) + self.offering = None + self.managed_identity_certificate_expiration_time = None + self.last_connectivity_time = None + self.connectivity_status = None + self.private_link_state = kwargs.get('private_link_state', None) + self.private_link_scope_resource_id = kwargs.get('private_link_scope_resource_id', None) + + +class ConnectedClusterIdentity(msrest.serialization.Model): + """Identity for the connected cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal id of connected cluster identity. This property will only be + provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the connected cluster. This property will only + be provided for a system assigned identity. + :vartype tenant_id: str + :param type: Required. The type of identity used for the connected cluster. The type + 'SystemAssigned, includes a system created identity. The type 'None' means no identity is + assigned to the connected cluster. Possible values include: "None", "SystemAssigned". Default + value: "SystemAssigned". + :type type: str or ~connected_kubernetes_client.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConnectedClusterIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', "SystemAssigned") + + +class ConnectedClusterList(msrest.serialization.Model): + """The paginated list of connected Clusters. + + :param value: The list of connected clusters. + :type value: list[~connected_kubernetes_client.models.ConnectedCluster] + :param next_link: The link to fetch the next page of connected cluster. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ConnectedCluster]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConnectedClusterList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class ConnectedClusterPatch(msrest.serialization.Model): + """Object containing updates for patch operations. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param private_link_state: Property which describes the state of private link on a connected + cluster resource. Possible values include: "Enabled", "Disabled". + :type private_link_state: str or ~connected_kubernetes_client.models.PrivateLinkState + :param private_link_scope_resource_id: The resource id of the private link scope this connected + cluster is assigned to, if any. + :type private_link_scope_resource_id: str + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'private_link_state': {'key': 'properties.privateLinkState', 'type': 'str'}, + 'private_link_scope_resource_id': {'key': 'properties.privateLinkScopeResourceId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConnectedClusterPatch, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.private_link_state = kwargs.get('private_link_state', None) + self.private_link_scope_resource_id = kwargs.get('private_link_scope_resource_id', None) + + +class CredentialResult(msrest.serialization.Model): + """The credential result response. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name of the credential. + :vartype name: str + :ivar value: Base64-encoded Kubernetes configuration file. + :vartype value: bytearray + """ + + _validation = { + 'name': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'bytearray'}, + } + + def __init__( + self, + **kwargs + ): + super(CredentialResult, self).__init__(**kwargs) + self.name = None + self.value = None + + +class CredentialResults(msrest.serialization.Model): + """The list of credential result response. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar hybrid_connection_config: Contains the REP (rendezvous endpoint) and “Sender” access + token. + :vartype hybrid_connection_config: ~connected_kubernetes_client.models.HybridConnectionConfig + :ivar kubeconfigs: Base64-encoded Kubernetes configuration file. + :vartype kubeconfigs: list[~connected_kubernetes_client.models.CredentialResult] + """ + + _validation = { + 'hybrid_connection_config': {'readonly': True}, + 'kubeconfigs': {'readonly': True}, + } + + _attribute_map = { + 'hybrid_connection_config': {'key': 'hybridConnectionConfig', 'type': 'HybridConnectionConfig'}, + 'kubeconfigs': {'key': 'kubeconfigs', 'type': '[CredentialResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(CredentialResults, self).__init__(**kwargs) + self.hybrid_connection_config = None + self.kubeconfigs = None + + +class ErrorAdditionalInfo(msrest.serialization.Model): + """The resource management error additional info. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: any + """ + + _validation = { + 'type': {'readonly': True}, + 'info': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorAdditionalInfo, self).__init__(**kwargs) + self.type = None + self.info = None + + +class ErrorDetail(msrest.serialization.Model): + """The error detail. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: list[~connected_kubernetes_client.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: list[~connected_kubernetes_client.models.ErrorAdditionalInfo] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + 'additional_info': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetail]'}, + 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorDetail, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + self.additional_info = None + + +class ErrorResponse(msrest.serialization.Model): + """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). + + :param error: The error object. + :type error: ~connected_kubernetes_client.models.ErrorDetail + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetail'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class HybridConnectionConfig(msrest.serialization.Model): + """Contains the REP (rendezvous endpoint) and “Sender” access token. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar expiration_time: Timestamp when this token will be expired. + :vartype expiration_time: long + :ivar hybrid_connection_name: Name of the connection. + :vartype hybrid_connection_name: str + :ivar relay: Name of the relay. + :vartype relay: str + :ivar token: Sender access token. + :vartype token: str + """ + + _validation = { + 'expiration_time': {'readonly': True}, + 'hybrid_connection_name': {'readonly': True}, + 'relay': {'readonly': True}, + 'token': {'readonly': True}, + } + + _attribute_map = { + 'expiration_time': {'key': 'expirationTime', 'type': 'long'}, + 'hybrid_connection_name': {'key': 'hybridConnectionName', 'type': 'str'}, + 'relay': {'key': 'relay', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(HybridConnectionConfig, self).__init__(**kwargs) + self.expiration_time = None + self.hybrid_connection_name = None + self.relay = None + self.token = None + + +class ListClusterUserCredentialsProperties(msrest.serialization.Model): + """ListClusterUserCredentialsProperties. + + All required parameters must be populated in order to send to Azure. + + :param authentication_method: Required. The mode of client authentication. Possible values + include: "Token", "AAD". + :type authentication_method: str or ~connected_kubernetes_client.models.AuthenticationMethod + :param client_proxy: Required. Boolean value to indicate whether the request is for client side + proxy or not. + :type client_proxy: bool + """ + + _validation = { + 'authentication_method': {'required': True}, + 'client_proxy': {'required': True}, + } + + _attribute_map = { + 'authentication_method': {'key': 'authenticationMethod', 'type': 'str'}, + 'client_proxy': {'key': 'clientProxy', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(ListClusterUserCredentialsProperties, self).__init__(**kwargs) + self.authentication_method = kwargs['authentication_method'] + self.client_proxy = kwargs['client_proxy'] + + +class Operation(msrest.serialization.Model): + """The Connected cluster API operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Operation name: {Microsoft.Kubernetes}/{resource}/{operation}. + :vartype name: str + :ivar display: The object that represents the operation. + :vartype display: ~connected_kubernetes_client.models.OperationDisplay + """ + + _validation = { + 'name': {'readonly': True}, + 'display': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__( + self, + **kwargs + ): + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = None + + +class OperationDisplay(msrest.serialization.Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.connectedClusters. + :type provider: str + :param resource: Connected Cluster Resource on which the operation is performed. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class OperationList(msrest.serialization.Model): + """The paginated list of connected cluster API operations. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The list of connected cluster API operations. + :vartype value: list[~connected_kubernetes_client.models.Operation] + :param next_link: The link to fetch the next page of connected cluster API operations. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationList, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~connected_kubernetes_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~connected_kubernetes_client.models.LastModifiedByType + :param last_modified_at: The timestamp of resource modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/_models_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/_models_py3.py new file mode 100644 index 00000000000..41d0c781c43 --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/_models_py3.py @@ -0,0 +1,717 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +import datetime +from typing import Dict, List, Optional, Union + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + +from ._connected_kubernetes_client_enums import * + + +class Resource(msrest.serialization.Model): + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + +class ConnectedCluster(TrackedResource): + """Represents a connected cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + :param identity: Required. The identity of the connected cluster. + :type identity: ~connected_kubernetes_client.models.ConnectedClusterIdentity + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~connected_kubernetes_client.models.SystemData + :param agent_public_key_certificate: Required. Base64 encoded public certificate used by the + agent to do the initial handshake to the backend services in Azure. + :type agent_public_key_certificate: str + :ivar kubernetes_version: The Kubernetes version of the connected cluster resource. + :vartype kubernetes_version: str + :ivar total_node_count: Number of nodes present in the connected cluster resource. + :vartype total_node_count: int + :ivar total_core_count: Number of CPU cores present in the connected cluster resource. + :vartype total_core_count: int + :ivar agent_version: Version of the agent running on the connected cluster resource. + :vartype agent_version: str + :param provisioning_state: Provisioning state of the connected cluster resource. Possible + values include: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", + "Accepted". + :type provisioning_state: str or ~connected_kubernetes_client.models.ProvisioningState + :param distribution: The Kubernetes distribution running on this connected cluster. + :type distribution: str + :param infrastructure: The infrastructure on which the Kubernetes cluster represented by this + connected cluster is running on. + :type infrastructure: str + :ivar offering: Connected cluster offering. + :vartype offering: str + :ivar managed_identity_certificate_expiration_time: Expiration time of the managed identity + certificate. + :vartype managed_identity_certificate_expiration_time: ~datetime.datetime + :ivar last_connectivity_time: Time representing the last instance when heart beat was received + from the cluster. + :vartype last_connectivity_time: ~datetime.datetime + :ivar connectivity_status: Represents the connectivity status of the connected cluster. + Possible values include: "Connecting", "Connected", "Offline", "Expired". + :vartype connectivity_status: str or ~connected_kubernetes_client.models.ConnectivityStatus + :param private_link_state: Property which describes the state of private link on a connected + cluster resource. Possible values include: "Enabled", "Disabled". + :type private_link_state: str or ~connected_kubernetes_client.models.PrivateLinkState + :param private_link_scope_resource_id: The resource id of the private link scope this connected + cluster is assigned to, if any. + :type private_link_scope_resource_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'identity': {'required': True}, + 'system_data': {'readonly': True}, + 'agent_public_key_certificate': {'required': True}, + 'kubernetes_version': {'readonly': True}, + 'total_node_count': {'readonly': True}, + 'total_core_count': {'readonly': True}, + 'agent_version': {'readonly': True}, + 'offering': {'readonly': True}, + 'managed_identity_certificate_expiration_time': {'readonly': True}, + 'last_connectivity_time': {'readonly': True}, + 'connectivity_status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'ConnectedClusterIdentity'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'agent_public_key_certificate': {'key': 'properties.agentPublicKeyCertificate', 'type': 'str'}, + 'kubernetes_version': {'key': 'properties.kubernetesVersion', 'type': 'str'}, + 'total_node_count': {'key': 'properties.totalNodeCount', 'type': 'int'}, + 'total_core_count': {'key': 'properties.totalCoreCount', 'type': 'int'}, + 'agent_version': {'key': 'properties.agentVersion', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'distribution': {'key': 'properties.distribution', 'type': 'str'}, + 'infrastructure': {'key': 'properties.infrastructure', 'type': 'str'}, + 'offering': {'key': 'properties.offering', 'type': 'str'}, + 'managed_identity_certificate_expiration_time': {'key': 'properties.managedIdentityCertificateExpirationTime', 'type': 'iso-8601'}, + 'last_connectivity_time': {'key': 'properties.lastConnectivityTime', 'type': 'iso-8601'}, + 'connectivity_status': {'key': 'properties.connectivityStatus', 'type': 'str'}, + 'private_link_state': {'key': 'properties.privateLinkState', 'type': 'str'}, + 'private_link_scope_resource_id': {'key': 'properties.privateLinkScopeResourceId', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + identity: "ConnectedClusterIdentity", + agent_public_key_certificate: str, + tags: Optional[Dict[str, str]] = None, + provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, + distribution: Optional[str] = None, + infrastructure: Optional[str] = None, + private_link_state: Optional[Union[str, "PrivateLinkState"]] = None, + private_link_scope_resource_id: Optional[str] = None, + **kwargs + ): + super(ConnectedCluster, self).__init__(tags=tags, location=location, **kwargs) + self.identity = identity + self.system_data = None + self.agent_public_key_certificate = agent_public_key_certificate + self.kubernetes_version = None + self.total_node_count = None + self.total_core_count = None + self.agent_version = None + self.provisioning_state = provisioning_state + self.distribution = distribution + self.infrastructure = infrastructure + self.offering = None + self.managed_identity_certificate_expiration_time = None + self.last_connectivity_time = None + self.connectivity_status = None + self.private_link_state = private_link_state + self.private_link_scope_resource_id = private_link_scope_resource_id + + +class ConnectedClusterIdentity(msrest.serialization.Model): + """Identity for the connected cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal id of connected cluster identity. This property will only be + provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the connected cluster. This property will only + be provided for a system assigned identity. + :vartype tenant_id: str + :param type: Required. The type of identity used for the connected cluster. The type + 'SystemAssigned, includes a system created identity. The type 'None' means no identity is + assigned to the connected cluster. Possible values include: "None", "SystemAssigned". Default + value: "SystemAssigned". + :type type: str or ~connected_kubernetes_client.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + type: Union[str, "ResourceIdentityType"] = "SystemAssigned", + **kwargs + ): + super(ConnectedClusterIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + + +class ConnectedClusterList(msrest.serialization.Model): + """The paginated list of connected Clusters. + + :param value: The list of connected clusters. + :type value: list[~connected_kubernetes_client.models.ConnectedCluster] + :param next_link: The link to fetch the next page of connected cluster. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ConnectedCluster]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["ConnectedCluster"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(ConnectedClusterList, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class ConnectedClusterPatch(msrest.serialization.Model): + """Object containing updates for patch operations. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param private_link_state: Property which describes the state of private link on a connected + cluster resource. Possible values include: "Enabled", "Disabled". + :type private_link_state: str or ~connected_kubernetes_client.models.PrivateLinkState + :param private_link_scope_resource_id: The resource id of the private link scope this connected + cluster is assigned to, if any. + :type private_link_scope_resource_id: str + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'private_link_state': {'key': 'properties.privateLinkState', 'type': 'str'}, + 'private_link_scope_resource_id': {'key': 'properties.privateLinkScopeResourceId', 'type': 'str'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + private_link_state: Optional[Union[str, "PrivateLinkState"]] = None, + private_link_scope_resource_id: Optional[str] = None, + **kwargs + ): + super(ConnectedClusterPatch, self).__init__(**kwargs) + self.tags = tags + self.private_link_state = private_link_state + self.private_link_scope_resource_id = private_link_scope_resource_id + + +class CredentialResult(msrest.serialization.Model): + """The credential result response. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name of the credential. + :vartype name: str + :ivar value: Base64-encoded Kubernetes configuration file. + :vartype value: bytearray + """ + + _validation = { + 'name': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'bytearray'}, + } + + def __init__( + self, + **kwargs + ): + super(CredentialResult, self).__init__(**kwargs) + self.name = None + self.value = None + + +class CredentialResults(msrest.serialization.Model): + """The list of credential result response. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar hybrid_connection_config: Contains the REP (rendezvous endpoint) and “Sender” access + token. + :vartype hybrid_connection_config: ~connected_kubernetes_client.models.HybridConnectionConfig + :ivar kubeconfigs: Base64-encoded Kubernetes configuration file. + :vartype kubeconfigs: list[~connected_kubernetes_client.models.CredentialResult] + """ + + _validation = { + 'hybrid_connection_config': {'readonly': True}, + 'kubeconfigs': {'readonly': True}, + } + + _attribute_map = { + 'hybrid_connection_config': {'key': 'hybridConnectionConfig', 'type': 'HybridConnectionConfig'}, + 'kubeconfigs': {'key': 'kubeconfigs', 'type': '[CredentialResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(CredentialResults, self).__init__(**kwargs) + self.hybrid_connection_config = None + self.kubeconfigs = None + + +class ErrorAdditionalInfo(msrest.serialization.Model): + """The resource management error additional info. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: any + """ + + _validation = { + 'type': {'readonly': True}, + 'info': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorAdditionalInfo, self).__init__(**kwargs) + self.type = None + self.info = None + + +class ErrorDetail(msrest.serialization.Model): + """The error detail. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: list[~connected_kubernetes_client.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: list[~connected_kubernetes_client.models.ErrorAdditionalInfo] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + 'additional_info': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetail]'}, + 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorDetail, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + self.additional_info = None + + +class ErrorResponse(msrest.serialization.Model): + """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). + + :param error: The error object. + :type error: ~connected_kubernetes_client.models.ErrorDetail + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetail'}, + } + + def __init__( + self, + *, + error: Optional["ErrorDetail"] = None, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.error = error + + +class HybridConnectionConfig(msrest.serialization.Model): + """Contains the REP (rendezvous endpoint) and “Sender” access token. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar expiration_time: Timestamp when this token will be expired. + :vartype expiration_time: long + :ivar hybrid_connection_name: Name of the connection. + :vartype hybrid_connection_name: str + :ivar relay: Name of the relay. + :vartype relay: str + :ivar token: Sender access token. + :vartype token: str + """ + + _validation = { + 'expiration_time': {'readonly': True}, + 'hybrid_connection_name': {'readonly': True}, + 'relay': {'readonly': True}, + 'token': {'readonly': True}, + } + + _attribute_map = { + 'expiration_time': {'key': 'expirationTime', 'type': 'long'}, + 'hybrid_connection_name': {'key': 'hybridConnectionName', 'type': 'str'}, + 'relay': {'key': 'relay', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(HybridConnectionConfig, self).__init__(**kwargs) + self.expiration_time = None + self.hybrid_connection_name = None + self.relay = None + self.token = None + + +class ListClusterUserCredentialsProperties(msrest.serialization.Model): + """ListClusterUserCredentialsProperties. + + All required parameters must be populated in order to send to Azure. + + :param authentication_method: Required. The mode of client authentication. Possible values + include: "Token", "AAD". + :type authentication_method: str or ~connected_kubernetes_client.models.AuthenticationMethod + :param client_proxy: Required. Boolean value to indicate whether the request is for client side + proxy or not. + :type client_proxy: bool + """ + + _validation = { + 'authentication_method': {'required': True}, + 'client_proxy': {'required': True}, + } + + _attribute_map = { + 'authentication_method': {'key': 'authenticationMethod', 'type': 'str'}, + 'client_proxy': {'key': 'clientProxy', 'type': 'bool'}, + } + + def __init__( + self, + *, + authentication_method: Union[str, "AuthenticationMethod"], + client_proxy: bool, + **kwargs + ): + super(ListClusterUserCredentialsProperties, self).__init__(**kwargs) + self.authentication_method = authentication_method + self.client_proxy = client_proxy + + +class Operation(msrest.serialization.Model): + """The Connected cluster API operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Operation name: {Microsoft.Kubernetes}/{resource}/{operation}. + :vartype name: str + :ivar display: The object that represents the operation. + :vartype display: ~connected_kubernetes_client.models.OperationDisplay + """ + + _validation = { + 'name': {'readonly': True}, + 'display': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__( + self, + **kwargs + ): + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = None + + +class OperationDisplay(msrest.serialization.Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.connectedClusters. + :type provider: str + :param resource: Connected Cluster Resource on which the operation is performed. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + *, + provider: Optional[str] = None, + resource: Optional[str] = None, + operation: Optional[str] = None, + description: Optional[str] = None, + **kwargs + ): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class OperationList(msrest.serialization.Model): + """The paginated list of connected cluster API operations. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The list of connected cluster API operations. + :vartype value: list[~connected_kubernetes_client.models.Operation] + :param next_link: The link to fetch the next page of connected cluster API operations. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(OperationList, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~connected_kubernetes_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~connected_kubernetes_client.models.LastModifiedByType + :param last_modified_at: The timestamp of resource modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "LastModifiedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/azure_entity_resource.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/azure_entity_resource.py deleted file mode 100644 index 695d8ed2d99..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/azure_entity_resource.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class AzureEntityResource(Resource): - """Entity Resource. - - The resource model definition for an Azure Resource Manager resource with - an etag. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :ivar etag: Resource Etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/azure_entity_resource_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/azure_entity_resource_py3.py deleted file mode 100644 index 04504109e71..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/azure_entity_resource_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class AzureEntityResource(Resource): - """Entity Resource. - - The resource model definition for an Azure Resource Manager resource with - an etag. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :ivar etag: Resource Etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster.py deleted file mode 100644 index cd269d452c1..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource import TrackedResource - - -class ConnectedCluster(TrackedResource): - """Represents a connected cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param identity: Required. The identity of the connected cluster. - :type identity: - ~azure.mgmt.hybridkubernetes.models.ConnectedClusterIdentity - :param agent_public_key_certificate: Required. Base64 encoded public - certificate used by the agent to do the initial handshake to the backend - services in Azure. - :type agent_public_key_certificate: str - :ivar kubernetes_version: The Kubernetes version of the connected cluster - resource - :vartype kubernetes_version: str - :ivar total_node_count: Number of nodes present in the connected cluster - resource - :vartype total_node_count: int - :ivar total_core_count: Number of CPU cores present in the connected - cluster resource - :vartype total_core_count: int - :ivar agent_version: Version of the agent running on the connected cluster - resource - :vartype agent_version: str - :param provisioning_state: Provisioning state of the connected cluster - resource. Possible values include: 'Succeeded', 'Failed', 'Canceled', - 'Provisioning', 'Updating', 'Deleting', 'Accepted' - :type provisioning_state: str or - ~azure.mgmt.hybridkubernetes.models.ProvisioningState - :param distribution: The Kubernetes distribution running on this connected - cluster. - :type distribution: str - :param infrastructure: The infrastructure on which the Kubernetes cluster - represented by this connected cluster is running on. - :type infrastructure: str - :ivar offering: Connected cluster offering - :vartype offering: str - :ivar managed_identity_certificate_expiration_time: Expiration time of the - managed identity certificate - :vartype managed_identity_certificate_expiration_time: datetime - :ivar last_connectivity_time: Time representing the last instance when - heart beat was received from the cluster - :vartype last_connectivity_time: datetime - :ivar connectivity_status: Represents the connectivity status of the - connected cluster. Possible values include: 'Connecting', 'Connected', - 'Offline', 'Expired' - :vartype connectivity_status: str or - ~azure.mgmt.hybridkubernetes.models.ConnectivityStatus - :ivar system_data: Metadata pertaining to creation and last modification - of the resource - :vartype system_data: ~azure.mgmt.hybridkubernetes.models.SystemData - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'identity': {'required': True}, - 'agent_public_key_certificate': {'required': True}, - 'kubernetes_version': {'readonly': True}, - 'total_node_count': {'readonly': True}, - 'total_core_count': {'readonly': True}, - 'agent_version': {'readonly': True}, - 'offering': {'readonly': True}, - 'managed_identity_certificate_expiration_time': {'readonly': True}, - 'last_connectivity_time': {'readonly': True}, - 'connectivity_status': {'readonly': True}, - 'system_data': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'ConnectedClusterIdentity'}, - 'agent_public_key_certificate': {'key': 'properties.agentPublicKeyCertificate', 'type': 'str'}, - 'kubernetes_version': {'key': 'properties.kubernetesVersion', 'type': 'str'}, - 'total_node_count': {'key': 'properties.totalNodeCount', 'type': 'int'}, - 'total_core_count': {'key': 'properties.totalCoreCount', 'type': 'int'}, - 'agent_version': {'key': 'properties.agentVersion', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'distribution': {'key': 'properties.distribution', 'type': 'str'}, - 'infrastructure': {'key': 'properties.infrastructure', 'type': 'str'}, - 'offering': {'key': 'properties.offering', 'type': 'str'}, - 'managed_identity_certificate_expiration_time': {'key': 'properties.managedIdentityCertificateExpirationTime', 'type': 'iso-8601'}, - 'last_connectivity_time': {'key': 'properties.lastConnectivityTime', 'type': 'iso-8601'}, - 'connectivity_status': {'key': 'properties.connectivityStatus', 'type': 'str'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, - } - - def __init__(self, **kwargs): - super(ConnectedCluster, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) - self.agent_public_key_certificate = kwargs.get('agent_public_key_certificate', None) - self.kubernetes_version = None - self.total_node_count = None - self.total_core_count = None - self.agent_version = None - self.provisioning_state = kwargs.get('provisioning_state', None) - self.distribution = kwargs.get('distribution', None) - self.infrastructure = kwargs.get('infrastructure', None) - self.offering = None - self.managed_identity_certificate_expiration_time = None - self.last_connectivity_time = None - self.connectivity_status = None - self.system_data = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_identity.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_identity.py deleted file mode 100644 index 490b414a380..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_identity.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectedClusterIdentity(Model): - """Identity for the connected cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar principal_id: The principal id of connected cluster identity. This - property will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id associated with the connected cluster. This - property will only be provided for a system assigned identity. - :vartype tenant_id: str - :param type: Required. The type of identity used for the connected - cluster. The type 'SystemAssigned, includes a system created identity. The - type 'None' means no identity is assigned to the connected cluster. - Possible values include: 'None', 'SystemAssigned'. Default value: - "SystemAssigned" . - :type type: str or - ~azure.mgmt.hybridkubernetes.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, **kwargs): - super(ConnectedClusterIdentity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = kwargs.get('type', "SystemAssigned") diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_identity_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_identity_py3.py deleted file mode 100644 index ed309c5e2b9..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_identity_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectedClusterIdentity(Model): - """Identity for the connected cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar principal_id: The principal id of connected cluster identity. This - property will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id associated with the connected cluster. This - property will only be provided for a system assigned identity. - :vartype tenant_id: str - :param type: Required. The type of identity used for the connected - cluster. The type 'SystemAssigned, includes a system created identity. The - type 'None' means no identity is assigned to the connected cluster. - Possible values include: 'None', 'SystemAssigned'. Default value: - "SystemAssigned" . - :type type: str or - ~azure.mgmt.hybridkubernetes.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, *, type="SystemAssigned", **kwargs) -> None: - super(ConnectedClusterIdentity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = type diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_paged.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_paged.py deleted file mode 100644 index 55600c14031..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ConnectedClusterPaged(Paged): - """ - A paging container for iterating over a list of :class:`ConnectedCluster ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ConnectedCluster]'} - } - - def __init__(self, *args, **kwargs): - - super(ConnectedClusterPaged, self).__init__(*args, **kwargs) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_patch.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_patch.py deleted file mode 100644 index 6ce0901b210..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_patch.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectedClusterPatch(Model): - """Object containing updates for patch operations. - - :param tags: Resource tags. - :type tags: dict[str, str] - :param properties: Describes the connected cluster resource properties - that can be updated during PATCH operation. - :type properties: object - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(ConnectedClusterPatch, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.properties = kwargs.get('properties', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_patch_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_patch_py3.py deleted file mode 100644 index e8133910184..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_patch_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectedClusterPatch(Model): - """Object containing updates for patch operations. - - :param tags: Resource tags. - :type tags: dict[str, str] - :param properties: Describes the connected cluster resource properties - that can be updated during PATCH operation. - :type properties: object - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, *, tags=None, properties=None, **kwargs) -> None: - super(ConnectedClusterPatch, self).__init__(**kwargs) - self.tags = tags - self.properties = properties diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_py3.py deleted file mode 100644 index 9dc730e1273..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_cluster_py3.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource_py3 import TrackedResource - - -class ConnectedCluster(TrackedResource): - """Represents a connected cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param identity: Required. The identity of the connected cluster. - :type identity: - ~azure.mgmt.hybridkubernetes.models.ConnectedClusterIdentity - :param agent_public_key_certificate: Required. Base64 encoded public - certificate used by the agent to do the initial handshake to the backend - services in Azure. - :type agent_public_key_certificate: str - :ivar kubernetes_version: The Kubernetes version of the connected cluster - resource - :vartype kubernetes_version: str - :ivar total_node_count: Number of nodes present in the connected cluster - resource - :vartype total_node_count: int - :ivar total_core_count: Number of CPU cores present in the connected - cluster resource - :vartype total_core_count: int - :ivar agent_version: Version of the agent running on the connected cluster - resource - :vartype agent_version: str - :param provisioning_state: Provisioning state of the connected cluster - resource. Possible values include: 'Succeeded', 'Failed', 'Canceled', - 'Provisioning', 'Updating', 'Deleting', 'Accepted' - :type provisioning_state: str or - ~azure.mgmt.hybridkubernetes.models.ProvisioningState - :param distribution: The Kubernetes distribution running on this connected - cluster. - :type distribution: str - :param infrastructure: The infrastructure on which the Kubernetes cluster - represented by this connected cluster is running on. - :type infrastructure: str - :ivar offering: Connected cluster offering - :vartype offering: str - :ivar managed_identity_certificate_expiration_time: Expiration time of the - managed identity certificate - :vartype managed_identity_certificate_expiration_time: datetime - :ivar last_connectivity_time: Time representing the last instance when - heart beat was received from the cluster - :vartype last_connectivity_time: datetime - :ivar connectivity_status: Represents the connectivity status of the - connected cluster. Possible values include: 'Connecting', 'Connected', - 'Offline', 'Expired' - :vartype connectivity_status: str or - ~azure.mgmt.hybridkubernetes.models.ConnectivityStatus - :ivar system_data: Metadata pertaining to creation and last modification - of the resource - :vartype system_data: ~azure.mgmt.hybridkubernetes.models.SystemData - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'identity': {'required': True}, - 'agent_public_key_certificate': {'required': True}, - 'kubernetes_version': {'readonly': True}, - 'total_node_count': {'readonly': True}, - 'total_core_count': {'readonly': True}, - 'agent_version': {'readonly': True}, - 'offering': {'readonly': True}, - 'managed_identity_certificate_expiration_time': {'readonly': True}, - 'last_connectivity_time': {'readonly': True}, - 'connectivity_status': {'readonly': True}, - 'system_data': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'ConnectedClusterIdentity'}, - 'agent_public_key_certificate': {'key': 'properties.agentPublicKeyCertificate', 'type': 'str'}, - 'kubernetes_version': {'key': 'properties.kubernetesVersion', 'type': 'str'}, - 'total_node_count': {'key': 'properties.totalNodeCount', 'type': 'int'}, - 'total_core_count': {'key': 'properties.totalCoreCount', 'type': 'int'}, - 'agent_version': {'key': 'properties.agentVersion', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'distribution': {'key': 'properties.distribution', 'type': 'str'}, - 'infrastructure': {'key': 'properties.infrastructure', 'type': 'str'}, - 'offering': {'key': 'properties.offering', 'type': 'str'}, - 'managed_identity_certificate_expiration_time': {'key': 'properties.managedIdentityCertificateExpirationTime', 'type': 'iso-8601'}, - 'last_connectivity_time': {'key': 'properties.lastConnectivityTime', 'type': 'iso-8601'}, - 'connectivity_status': {'key': 'properties.connectivityStatus', 'type': 'str'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, - } - - def __init__(self, *, location: str, identity, agent_public_key_certificate: str, tags=None, provisioning_state=None, distribution: str=None, infrastructure: str=None, **kwargs) -> None: - super(ConnectedCluster, self).__init__(tags=tags, location=location, **kwargs) - self.identity = identity - self.agent_public_key_certificate = agent_public_key_certificate - self.kubernetes_version = None - self.total_node_count = None - self.total_core_count = None - self.agent_version = None - self.provisioning_state = provisioning_state - self.distribution = distribution - self.infrastructure = infrastructure - self.offering = None - self.managed_identity_certificate_expiration_time = None - self.last_connectivity_time = None - self.connectivity_status = None - self.system_data = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_kubernetes_client_enums.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_kubernetes_client_enums.py deleted file mode 100644 index 9801f305d6a..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/connected_kubernetes_client_enums.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class ResourceIdentityType(str, Enum): - - none = "None" - system_assigned = "SystemAssigned" - - -class ProvisioningState(str, Enum): - - succeeded = "Succeeded" - failed = "Failed" - canceled = "Canceled" - provisioning = "Provisioning" - updating = "Updating" - deleting = "Deleting" - accepted = "Accepted" - - -class ConnectivityStatus(str, Enum): - - connecting = "Connecting" - connected = "Connected" - offline = "Offline" - expired = "Expired" - - -class CreatedByType(str, Enum): - - user = "User" - application = "Application" - managed_identity = "ManagedIdentity" - key = "Key" - - -class LastModifiedByType(str, Enum): - - user = "User" - application = "Application" - managed_identity = "ManagedIdentity" - key = "Key" - - -class AuthenticationMethod(str, Enum): - - token = "Token" - aad = "AAD" diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_result.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_result.py deleted file mode 100644 index 89e748b481b..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_result.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CredentialResult(Model): - """The credential result response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The name of the credential. - :vartype name: str - :ivar value: Base64-encoded Kubernetes configuration file. - :vartype value: bytearray - """ - - _validation = { - 'name': {'readonly': True}, - 'value': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'bytearray'}, - } - - def __init__(self, **kwargs): - super(CredentialResult, self).__init__(**kwargs) - self.name = None - self.value = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_result_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_result_py3.py deleted file mode 100644 index 6f387834bf0..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_result_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CredentialResult(Model): - """The credential result response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The name of the credential. - :vartype name: str - :ivar value: Base64-encoded Kubernetes configuration file. - :vartype value: bytearray - """ - - _validation = { - 'name': {'readonly': True}, - 'value': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'bytearray'}, - } - - def __init__(self, **kwargs) -> None: - super(CredentialResult, self).__init__(**kwargs) - self.name = None - self.value = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_results.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_results.py deleted file mode 100644 index c3e372e0199..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_results.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CredentialResults(Model): - """The list of credential result response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar hybrid_connection_config: Contains the REP (rendezvous endpoint) and - “Sender” access token. - :vartype hybrid_connection_config: - ~azure.mgmt.hybridkubernetes.models.HybridConnectionConfig - :ivar kubeconfigs: Base64-encoded Kubernetes configuration file. - :vartype kubeconfigs: - list[~azure.mgmt.hybridkubernetes.models.CredentialResult] - """ - - _validation = { - 'hybrid_connection_config': {'readonly': True}, - 'kubeconfigs': {'readonly': True}, - } - - _attribute_map = { - 'hybrid_connection_config': {'key': 'hybridConnectionConfig', 'type': 'HybridConnectionConfig'}, - 'kubeconfigs': {'key': 'kubeconfigs', 'type': '[CredentialResult]'}, - } - - def __init__(self, **kwargs): - super(CredentialResults, self).__init__(**kwargs) - self.hybrid_connection_config = None - self.kubeconfigs = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_results_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_results_py3.py deleted file mode 100644 index a33cfbb6262..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/credential_results_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CredentialResults(Model): - """The list of credential result response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar hybrid_connection_config: Contains the REP (rendezvous endpoint) and - “Sender” access token. - :vartype hybrid_connection_config: - ~azure.mgmt.hybridkubernetes.models.HybridConnectionConfig - :ivar kubeconfigs: Base64-encoded Kubernetes configuration file. - :vartype kubeconfigs: - list[~azure.mgmt.hybridkubernetes.models.CredentialResult] - """ - - _validation = { - 'hybrid_connection_config': {'readonly': True}, - 'kubeconfigs': {'readonly': True}, - } - - _attribute_map = { - 'hybrid_connection_config': {'key': 'hybridConnectionConfig', 'type': 'HybridConnectionConfig'}, - 'kubeconfigs': {'key': 'kubeconfigs', 'type': '[CredentialResult]'}, - } - - def __init__(self, **kwargs) -> None: - super(CredentialResults, self).__init__(**kwargs) - self.hybrid_connection_config = None - self.kubeconfigs = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_additional_info.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_additional_info.py deleted file mode 100644 index 8667aa7f24b..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_additional_info.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorAdditionalInfo(Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: object - """ - - _validation = { - 'type': {'readonly': True}, - 'info': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(ErrorAdditionalInfo, self).__init__(**kwargs) - self.type = None - self.info = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_additional_info_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_additional_info_py3.py deleted file mode 100644 index a18439b9247..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_additional_info_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorAdditionalInfo(Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: object - """ - - _validation = { - 'type': {'readonly': True}, - 'info': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, - } - - def __init__(self, **kwargs) -> None: - super(ErrorAdditionalInfo, self).__init__(**kwargs) - self.type = None - self.info = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_detail.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_detail.py deleted file mode 100644 index 0201b8df3f2..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_detail.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorDetail(Model): - """The error detail. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.hybridkubernetes.models.ErrorDetail] - :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure.mgmt.hybridkubernetes.models.ErrorAdditionalInfo] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'additional_info': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDetail]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, - } - - def __init__(self, **kwargs): - super(ErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.additional_info = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_detail_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_detail_py3.py deleted file mode 100644 index 5e82714fa9a..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_detail_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorDetail(Model): - """The error detail. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.hybridkubernetes.models.ErrorDetail] - :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure.mgmt.hybridkubernetes.models.ErrorAdditionalInfo] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'additional_info': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDetail]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, - } - - def __init__(self, **kwargs) -> None: - super(ErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.additional_info = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_response.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_response.py deleted file mode 100644 index a562916dbc6..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_response.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response. - - Common error response for all Azure Resource Manager APIs to return error - details for failed operations. (This also follows the OData error response - format.). - - :param error: The error object. - :type error: ~azure.mgmt.hybridkubernetes.models.ErrorDetail - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDetail'}, - } - - def __init__(self, **kwargs): - super(ErrorResponse, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_response_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_response_py3.py deleted file mode 100644 index 2b5081a3866..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/error_response_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response. - - Common error response for all Azure Resource Manager APIs to return error - details for failed operations. (This also follows the OData error response - format.). - - :param error: The error object. - :type error: ~azure.mgmt.hybridkubernetes.models.ErrorDetail - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDetail'}, - } - - def __init__(self, *, error=None, **kwargs) -> None: - super(ErrorResponse, self).__init__(**kwargs) - self.error = error - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/hybrid_connection_config.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/hybrid_connection_config.py deleted file mode 100644 index 9db30a6d1f0..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/hybrid_connection_config.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HybridConnectionConfig(Model): - """Contains the REP (rendezvous endpoint) and “Sender” access token. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar expiration_time: Timestamp when this token will be expired. - :vartype expiration_time: long - :ivar hybrid_connection_name: Name of the connection - :vartype hybrid_connection_name: str - :ivar relay: Name of the relay. - :vartype relay: str - :ivar token: Sender access token - :vartype token: str - """ - - _validation = { - 'expiration_time': {'readonly': True}, - 'hybrid_connection_name': {'readonly': True}, - 'relay': {'readonly': True}, - 'token': {'readonly': True}, - } - - _attribute_map = { - 'expiration_time': {'key': 'expirationTime', 'type': 'long'}, - 'hybrid_connection_name': {'key': 'hybridConnectionName', 'type': 'str'}, - 'relay': {'key': 'relay', 'type': 'str'}, - 'token': {'key': 'token', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(HybridConnectionConfig, self).__init__(**kwargs) - self.expiration_time = None - self.hybrid_connection_name = None - self.relay = None - self.token = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/hybrid_connection_config_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/hybrid_connection_config_py3.py deleted file mode 100644 index 97874476d3e..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/hybrid_connection_config_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HybridConnectionConfig(Model): - """Contains the REP (rendezvous endpoint) and “Sender” access token. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar expiration_time: Timestamp when this token will be expired. - :vartype expiration_time: long - :ivar hybrid_connection_name: Name of the connection - :vartype hybrid_connection_name: str - :ivar relay: Name of the relay. - :vartype relay: str - :ivar token: Sender access token - :vartype token: str - """ - - _validation = { - 'expiration_time': {'readonly': True}, - 'hybrid_connection_name': {'readonly': True}, - 'relay': {'readonly': True}, - 'token': {'readonly': True}, - } - - _attribute_map = { - 'expiration_time': {'key': 'expirationTime', 'type': 'long'}, - 'hybrid_connection_name': {'key': 'hybridConnectionName', 'type': 'str'}, - 'relay': {'key': 'relay', 'type': 'str'}, - 'token': {'key': 'token', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(HybridConnectionConfig, self).__init__(**kwargs) - self.expiration_time = None - self.hybrid_connection_name = None - self.relay = None - self.token = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/list_cluster_user_credentials_properties.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/list_cluster_user_credentials_properties.py deleted file mode 100644 index 2d034197a60..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/list_cluster_user_credentials_properties.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ListClusterUserCredentialsProperties(Model): - """ListClusterUserCredentialsProperties. - - All required parameters must be populated in order to send to Azure. - - :param authentication_method: Required. The mode of client authentication. - Possible values include: 'Token', 'AAD' - :type authentication_method: str or - ~azure.mgmt.hybridkubernetes.models.AuthenticationMethod - :param client_proxy: Required. Boolean value to indicate whether the - request is for client side proxy or not - :type client_proxy: bool - """ - - _validation = { - 'authentication_method': {'required': True}, - 'client_proxy': {'required': True}, - } - - _attribute_map = { - 'authentication_method': {'key': 'authenticationMethod', 'type': 'str'}, - 'client_proxy': {'key': 'clientProxy', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(ListClusterUserCredentialsProperties, self).__init__(**kwargs) - self.authentication_method = kwargs.get('authentication_method', None) - self.client_proxy = kwargs.get('client_proxy', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/list_cluster_user_credentials_properties_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/list_cluster_user_credentials_properties_py3.py deleted file mode 100644 index 9c72a6a74dc..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/list_cluster_user_credentials_properties_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ListClusterUserCredentialsProperties(Model): - """ListClusterUserCredentialsProperties. - - All required parameters must be populated in order to send to Azure. - - :param authentication_method: Required. The mode of client authentication. - Possible values include: 'Token', 'AAD' - :type authentication_method: str or - ~azure.mgmt.hybridkubernetes.models.AuthenticationMethod - :param client_proxy: Required. Boolean value to indicate whether the - request is for client side proxy or not - :type client_proxy: bool - """ - - _validation = { - 'authentication_method': {'required': True}, - 'client_proxy': {'required': True}, - } - - _attribute_map = { - 'authentication_method': {'key': 'authenticationMethod', 'type': 'str'}, - 'client_proxy': {'key': 'clientProxy', 'type': 'bool'}, - } - - def __init__(self, *, authentication_method, client_proxy: bool, **kwargs) -> None: - super(ListClusterUserCredentialsProperties, self).__init__(**kwargs) - self.authentication_method = authentication_method - self.client_proxy = client_proxy diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation.py deleted file mode 100644 index a92f2775c6f..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """The Connected cluster API operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Operation name: {Microsoft.Kubernetes}/{resource}/{operation} - :vartype name: str - :ivar display: The object that represents the operation. - :vartype display: ~azure.mgmt.hybridkubernetes.models.OperationDisplay - """ - - _validation = { - 'name': {'readonly': True}, - 'display': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_display.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_display.py deleted file mode 100644 index d7d73494c89..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_display.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.connectedClusters - :type provider: str - :param resource: Connected Cluster Resource on which the operation is - performed - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_display_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_display_py3.py deleted file mode 100644 index ec4cfb57ef1..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_display_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.connectedClusters - :type provider: str - :param resource: Connected Cluster Resource on which the operation is - performed - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_paged.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_paged.py deleted file mode 100644 index 56892781d2b..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_py3.py deleted file mode 100644 index d0871dcc46f..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/operation_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """The Connected cluster API operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Operation name: {Microsoft.Kubernetes}/{resource}/{operation} - :vartype name: str - :ivar display: The object that represents the operation. - :vartype display: ~azure.mgmt.hybridkubernetes.models.OperationDisplay - """ - - _validation = { - 'name': {'readonly': True}, - 'display': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/proxy_resource.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/proxy_resource.py deleted file mode 100644 index 76698f8e638..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/proxy_resource.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ProxyResource(Resource): - """Proxy Resource. - - The resource model definition for a Azure Resource Manager proxy resource. - It will not have tags and a location. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProxyResource, self).__init__(**kwargs) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/proxy_resource_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/proxy_resource_py3.py deleted file mode 100644 index cda7af9567b..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/proxy_resource_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ProxyResource(Resource): - """Proxy Resource. - - The resource model definition for a Azure Resource Manager proxy resource. - It will not have tags and a location. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ProxyResource, self).__init__(**kwargs) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/resource.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/resource.py deleted file mode 100644 index 67e3ec63baa..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/resource.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Common fields that are returned in the response for all Azure Resource - Manager resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/resource_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/resource_py3.py deleted file mode 100644 index 52780ddb943..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/resource_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Common fields that are returned in the response for all Azure Resource - Manager resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/system_data.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/system_data.py deleted file mode 100644 index ba29cb21ce1..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/system_data.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SystemData(Model): - """Metadata pertaining to creation and last modification of the resource. - - :param created_by: The identity that created the resource. - :type created_by: str - :param created_by_type: The type of identity that created the resource. - Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' - :type created_by_type: str or - ~azure.mgmt.hybridkubernetes.models.CreatedByType - :param created_at: The timestamp of resource creation (UTC). - :type created_at: datetime - :param last_modified_by: The identity that last modified the resource. - :type last_modified_by: str - :param last_modified_by_type: The type of identity that last modified the - resource. Possible values include: 'User', 'Application', - 'ManagedIdentity', 'Key' - :type last_modified_by_type: str or - ~azure.mgmt.hybridkubernetes.models.LastModifiedByType - :param last_modified_at: The timestamp of resource modification (UTC). - :type last_modified_at: datetime - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'created_by_type': {'key': 'createdByType', 'type': 'str'}, - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, - 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, - 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(SystemData, self).__init__(**kwargs) - self.created_by = kwargs.get('created_by', None) - self.created_by_type = kwargs.get('created_by_type', None) - self.created_at = kwargs.get('created_at', None) - self.last_modified_by = kwargs.get('last_modified_by', None) - self.last_modified_by_type = kwargs.get('last_modified_by_type', None) - self.last_modified_at = kwargs.get('last_modified_at', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/system_data_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/system_data_py3.py deleted file mode 100644 index 865f9525f0d..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/system_data_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SystemData(Model): - """Metadata pertaining to creation and last modification of the resource. - - :param created_by: The identity that created the resource. - :type created_by: str - :param created_by_type: The type of identity that created the resource. - Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' - :type created_by_type: str or - ~azure.mgmt.hybridkubernetes.models.CreatedByType - :param created_at: The timestamp of resource creation (UTC). - :type created_at: datetime - :param last_modified_by: The identity that last modified the resource. - :type last_modified_by: str - :param last_modified_by_type: The type of identity that last modified the - resource. Possible values include: 'User', 'Application', - 'ManagedIdentity', 'Key' - :type last_modified_by_type: str or - ~azure.mgmt.hybridkubernetes.models.LastModifiedByType - :param last_modified_at: The timestamp of resource modification (UTC). - :type last_modified_at: datetime - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'created_by_type': {'key': 'createdByType', 'type': 'str'}, - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, - 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, - 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, - } - - def __init__(self, *, created_by: str=None, created_by_type=None, created_at=None, last_modified_by: str=None, last_modified_by_type=None, last_modified_at=None, **kwargs) -> None: - super(SystemData, self).__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/tracked_resource.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/tracked_resource.py deleted file mode 100644 index 6d2a30bc256..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/tracked_resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class TrackedResource(Resource): - """Tracked Resource. - - The resource model definition for an Azure Resource Manager tracked top - level resource which has 'tags' and a 'location'. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs.get('location', None) diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/tracked_resource_py3.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/tracked_resource_py3.py deleted file mode 100644 index 0d465ca30d8..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/models/tracked_resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class TrackedResource(Resource): - """Tracked Resource. - - The resource model definition for an Azure Resource Manager tracked top - level resource which has 'tags' and a 'location'. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, *, location: str, tags=None, **kwargs) -> None: - super(TrackedResource, self).__init__(**kwargs) - self.tags = tags - self.location = location diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/__init__.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/__init__.py index 86d5be1f5b6..4bf80ae81ea 100644 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/__init__.py +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/__init__.py @@ -1,16 +1,13 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from .connected_cluster_operations import ConnectedClusterOperations -from .operations import Operations +from ._connected_cluster_operations import ConnectedClusterOperations +from ._operations import Operations __all__ = [ 'ConnectedClusterOperations', diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/_connected_cluster_operations.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/_connected_cluster_operations.py new file mode 100644 index 00000000000..c0171872167 --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/_connected_cluster_operations.py @@ -0,0 +1,704 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ConnectedClusterOperations(object): + """ConnectedClusterOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~connected_kubernetes_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _create_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + connected_cluster, # type: "_models.ConnectedCluster" + **kwargs # type: Any + ): + # type: (...) -> "_models.ConnectedCluster" + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-04-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(connected_cluster, 'ConnectedCluster') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def begin_create( + self, + resource_group_name, # type: str + cluster_name, # type: str + connected_cluster, # type: "_models.ConnectedCluster" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.ConnectedCluster"] + """Register a new Kubernetes cluster with Azure Resource Manager. + + API to register a new Kubernetes cluster and create a tracked resource in Azure Resource + Manager (ARM). + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the Kubernetes cluster on which get is called. + :type cluster_name: str + :param connected_cluster: Parameters supplied to Create a Connected Cluster. + :type connected_cluster: ~connected_kubernetes_client.models.ConnectedCluster + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either ConnectedCluster or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~connected_kubernetes_client.models.ConnectedCluster] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedCluster"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + connected_cluster=connected_cluster, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + connected_cluster_patch, # type: "_models.ConnectedClusterPatch" + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.ConnectedCluster"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ConnectedCluster"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-04-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(connected_cluster_patch, 'ConnectedClusterPatch') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + cluster_name, # type: str + connected_cluster_patch, # type: "_models.ConnectedClusterPatch" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.ConnectedCluster"] + """Updates a connected cluster. + + API to update certain properties of the connected cluster resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the Kubernetes cluster on which get is called. + :type cluster_name: str + :param connected_cluster_patch: Parameters supplied to update Connected Cluster. + :type connected_cluster_patch: ~connected_kubernetes_client.models.ConnectedClusterPatch + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either ConnectedCluster or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~connected_kubernetes_client.models.ConnectedCluster] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedCluster"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + connected_cluster_patch=connected_cluster_patch, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + cluster_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ConnectedCluster" + """Get the properties of the specified connected cluster. + + Returns the properties of the specified connected cluster, including name, identity, + properties, and additional cluster details. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the Kubernetes cluster on which get is called. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConnectedCluster, or the result of cls(response) + :rtype: ~connected_kubernetes_client.models.ConnectedCluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-04-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('ConnectedCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-04-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + cluster_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Delete a connected cluster. + + Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM). + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the Kubernetes cluster on which get is called. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} # type: ignore + + def list_cluster_user_credentials( + self, + resource_group_name, # type: str + cluster_name, # type: str + properties, # type: "_models.ListClusterUserCredentialsProperties" + **kwargs # type: Any + ): + # type: (...) -> "_models.CredentialResults" + """Gets cluster user credentials of a connected cluster. + + Gets cluster user credentials of the connected cluster with a specified resource group and + name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the Kubernetes cluster on which get is called. + :type cluster_name: str + :param properties: ListClusterUserCredentials properties. + :type properties: ~connected_kubernetes_client.models.ListClusterUserCredentialsProperties + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CredentialResults, or the result of cls(response) + :rtype: ~connected_kubernetes_client.models.CredentialResults + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CredentialResults"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-04-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.list_cluster_user_credentials.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(properties, 'ListClusterUserCredentialsProperties') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('CredentialResults', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_cluster_user_credentials.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}/listClusterUserCredentials'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ConnectedClusterList"] + """Lists all connected clusters. + + API to enumerate registered connected K8s clusters under a Resource Group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ConnectedClusterList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~connected_kubernetes_client.models.ConnectedClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-04-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ConnectedClusterList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters'} # type: ignore + + def list_by_subscription( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ConnectedClusterList"] + """Lists all connected clusters. + + API to enumerate registered connected K8s clusters under a Subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ConnectedClusterList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~connected_kubernetes_client.models.ConnectedClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConnectedClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-04-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ConnectedClusterList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kubernetes/connectedClusters'} # type: ignore diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/_operations.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/_operations.py new file mode 100644 index 00000000000..79b048b1e9b --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/_operations.py @@ -0,0 +1,110 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class Operations(object): + """Operations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~connected_kubernetes_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.OperationList"] + """Lists all of the available API operations for Connected Cluster resource. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OperationList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~connected_kubernetes_client.models.OperationList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-04-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.get.metadata['url'] # type: ignore + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('OperationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + get.metadata = {'url': '/providers/Microsoft.Kubernetes/operations'} # type: ignore diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/connected_cluster_operations.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/connected_cluster_operations.py deleted file mode 100644 index 8f060bc5f51..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/connected_cluster_operations.py +++ /dev/null @@ -1,587 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class ConnectedClusterOperations(object): - """ConnectedClusterOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2021-04-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2021-04-01-preview" - - self.config = config - - - def _create_initial( - self, resource_group_name, cluster_name, connected_cluster, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(connected_cluster, 'ConnectedCluster') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ConnectedCluster', response) - if response.status_code == 201: - deserialized = self._deserialize('ConnectedCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def create( - self, resource_group_name, cluster_name, connected_cluster, custom_headers=None, raw=False, polling=True, **operation_config): - """Register a new Kubernetes cluster with Azure Resource Manager. - - API to register a new Kubernetes cluster and create a tracked resource - in Azure Resource Manager (ARM). - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param cluster_name: The name of the Kubernetes cluster on which get - is called. - :type cluster_name: str - :param connected_cluster: Parameters supplied to Create a Connected - Cluster. - :type connected_cluster: - ~azure.mgmt.hybridkubernetes.models.ConnectedCluster - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns ConnectedCluster or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.hybridkubernetes.models.ConnectedCluster] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.hybridkubernetes.models.ConnectedCluster]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - connected_cluster=connected_cluster, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('ConnectedCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} - - def update( - self, resource_group_name, cluster_name, tags=None, properties=None, custom_headers=None, raw=False, **operation_config): - """Updates a connected cluster. - - API to update certain properties of the connected cluster resource. - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param cluster_name: The name of the Kubernetes cluster on which get - is called. - :type cluster_name: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param properties: Describes the connected cluster resource properties - that can be updated during PATCH operation. - :type properties: object - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ConnectedCluster or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.hybridkubernetes.models.ConnectedCluster or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - connected_cluster_patch = models.ConnectedClusterPatch(tags=tags, properties=properties) - - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(connected_cluster_patch, 'ConnectedClusterPatch') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ConnectedCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} - - def get( - self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): - """Get the properties of the specified connected cluster. - - Returns the properties of the specified connected cluster, including - name, identity, properties, and additional cluster details. - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param cluster_name: The name of the Kubernetes cluster on which get - is called. - :type cluster_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ConnectedCluster or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.hybridkubernetes.models.ConnectedCluster or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ConnectedCluster', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} - - - def _delete_initial( - self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, cluster_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Delete a connected cluster. - - Delete a connected cluster, removing the tracked resource in Azure - Resource Manager (ARM). - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param cluster_name: The name of the Kubernetes cluster on which get - is called. - :type cluster_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}'} - - def list_cluster_user_credentials( - self, resource_group_name, cluster_name, authentication_method, client_proxy, custom_headers=None, raw=False, **operation_config): - """Gets cluster user credentials of a connected cluster. - - Gets cluster user credentials of the connected cluster with a specified - resource group and name. - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param cluster_name: The name of the Kubernetes cluster on which get - is called. - :type cluster_name: str - :param authentication_method: The mode of client authentication. - Possible values include: 'Token', 'AAD' - :type authentication_method: str or - ~azure.mgmt.hybridkubernetes.models.AuthenticationMethod - :param client_proxy: Boolean value to indicate whether the request is - for client side proxy or not - :type client_proxy: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: CredentialResults or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.hybridkubernetes.models.CredentialResults or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - properties = models.ListClusterUserCredentialsProperties(authentication_method=authentication_method, client_proxy=client_proxy) - - # Construct URL - url = self.list_cluster_user_credentials.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(properties, 'ListClusterUserCredentialsProperties') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('CredentialResults', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - list_cluster_user_credentials.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}/listClusterUserCredentials'} - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Lists all connected clusters. - - API to enumerate registered connected K8s clusters under a Resource - Group. - - :param resource_group_name: The name of the resource group. The name - is case insensitive. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ConnectedCluster - :rtype: - ~azure.mgmt.hybridkubernetes.models.ConnectedClusterPaged[~azure.mgmt.hybridkubernetes.models.ConnectedCluster] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.ConnectedClusterPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ConnectedClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters'} - - def list_by_subscription( - self, custom_headers=None, raw=False, **operation_config): - """Lists all connected clusters. - - API to enumerate registered connected K8s clusters under a - Subscription. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ConnectedCluster - :rtype: - ~azure.mgmt.hybridkubernetes.models.ConnectedClusterPaged[~azure.mgmt.hybridkubernetes.models.ConnectedCluster] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_subscription.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.ConnectedClusterPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ConnectedClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kubernetes/connectedClusters'} diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/operations.py b/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/operations.py deleted file mode 100644 index 2f7cc3f2a0d..00000000000 --- a/src/connectedk8s/azext_connectedk8s/vendored_sdks/preview_2021_04_01/operations/operations.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class Operations(object): - """Operations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2021-04-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2021-04-01-preview" - - self.config = config - - def get( - self, custom_headers=None, raw=False, **operation_config): - """Lists all of the available API operations for Connected Cluster - resource. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Operation - :rtype: - ~azure.mgmt.hybridkubernetes.models.OperationPaged[~azure.mgmt.hybridkubernetes.models.Operation] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.get.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - get.metadata = {'url': '/providers/Microsoft.Kubernetes/operations'} diff --git a/src/connectedk8s/azext_connectedk8s/vendored_sdks/py.typed b/src/connectedk8s/azext_connectedk8s/vendored_sdks/py.typed new file mode 100644 index 00000000000..e5aff4f83af --- /dev/null +++ b/src/connectedk8s/azext_connectedk8s/vendored_sdks/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. \ No newline at end of file diff --git a/src/connectedk8s/setup.py b/src/connectedk8s/setup.py index 4feac457b7f..0e5f3d59160 100644 --- a/src/connectedk8s/setup.py +++ b/src/connectedk8s/setup.py @@ -17,7 +17,7 @@ # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. -VERSION = '1.1.5' +VERSION = '1.1.6' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers