ContainerRegistryManagementClient icon

ContainerRegistryManagementClient

Connect to ContainerRegistryManagementClient with 1 MCP tools for AI-powered API automation.

COMMUNITYBEARER0 INSTALLS
OpenAPI Specificationv3.0
{
  "swagger": "2.0",
  "schemes": [
    "https"
  ],
  "host": "management.azure.com",
  "info": {
    "title": "ContainerRegistryManagementClient",
    "version": "2019-05-01-preview",
    "x-apisguru-categories": [
      "cloud"
    ],
    "x-logo": {
      "url": "https://api.apis.guru/v2/cache/logo/https_assets.onestore.ms_cdnfiles_onestorerolling-1606-01000_shell_v3_images_logo_microsoft.png"
    },
    "x-origin": [
      {
        "format": "swagger",
        "url": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-05-01-preview/containerregistry_scopemap.json",
        "version": "2.0"
      }
    ],
    "x-providerName": "azure.com",
    "x-serviceName": "containerregistry-containerregistry_scopemap",
    "x-tags": [
      "Azure",
      "Microsoft"
    ]
  },
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "securityDefinitions": {
    "azure_auth": {
      "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
      "description": "Azure Active Directory OAuth2 Flow",
      "flow": "implicit",
      "scopes": {
        "user_impersonation": "impersonate your user account"
      },
      "type": "oauth2"
    }
  },
  "security": [
    {
      "azure_auth": [
        "user_impersonation"
      ]
    }
  ],
  "parameters": {
    "ApiVersionParameter": {
      "description": "The client API version.",
      "in": "query",
      "name": "api-version",
      "required": true,
      "type": "string"
    },
    "RegistryNameParameter": {
      "description": "The name of the container registry.",
      "in": "path",
      "maxLength": 50,
      "minLength": 5,
      "name": "registryName",
      "pattern": "^[a-zA-Z0-9]*$",
      "required": true,
      "type": "string",
      "x-ms-parameter-location": "method"
    },
    "ResourceGroupParameter": {
      "description": "The name of the resource group to which the container registry belongs.",
      "in": "path",
      "minLength": 1,
      "name": "resourceGroupName",
      "required": true,
      "type": "string",
      "x-ms-parameter-location": "method"
    },
    "ScopeMapNameParameter": {
      "description": "The name of the scope map.",
      "in": "path",
      "maxLength": 50,
      "minLength": 5,
      "name": "scopeMapName",
      "pattern": "^[a-zA-Z0-9-_]*$",
      "required": true,
      "type": "string",
      "x-ms-parameter-location": "method"
    },
    "SubscriptionIdParameter": {
      "description": "The Microsoft Azure subscription ID.",
      "in": "path",
      "name": "subscriptionId",
      "required": true,
      "type": "string"
    },
    "TokenNameParameter": {
      "description": "The name of the token.",
      "in": "path",
      "maxLength": 50,
      "minLength": 5,
      "name": "tokenName",
      "pattern": "^[a-zA-Z0-9-]*$",
      "required": true,
      "type": "string",
      "x-ms-parameter-location": "method"
    }
  },
  "paths": {
    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials": {
      "post": {
        "description": "Generate keys for a token of a specified container registry.",
        "operationId": "Registries_GenerateCredentials",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          },
          {
            "description": "The parameters for generating credentials.",
            "in": "body",
            "name": "generateCredentialsParameters",
            "required": true,
            "schema": {
              "$ref": "#/definitions/GenerateCredentialsParameters"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/GenerateCredentialsResult"
            }
          },
          "202": {
            "description": "The request was successful; the operation will complete asynchronously."
          }
        },
        "tags": [
          "Registries"
        ],
        "x-ms-examples": {
          "RegistryGenerateCredentials": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "generateCredentialsParameters": {
                "expiry": "2020-12-31T15:59:59.0707808Z",
                "tokenId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken"
              },
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "subscriptionId": "00000000-0000-0000-0000-000000000000"
            },
            "responses": {
              "200": {
                "body": {
                  "passwords": [
                    {
                      "expiry": "2020-12-31T15:59:59.0707808Z",
                      "name": "password1",
                      "value": "00000000000000000000000000000000"
                    },
                    {
                      "expiry": "2020-12-31T15:59:59.0707808Z",
                      "name": "password2",
                      "value": "00000000000000000000000000000000"
                    }
                  ],
                  "username": "myToken"
                }
              },
              "202": {}
            }
          }
        },
        "x-ms-long-running-operation": true
      }
    },
    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps": {
      "get": {
        "description": "Lists all the scope maps for the specified container registry.",
        "operationId": "ScopeMaps_List",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/ScopeMapListResult"
            }
          }
        },
        "tags": [
          "ScopeMaps"
        ],
        "x-ms-examples": {
          "ScopeMapList": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "subscriptionId": "00000000-0000-0000-0000-000000000000"
            },
            "responses": {
              "200": {
                "body": {
                  "value": [
                    {
                      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                      "name": "myScopeMap",
                      "properties": {
                        "actions": [
                          "repositories/myrepository/contentWrite",
                          "repositories/myrepository/delete"
                        ],
                        "creationDate": "2017-03-01T23:14:37.0707808Z",
                        "provisioningState": "Succeeded",
                        "type": "IsUserDefined"
                      },
                      "type": "Microsoft.ContainerRegistry/registries/scopeMaps"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-ms-pageable": {
          "nextLinkName": "nextLink"
        }
      }
    },
    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}": {
      "delete": {
        "description": "Deletes a scope map from a container registry.",
        "operationId": "ScopeMaps_Delete",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          },
          {
            "$ref": "#/parameters/ScopeMapNameParameter"
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly."
          },
          "202": {
            "description": "The request was successful; the operation will complete asynchronously."
          },
          "204": {
            "description": "The scopemap does not exist in the subscription."
          }
        },
        "tags": [
          "ScopeMaps"
        ],
        "x-ms-examples": {
          "ScopeMapDelete": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "scopeMapName": "myScopeMap",
              "subscriptionId": "00000000-0000-0000-0000-000000000000"
            },
            "responses": {
              "200": {},
              "202": {},
              "204": {}
            }
          }
        },
        "x-ms-long-running-operation": true
      },
      "get": {
        "description": "Gets the properties of the specified scope map.",
        "operationId": "ScopeMaps_Get",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          },
          {
            "$ref": "#/parameters/ScopeMapNameParameter"
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/ScopeMap"
            }
          }
        },
        "tags": [
          "ScopeMaps"
        ],
        "x-ms-examples": {
          "ScopeMapGet": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "scopeMapName": "myScopeMap",
              "subscriptionId": "00000000-0000-0000-0000-000000000000"
            },
            "responses": {
              "200": {
                "body": {
                  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                  "name": "myScopeMap",
                  "properties": {
                    "actions": [
                      "repositories/myrepository/contentWrite",
                      "repositories/myrepository/delete"
                    ],
                    "creationDate": "2017-03-01T23:14:37.0707808Z",
                    "provisioningState": "Succeeded",
                    "type": "IsUserDefined"
                  },
                  "type": "Microsoft.ContainerRegistry/registries/scopeMaps"
                }
              }
            }
          }
        }
      },
      "patch": {
        "description": "Updates a scope map with the specified parameters.",
        "operationId": "ScopeMaps_Update",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          },
          {
            "$ref": "#/parameters/ScopeMapNameParameter"
          },
          {
            "description": "The parameters for updating a scope map.",
            "in": "body",
            "name": "scopeMapUpdateParameters",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ScopeMapUpdateParameters"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/ScopeMap"
            }
          },
          "201": {
            "description": "The request was successful; the operation will complete asynchronously.",
            "schema": {
              "$ref": "#/definitions/ScopeMap"
            }
          }
        },
        "tags": [
          "ScopeMaps"
        ],
        "x-ms-examples": {
          "ScopeMapUpdate": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "scopeMapName": "myScopeMap",
              "scopeMapUpdateParameters": {
                "properties": {
                  "actions": [
                    "repositories/myrepository/contentWrite",
                    "repositories/myrepository/contentRead"
                  ],
                  "description": "Developer Scopes"
                }
              },
              "subscriptionId": "00000000-0000-0000-0000-000000000000"
            },
            "responses": {
              "200": {
                "body": {
                  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                  "name": "myScopeMap",
                  "properties": {
                    "actions": [
                      "repositories/myrepository/contentWrite",
                      "repositories/myrepository/contentRead"
                    ],
                    "creationDate": "2017-03-01T23:14:37.0707808Z",
                    "provisioningState": "Succeeded",
                    "type": "IsUserDefined"
                  },
                  "type": "Microsoft.ContainerRegistry/registries/scopeMaps"
                }
              },
              "201": {
                "body": {
                  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                  "name": "myScopeMap",
                  "properties": {
                    "actions": [
                      "repositories/myrepository/contentWrite",
                      "repositories/myrepository/contentRead"
                    ],
                    "creationDate": "2017-03-01T23:14:37.0707808Z",
                    "provisioningState": "Succeeded",
                    "type": "IsUserDefined"
                  },
                  "type": "Microsoft.ContainerRegistry/registries/scopeMaps"
                }
              }
            }
          }
        },
        "x-ms-long-running-operation": true
      },
      "put": {
        "description": "Creates a scope map for a container registry with the specified parameters.",
        "operationId": "ScopeMaps_Create",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          },
          {
            "$ref": "#/parameters/ScopeMapNameParameter"
          },
          {
            "description": "The parameters for creating a scope map.",
            "in": "body",
            "name": "scopeMapCreateParameters",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ScopeMap"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/ScopeMap"
            }
          },
          "201": {
            "description": "The request was successful; the operation will complete asynchronously.",
            "schema": {
              "$ref": "#/definitions/ScopeMap"
            }
          }
        },
        "tags": [
          "ScopeMaps"
        ],
        "x-ms-examples": {
          "ScopeMapCreate": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "scopeMapCreateParameters": {
                "properties": {
                  "actions": [
                    "repositories/myrepository/contentWrite",
                    "repositories/myrepository/delete"
                  ],
                  "description": "Developer Scopes"
                }
              },
              "scopeMapName": "myScopeMap",
              "subscriptionId": "00000000-0000-0000-0000-000000000000"
            },
            "responses": {
              "200": {
                "body": {
                  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                  "name": "myScopeMap",
                  "properties": {
                    "actions": [
                      "repositories/myrepository/contentWrite",
                      "repositories/myrepository/delete"
                    ],
                    "creationDate": "2017-03-01T23:14:37.0707808Z",
                    "provisioningState": "Succeeded",
                    "type": "IsUserDefined"
                  },
                  "type": "Microsoft.ContainerRegistry/registries/scopeMaps"
                }
              },
              "201": {
                "body": {
                  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                  "name": "myScopeMap",
                  "properties": {
                    "actions": [
                      "repositories/myrepository/contentWrite",
                      "repositories/myrepository/delete"
                    ],
                    "creationDate": "2017-03-01T23:14:37.0707808Z",
                    "provisioningState": "Succeeded",
                    "type": "IsUserDefined"
                  },
                  "type": "Microsoft.ContainerRegistry/registries/scopeMaps"
                }
              }
            }
          }
        },
        "x-ms-long-running-operation": true
      }
    },
    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens": {
      "get": {
        "description": "Lists all the tokens for the specified container registry.",
        "operationId": "Tokens_List",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/TokenListResult"
            }
          }
        },
        "tags": [
          "Tokens"
        ],
        "x-ms-examples": {
          "TokenList": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "subscriptionId": "00000000-0000-0000-0000-000000000000"
            },
            "responses": {
              "200": {
                "body": {
                  "value": [
                    {
                      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken",
                      "name": "myToken",
                      "properties": {
                        "creationDate": "2017-03-01T23:14:37.0707808Z",
                        "provisioningState": "Succeeded",
                        "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                        "status": "enabled"
                      },
                      "type": "Microsoft.ContainerRegistry/registries/tokens"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-ms-pageable": {
          "nextLinkName": "nextLink"
        }
      }
    },
    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}": {
      "delete": {
        "description": "Deletes a token from a container registry.",
        "operationId": "Tokens_Delete",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          },
          {
            "$ref": "#/parameters/TokenNameParameter"
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly."
          },
          "202": {
            "description": "The request was successful; the operation will complete asynchronously."
          },
          "204": {
            "description": "The token does not exist in the subscription."
          }
        },
        "tags": [
          "Tokens"
        ],
        "x-ms-examples": {
          "TokenDelete": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "subscriptionId": "00000000-0000-0000-0000-000000000000",
              "tokenName": "myToken"
            },
            "responses": {
              "200": {},
              "202": {},
              "204": {}
            }
          }
        },
        "x-ms-long-running-operation": true
      },
      "get": {
        "description": "Gets the properties of the specified token.",
        "operationId": "Tokens_Get",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          },
          {
            "$ref": "#/parameters/TokenNameParameter"
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/Token"
            }
          }
        },
        "tags": [
          "Tokens"
        ],
        "x-ms-examples": {
          "TokenGet": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "subscriptionId": "00000000-0000-0000-0000-000000000000",
              "tokenName": "myToken"
            },
            "responses": {
              "200": {
                "body": {
                  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken",
                  "name": "myToken",
                  "properties": {
                    "creationDate": "2017-03-01T23:14:37.0707808Z",
                    "provisioningState": "Succeeded",
                    "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                    "status": "enabled"
                  },
                  "type": "Microsoft.ContainerRegistry/registries/tokens"
                }
              }
            }
          }
        }
      },
      "patch": {
        "description": "Updates a token with the specified parameters.",
        "operationId": "Tokens_Update",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          },
          {
            "$ref": "#/parameters/TokenNameParameter"
          },
          {
            "description": "The parameters for updating a token.",
            "in": "body",
            "name": "tokenUpdateParameters",
            "required": true,
            "schema": {
              "$ref": "#/definitions/TokenUpdateParameters"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/Token"
            }
          },
          "201": {
            "description": "The request was successful; the operation will complete asynchronously.",
            "schema": {
              "$ref": "#/definitions/Token"
            }
          }
        },
        "tags": [
          "Tokens"
        ],
        "x-ms-examples": {
          "TokenUpdate": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "subscriptionId": "00000000-0000-0000-0000-000000000000",
              "tokenName": "myToken",
              "tokenUpdateParameters": {
                "properties": {
                  "credentials": {
                    "certificates": [
                      {
                        "encodedPemCertificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUc3akNDQk5hZ0F3SUJBZ0lURmdBQlR3UVpyZGdmdmhxdzBnQUFBQUZQQkRBTkJna3Foa2lHOXcwQkFRc0YKQURDQml6RUxNQWtHQTFVRUJoTUNWVk14RXpBUkJnTlZCQWdUQ2xkaGMyaHBibWQwYjI0eEVEQU9CZ05WQkFjVApCMUpsWkcxdmJtUXhIakFjQmdOVkJBb1RGVTFwWTNKdmMyOW1kQ0JEYjNKd2IzSmhkR2x2YmpFVk1CTUdBMVVFCkN4TU1UV2xqY205emIyWjBJRWxVTVI0d0hBWURWUVFERXhWTmFXTnliM052Wm5RZ1NWUWdWRXhUSUVOQklEUXcKSGhjTk1UZ3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dkeS9EU2lyNzVqcWZFY016bS82bU8rNnFNeWRLTWtVYmM5K3JHVwphUkpUcjRWUUdIRmEwNEIwZVZpNUd4MG9pL2RpZDNSaXg2aXJMMjFJSGEwYjN6c1hzZHpHU0R2K3hqL2Q2S0l4Ckdrd2FhYmZvU1NoQnFqaFNlQ0VyZXFlb1RpYjljdGw0MGRVdUp3THl4bjhHS2N6K3AvMEJUOEIxU3lYK01OQ2wKY0pkMjVtMjhLajY2TGUxOEVyeFlJYXZJVGVGa3Y2eGZjdkEvcHladDdPaU41QTlGQk1IUmpQK1kyZ2tvdjMrcQpISFRUZG4xNnlRajduNit3YlFHNGVleXc0YisyQkRLcUxNVFU2ZmlSQ3ZPM2FPZVBLSFVNN3R4b1FidWl6Z3NzCkNiMzl3QnJOTEZsMkJLQ1RkSCtkSU9oZVJiSkZvbmlwOGRPOUVFZWdSSG9lQW54ZUlYTFBrdXMzTzEvZjRhNkIKWHQ3RG5BUm8xSzJmeEp3VXRaU2MvR3dFSjU5NzlnRXlEa3pDZEVsLzdpWE9QZXVjTXhlM2xVM2pweUtsNERUaApjSkJqQytqNGpLWTFrK1U4b040aGdqYnJISUx6Vnd2eU15OU5KS290U3BMSjQxeHdPOHlGangxalFTT3Bxc0N1ClFhUFUvTjhSZ0hxWjBGTkFzS3dNUmZ6WmdXanRCNzRzYUVEdk5jVmNuNFhCQnFNSG0ydHo2Uzk3d3kxZGt0cTgKSE5BPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==",
                        "name": "certificate1"
                      }
                    ]
                  },
                  "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myNewScopeMap"
                }
              }
            },
            "responses": {
              "200": {
                "body": {
                  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken",
                  "name": "myToken",
                  "properties": {
                    "creationDate": "2017-03-01T23:14:37.0707808Z",
                    "credentials": {
                      "certificates": [
                        {
                          "encodedPemCertificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUc3akNDQk5hZ0F3SUJBZ0lURmdBQlR3UVpyZGdmdmhxdzBnQUFBQUZQQkRBTkJna3Foa2lHOXcwQkFRc0YKQURDQml6RUxNQWtHQTFVRUJoTUNWVk14RXpBUkJnTlZCQWdUQ2xkaGMyaHBibWQwYjI0eEVEQU9CZ05WQkFjVApCMUpsWkcxdmJtUXhIakFjQmdOVkJBb1RGVTFwWTNKdmMyOW1kQ0JEYjNKd2IzSmhkR2x2YmpFVk1CTUdBMVVFCkN4TU1UV2xqY205emIyWjBJRWxVTVI0d0hBWURWUVFERXhWTmFXTnliM052Wm5RZ1NWUWdWRXhUSUVOQklEUXcKSGhjTk1UZ3dOREV5TWpJek1qUTRXaGNOTWpBd05ERXlNakl6TWpRNFdqQTVNVGN3TlFZRFZRUURFeTV6WlhKMgphV05sWTJ4cFpXNTBZMlZ5ZEMxd1lYSjBibVZ5TG0xaGJtRm5aVzFsYm5RdVlYcDFjbVV1WTI5dE1JSUJJakFOCkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTBSYjdJcHpxMmR4emhhbVpyS1ZDakMzeTQyYlYKUnNIY2pCUTFuSDBHZ1puUDhXeDZDSE1mWThybkVJQzRLeVRRYkJXVzhnNXlmc3NSQ0ZXbFpxYjR6SkRXS0pmTgpGSmNMUm9LNnhwTktZYVZVTkVlT25IdUxHYTM0ZlA0VjBFRjZybzdvbkRLME5zanhjY1dZVzRNVXVzc0xrQS94CkUrM2RwU1REdk1KcjJoWUpsVnFDcVR6blQvbmZaVUZzQUVEQnp5MUpOOHZiZDlIR2czc2Myd0x4dk95cFJOc0gKT1V3V2pmN2xzWWZleEVlcWkzY29EeHc2alpLVWEyVkdsUnBpTkowMjhBQitYSi9TU1FVNVBsd0JBbU9TT3ovRApG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TFrK1U4b040aGdqYnJISUx6Vnd2eU15OU5KS290U3BMSjQxeHdPOHlGangxalFTT3Bxc0N1ClFhUFUvTjhSZ0hxWjBGTkFzS3dNUmZ6WmdXanRCNzRzYUVEdk5jVmNuNFhCQnFNSG0ydHo2Uzk3d3kxZGt0cTgKSE5BPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==",
                          "name": "certificate1"
                        }
                      ]
                    },
                    "provisioningState": "Succeeded",
                    "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myNewScopeMap",
                    "status": "enabled"
                  },
                  "type": "Microsoft.ContainerRegistry/registries/tokens"
                }
              },
              "201": {
                "body": {
                  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken",
                  "name": "myToken",
                  "properties": {
                    "creationDate": "2017-03-01T23:14:37.0707808Z",
                    "credentials": {
                      "certificates": [
                        {
                          "encodedPemCertificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUc3akNDQk5hZ0F3SUJBZ0lURmdBQlR3UVpyZGdmdmhxdzBnQUFBQUZQQkRBTkJna3Foa2lHOXcwQkFRc0YKQURDQml6RUxNQWtHQTFVRUJoTUNWVk14RXpBUkJnTlZCQWdUQ2xkaGMyaHBibWQwYjI0eEVEQU9CZ05WQkFjVApCMUpsWkcxdmJtUXhIakFjQmdOVkJBb1RGVTFwWTNKdmMyOW1kQ0JEYjNKd2IzSmhkR2x2YmpFVk1CTUdBMVVFCkN4TU1UV2xqY205emIyWjBJRWxVTVI0d0hBWURWUVFERXhWTmFXTnliM052Wm5RZ1NWUWdWRXhUSUVOQklEUXcKSGhjTk1UZ3dOREV5TWpJek1qUTRXaGNOTWpBd05ERXlNakl6TWpRNFdqQTVNVGN3TlFZRFZRUURFeTV6WlhKMgphV05sWTJ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G9pL2RpZDNSaXg2aXJMMjFJSGEwYjN6c1hzZHpHU0R2K3hqL2Q2S0l4Ckdrd2FhYmZvU1NoQnFqaFNlQ0VyZXFlb1RpYjljdGw0MGRVdUp3THl4bjhHS2N6K3AvMEJUOEIxU3lYK01OQ2wKY0pkMjVtMjhLajY2TGUxOEVyeFlJYXZJVGVGa3Y2eGZjdkEvcHladDdPaU41QTlGQk1IUmpQK1kyZ2tvdjMrcQpISFRUZG4xNnlRajduNit3YlFHNGVleXc0YisyQkRLcUxNVFU2ZmlSQ3ZPM2FPZVBLSFVNN3R4b1FidWl6Z3NzCkNiMzl3QnJOTEZsMkJLQ1RkSCtkSU9oZVJiSkZvbmlwOGRPOUVFZWdSSG9lQW54ZUlYTFBrdXMzTzEvZjRhNkIKWHQ3RG5BUm8xSzJmeEp3VXRaU2MvR3dFSjU5NzlnRXlEa3pDZEVsLzdpWE9QZXVjTXhlM2xVM2pweUtsNERUaApjSkJqQytqNGpLWTFrK1U4b040aGdqYnJISUx6Vnd2eU15OU5KS290U3BMSjQxeHdPOHlGangxalFTT3Bxc0N1ClFhUFUvTjhSZ0hxWjBGTkFzS3dNUmZ6WmdXanRCNzRzYUVEdk5jVmNuNFhCQnFNSG0ydHo2Uzk3d3kxZGt0cTgKSE5BPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==",
                          "name": "certificate1"
                        }
                      ]
                    },
                    "provisioningState": "Succeeded",
                    "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myNewScopeMap",
                    "status": "enabled"
                  },
                  "type": "Microsoft.ContainerRegistry/registries/tokens"
                }
              }
            }
          }
        },
        "x-ms-long-running-operation": true
      },
      "put": {
        "description": "Creates a token for a container registry with the specified parameters.",
        "operationId": "Tokens_Create",
        "parameters": [
          {
            "$ref": "#/parameters/ApiVersionParameter"
          },
          {
            "$ref": "#/parameters/SubscriptionIdParameter"
          },
          {
            "$ref": "#/parameters/ResourceGroupParameter"
          },
          {
            "$ref": "#/parameters/RegistryNameParameter"
          },
          {
            "$ref": "#/parameters/TokenNameParameter"
          },
          {
            "description": "The parameters for creating a token.",
            "in": "body",
            "name": "tokenCreateParameters",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/Token"
            }
          },
          "201": {
            "description": "The request was successful; the operation will complete asynchronously.",
            "schema": {
              "$ref": "#/definitions/Token"
            }
          }
        },
        "tags": [
          "Tokens"
        ],
        "x-ms-examples": {
          "TokenCreate": {
            "parameters": {
              "api-version": "2019-05-01-preview",
              "registryName": "myRegistry",
              "resourceGroupName": "myResourceGroup",
              "subscriptionId": "00000000-0000-0000-0000-000000000000",
              "tokenCreateParameters": {
                "properties": {
                  "credentials": {
                    "certificates": [
                      {
                        "encodedPemCertificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUc3akNDQk5hZ0F3SUJBZ0lURmdBQlR3UVpyZGdmdmhxdzBnQUFBQUZQQkRBTkJna3Foa2lHOXcwQkFRc0YKQURDQml6RUxNQWtHQTFVRUJoTUNWVk14RXpBUkJnTlZCQWdUQ2xkaGMyaHBibWQwYjI0eEVEQU9CZ05WQkFjVApCMUpsWkcxdmJtUXhIakFjQmdOVkJBb1RGVTFwWTNKdmMyOW1kQ0JEYjNKd2IzSmhkR2x2YmpFVk1CTUdBMVVFCkN4TU1UV2xqY205emIyWjBJRWxVTVI0d0hBWURWUVFERXhWTmFXTnliM052Wm5RZ1NWUWdWRXhUSUVOQklEUXcKSGhjTk1UZ3dOREV5TWpJek1qUTRXaGNOTWpBd05ERXlNakl6TWpRNFdqQTVNVGN3TlFZRFZRUURFeTV6WlhKMgphV05sWTJ4cFpXNTBZMlZ5ZEMxd1lYSjBibVZ5TG0xaGJtRm5aVzFsYm5RdVlYcDFjbVV1W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hYmZvU1NoQnFqaFNlQ0VyZXFlb1RpYjljdGw0MGRVdUp3THl4bjhHS2N6K3AvMEJUOEIxU3lYK01OQ2wKY0pkMjVtMjhLajY2TGUxOEVyeFlJYXZJVGVGa3Y2eGZjdkEvcHladDdPaU41QTlGQk1IUmpQK1kyZ2tvdjMrcQpISFRUZG4xNnlRajduNit3YlFHNGVleXc0YisyQkRLcUxNVFU2ZmlSQ3ZPM2FPZVBLSFVNN3R4b1FidWl6Z3NzCkNiMzl3QnJOTEZsMkJLQ1RkSCtkSU9oZVJiSkZvbmlwOGRPOUVFZWdSSG9lQW54ZUlYTFBrdXMzTzEvZjRhNkIKWHQ3RG5BUm8xSzJmeEp3VXRaU2MvR3dFSjU5NzlnRXlEa3pDZEVsLzdpWE9QZXVjTXhlM2xVM2pweUtsNERUaApjSkJqQytqNGpLWTFrK1U4b040aGdqYnJISUx6Vnd2eU15OU5KS290U3BMSjQxeHdPOHlGangxalFTT3Bxc0N1ClFhUFUvTjhSZ0hxWjBGTkFzS3dNUmZ6WmdXanRCNzRzYUVEdk5jVmNuNFhCQnFNSG0ydHo2Uzk3d3kxZGt0cTgKSE5BPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==",
                        "name": "certificate1"
                      }
                    ]
                  },
                  "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                  "status": "disabled"
                }
              },
              "tokenName": "myToken"
            },
            "responses": {
              "200": {
                "body": {
                  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken",
                  "name": "myToken",
                  "properties": {
                    "creationDate": "2017-03-01T23:14:37.0707808Z",
                    "credentials": {
                      "certificates": [
                        {
                          "expiry": "2020-12-04T15:32:48.0707808Z",
                          "name": "certificate1",
                          "thumbprint": "feeb79a888bf1415f8e17c4965a2a5bb5c8a2ff7"
                        }
                      ]
                    },
                    "provisioningState": "Succeeded",
                    "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                    "status": "disabled"
                  },
                  "type": "Microsoft.ContainerRegistry/registries/tokens"
                }
              },
              "201": {
                "body": {
                  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken",
                  "name": "myToken",
                  "properties": {
                    "creationDate": "2017-03-01T23:14:37.0707808Z",
                    "credentials": {
                      "certificates": [
                        {
                          "expiry": "2020-12-04T15:32:48.0707808Z",
                          "name": "certificate1",
                          "thumbprint": "feeb79a888bf1415f8e17c4965a2a5bb5c8a2ff7"
                        }
                      ]
                    },
                    "provisioningState": "Succeeded",
                    "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
                    "status": "disabled"
                  },
                  "type": "Microsoft.ContainerRegistry/registries/tokens"
                }
              }
            }
          }
        },
        "x-ms-long-running-operation": true
      }
    }
  },
  "definitions": {
    "GenerateCredentialsParameters": {
      "description": "The parameters used to generate credentials for a specified token or user of a container registry.",
      "properties": {
        "expiry": {
          "description": "The expiry date of the generated credentials after which the credentials become invalid.",
          "format": "date-time",
          "type": "string"
        },
        "name": {
          "description": "Specifies name of the password which should be regenerated if any -- password1 or password2.",
          "enum": [
            "password1",
            "password2"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "TokenPasswordName"
          }
        },
        "tokenId": {
          "description": "The resource ID of the token for which credentials have to be generated.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GenerateCredentialsResult": {
      "description": "The response from the GenerateCredentials operation.",
      "properties": {
        "passwords": {
          "description": "The list of passwords for a container registry.",
          "items": {
            "$ref": "#/definitions/TokenPassword"
          },
          "type": "array"
        },
        "username": {
          "description": "The username for a container registry.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ProxyResource": {
      "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.",
      "properties": {
        "id": {
          "description": "The resource ID.",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "The name of the resource.",
          "readOnly": true,
          "type": "string"
        },
        "type": {
          "description": "The type of the resource.",
          "readOnly": true,
          "type": "string"
        }
      },
      "x-ms-azure-resource": true
    },
    "ScopeMap": {
      "allOf": [
        {
          "$ref": "#/definitions/ProxyResource"
        }
      ],
      "description": "An object that represents a scope map for a container registry.",
      "properties": {
        "properties": {
          "$ref": "#/definitions/ScopeMapProperties",
          "description": "The properties of the scope map.",
          "x-ms-client-flatten": true
        }
      },
      "type": "object"
    },
    "ScopeMapListResult": {
      "description": "The result of a request to list scope maps for a container registry.",
      "properties": {
        "nextLink": {
          "description": "The URI that can be used to request the next list of scope maps.",
          "type": "string"
        },
        "value": {
          "description": "The list of scope maps. Since this list may be incomplete, the nextLink field should be used to request the next list of scope maps.",
          "items": {
            "$ref": "#/definitions/ScopeMap"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "ScopeMapProperties": {
      "description": "The properties of a scope map.",
      "properties": {
        "actions": {
          "description": "The list of scoped permissions for registry artifacts.\r\nE.g. repositories/repository-name/content/read,\r\nrepositories/repository-name/metadata/write",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "creationDate": {
          "description": "The creation date of scope map.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "description": {
          "description": "The user friendly description of the scope map.",
          "type": "string"
        },
        "provisioningState": {
          "description": "Provisioning state of the resource.",
          "enum": [
            "Creating",
            "Updating",
            "Deleting",
            "Succeeded",
            "Failed",
            "Canceled"
          ],
          "readOnly": true,
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "ProvisioningState"
          }
        },
        "type": {
          "description": "The type of the scope map. E.g. BuildIn scope map.",
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "actions"
      ],
      "type": "object"
    },
    "ScopeMapPropertiesUpdateParameters": {
      "description": "The update parameters for scope map properties.",
      "properties": {
        "actions": {
          "description": "The list of scope permissions for registry artifacts.\r\nE.g. repositories/repository-name/pull, \r\nrepositories/repository-name/delete",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "description": {
          "description": "The user friendly description of the scope map.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ScopeMapUpdateParameters": {
      "description": "The properties for updating the scope map.",
      "properties": {
        "properties": {
          "$ref": "#/definitions/ScopeMapPropertiesUpdateParameters",
          "description": "The update parameters for scope map properties.",
          "x-ms-client-flatten": true
        }
      },
      "type": "object"
    },
    "Token": {
      "allOf": [
        {
          "$ref": "#/definitions/ProxyResource"
        }
      ],
      "description": "An object that represents a token for a container registry.",
      "properties": {
        "properties": {
          "$ref": "#/definitions/TokenProperties",
          "description": "The properties of the token.",
          "x-ms-client-flatten": true
        }
      },
      "type": "object"
    },
    "TokenCertificate": {
      "description": "The properties of a certificate used for authenticating a token.",
      "properties": {
        "encodedPemCertificate": {
          "description": "Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.",
          "type": "string"
        },
        "expiry": {
          "description": "The expiry datetime of the certificate.",
          "format": "date-time",
          "type": "string"
        },
        "name": {
          "enum": [
            "certificate1",
            "certificate2"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "TokenCertificateName"
          }
        },
        "thumbprint": {
          "description": "The thumbprint of the certificate.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "TokenCredentialsProperties": {
      "description": "The properties of the credentials that can be used for authenticating the token.",
      "properties": {
        "certificates": {
          "items": {
            "$ref": "#/definitions/TokenCertificate"
          },
          "type": "array"
        },
        "passwords": {
          "items": {
            "$ref": "#/definitions/TokenPassword"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "TokenListResult": {
      "description": "The result of a request to list tokens for a container registry.",
      "properties": {
        "nextLink": {
          "description": "The URI that can be used to request the next list of tokens.",
          "type": "string"
        },
        "value": {
          "description": "The list of tokens. Since this list may be incomplete, the nextLink field should be used to request the next list of tokens.",
          "items": {
            "$ref": "#/definitions/Token"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "TokenPassword": {
      "description": "The password that will be used for authenticating the token of a container registry.",
      "properties": {
        "creationTime": {
          "description": "The creation datetime of the password.",
          "format": "date-time",
          "type": "string"
        },
        "expiry": {
          "description": "The expiry datetime of the password.",
          "format": "date-time",
          "type": "string"
        },
        "name": {
          "description": "The password name \"password1\" or \"password2\"",
          "enum": [
            "password1",
            "password2"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "TokenPasswordName"
          }
        },
        "value": {
          "description": "The password value.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "TokenProperties": {
      "description": "The properties of a token.",
      "properties": {
        "creationDate": {
          "description": "The creation date of scope map.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "credentials": {
          "$ref": "#/definitions/TokenCredentialsProperties",
          "description": "The credentials that can be used for authenticating the token."
        },
        "objectId": {
          "description": "The user/group/application object ID for which the token has to be created.",
          "type": "string"
        },
        "provisioningState": {
          "description": "Provisioning state of the resource.",
          "enum": [
            "Creating",
            "Updating",
            "Deleting",
            "Succeeded",
            "Failed",
            "Canceled"
          ],
          "readOnly": true,
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "ProvisioningState"
          }
        },
        "scopeMapId": {
          "description": "The resource ID of the scope map to which the token will be associated with.",
          "type": "string"
        },
        "status": {
          "description": "The status of the token example enabled or disabled.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "TokenStatus"
          }
        }
      },
      "type": "object"
    },
    "TokenUpdateParameters": {
      "description": "The parameters for updating a token.",
      "properties": {
        "properties": {
          "$ref": "#/definitions/TokenUpdateProperties",
          "description": "The properties of the token update parameters.",
          "x-ms-client-flatten": true
        }
      },
      "type": "object"
    },
    "TokenUpdateProperties": {
      "description": "The parameters for updating token properties.",
      "properties": {
        "credentials": {
          "$ref": "#/definitions/TokenCredentialsProperties",
          "description": "The credentials that can be used for authenticating the token."
        },
        "scopeMapId": {
          "description": "The resource ID of the scope map to which the token will be associated with.",
          "type": "string"
        },
        "status": {
          "description": "The status of the token example enabled or disabled.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "TokenStatus"
          }
        }
      },
      "type": "object"
    }
  }
}