...

Text file src/github.com/go-openapi/spec/fixtures/azure/applicationSecurityGroup.json

Documentation: github.com/go-openapi/spec/fixtures/azure

     1{
     2  "swagger": "2.0",
     3  "info": {
     4    "title": "NetworkManagementClient",
     5    "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.",
     6    "version": "2020-04-01"
     7  },
     8  "host": "management.azure.com",
     9  "schemes": [
    10    "https"
    11  ],
    12  "consumes": [
    13    "application/json"
    14  ],
    15  "produces": [
    16    "application/json"
    17  ],
    18  "security": [
    19    {
    20      "azure_auth": [
    21        "user_impersonation"
    22      ]
    23    }
    24  ],
    25  "securityDefinitions": {
    26    "azure_auth": {
    27      "type": "oauth2",
    28      "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
    29      "flow": "implicit",
    30      "description": "Azure Active Directory OAuth2 Flow.",
    31      "scopes": {
    32        "user_impersonation": "impersonate your user account"
    33      }
    34    }
    35  },
    36  "paths": {
    37    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}": {
    38      "delete": {
    39        "tags": [
    40          "ApplicationSecurityGroups"
    41        ],
    42        "operationId": "ApplicationSecurityGroups_Delete",
    43        "description": "Deletes the specified application security group.",
    44        "parameters": [
    45          {
    46            "name": "resourceGroupName",
    47            "in": "path",
    48            "required": true,
    49            "type": "string",
    50            "description": "The name of the resource group."
    51          },
    52          {
    53            "name": "applicationSecurityGroupName",
    54            "in": "path",
    55            "required": true,
    56            "type": "string",
    57            "description": "The name of the application security group."
    58          },
    59          {
    60            "$ref": "./network.json#/parameters/ApiVersionParameter"
    61          },
    62          {
    63            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
    64          }
    65        ],
    66        "responses": {
    67          "204": {
    68            "description": "Request successful. Resource does not exist."
    69          },
    70          "202": {
    71            "description": "Accepted and the operation will complete asynchronously."
    72          },
    73          "200": {
    74            "description": "Delete successful."
    75          },
    76          "default": {
    77            "description": "Error response describing why the operation failed.",
    78            "schema": {
    79              "$ref": "./network.json#/definitions/CloudError"
    80            }
    81          }
    82        },
    83        "x-ms-long-running-operation": true,
    84        "x-ms-long-running-operation-options": {
    85          "final-state-via": "location"
    86        },
    87        "x-ms-examples": {
    88          "Delete application security group": {
    89            "$ref": "./examples/ApplicationSecurityGroupDelete.json"
    90          }
    91        }
    92      },
    93      "get": {
    94        "tags": [
    95          "ApplicationSecurityGroups"
    96        ],
    97        "operationId": "ApplicationSecurityGroups_Get",
    98        "description": "Gets information about the specified application security group.",
    99        "parameters": [
   100          {
   101            "name": "resourceGroupName",
   102            "in": "path",
   103            "required": true,
   104            "type": "string",
   105            "description": "The name of the resource group."
   106          },
   107          {
   108            "name": "applicationSecurityGroupName",
   109            "in": "path",
   110            "required": true,
   111            "type": "string",
   112            "description": "The name of the application security group."
   113          },
   114          {
   115            "$ref": "./network.json#/parameters/ApiVersionParameter"
   116          },
   117          {
   118            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   119          }
   120        ],
   121        "responses": {
   122          "200": {
   123            "description": "Request successful. The operation returns the specified application security group resource.",
   124            "schema": {
   125              "$ref": "#/definitions/ApplicationSecurityGroup"
   126            }
   127          },
   128          "default": {
   129            "description": "Error response describing why the operation failed.",
   130            "schema": {
   131              "$ref": "./network.json#/definitions/CloudError"
   132            }
   133          }
   134        },
   135        "x-ms-examples": {
   136          "Get application security group": {
   137            "$ref": "./examples/ApplicationSecurityGroupGet.json"
   138          }
   139        }
   140      },
   141      "put": {
   142        "tags": [
   143          "ApplicationSecurityGroups"
   144        ],
   145        "operationId": "ApplicationSecurityGroups_CreateOrUpdate",
   146        "description": "Creates or updates an application security group.",
   147        "parameters": [
   148          {
   149            "name": "resourceGroupName",
   150            "in": "path",
   151            "required": true,
   152            "type": "string",
   153            "description": "The name of the resource group."
   154          },
   155          {
   156            "name": "applicationSecurityGroupName",
   157            "in": "path",
   158            "required": true,
   159            "type": "string",
   160            "description": "The name of the application security group."
   161          },
   162          {
   163            "name": "parameters",
   164            "in": "body",
   165            "required": true,
   166            "schema": {
   167              "$ref": "#/definitions/ApplicationSecurityGroup"
   168            },
   169            "description": "Parameters supplied to the create or update ApplicationSecurityGroup operation."
   170          },
   171          {
   172            "$ref": "./network.json#/parameters/ApiVersionParameter"
   173          },
   174          {
   175            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   176          }
   177        ],
   178        "responses": {
   179          "201": {
   180            "description": "Create successful. The operation returns the resulting application security group resource.",
   181            "schema": {
   182              "$ref": "#/definitions/ApplicationSecurityGroup"
   183            }
   184          },
   185          "200": {
   186            "description": "Update successful. The operation returns the resulting application security group resource.",
   187            "schema": {
   188              "$ref": "#/definitions/ApplicationSecurityGroup"
   189            }
   190          },
   191          "default": {
   192            "description": "Error response describing why the operation failed.",
   193            "schema": {
   194              "$ref": "./network.json#/definitions/CloudError"
   195            }
   196          }
   197        },
   198        "x-ms-long-running-operation": true,
   199        "x-ms-long-running-operation-options": {
   200          "final-state-via": "azure-async-operation"
   201        },
   202        "x-ms-examples": {
   203          "Create application security group": {
   204            "$ref": "./examples/ApplicationSecurityGroupCreate.json"
   205          }
   206        }
   207      },
   208      "patch": {
   209        "tags": [
   210          "applicationSecurityGroups"
   211        ],
   212        "operationId": "ApplicationSecurityGroups_UpdateTags",
   213        "description": "Updates an application security group's tags.",
   214        "parameters": [
   215          {
   216            "name": "resourceGroupName",
   217            "in": "path",
   218            "required": true,
   219            "type": "string",
   220            "description": "The name of the resource group."
   221          },
   222          {
   223            "name": "applicationSecurityGroupName",
   224            "in": "path",
   225            "required": true,
   226            "type": "string",
   227            "description": "The name of the application security group."
   228          },
   229          {
   230            "name": "parameters",
   231            "in": "body",
   232            "required": true,
   233            "schema": {
   234              "$ref": "./network.json#/definitions/TagsObject"
   235            },
   236            "description": "Parameters supplied to update application security group tags."
   237          },
   238          {
   239            "$ref": "./network.json#/parameters/ApiVersionParameter"
   240          },
   241          {
   242            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   243          }
   244        ],
   245        "responses": {
   246          "200": {
   247            "description": "Update successful. The operation returns the resulting ApplicationSecurityGroup resource.",
   248            "schema": {
   249              "$ref": "#/definitions/ApplicationSecurityGroup"
   250            }
   251          },
   252          "default": {
   253            "description": "Error response describing why the operation failed.",
   254            "schema": {
   255              "$ref": "./network.json#/definitions/CloudError"
   256            }
   257          }
   258        },
   259        "x-ms-examples": {
   260          "Update application security group tags": {
   261            "$ref": "./examples/ApplicationSecurityGroupUpdateTags.json"
   262          }
   263        }
   264      }
   265    },
   266    "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups": {
   267      "get": {
   268        "tags": [
   269          "ApplicationSecurityGroups"
   270        ],
   271        "operationId": "ApplicationSecurityGroups_ListAll",
   272        "description": "Gets all application security groups in a subscription.",
   273        "parameters": [
   274          {
   275            "$ref": "./network.json#/parameters/ApiVersionParameter"
   276          },
   277          {
   278            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   279          }
   280        ],
   281        "responses": {
   282          "200": {
   283            "description": "Request successful. The operation returns a list of application security group resources.",
   284            "schema": {
   285              "$ref": "#/definitions/ApplicationSecurityGroupListResult"
   286            }
   287          },
   288          "default": {
   289            "description": "Error response describing why the operation failed.",
   290            "schema": {
   291              "$ref": "./network.json#/definitions/CloudError"
   292            }
   293          }
   294        },
   295        "x-ms-pageable": {
   296          "nextLinkName": "nextLink"
   297        },
   298        "x-ms-examples": {
   299          "List all application security groups": {
   300            "$ref": "./examples/ApplicationSecurityGroupListAll.json"
   301          }
   302        }
   303      }
   304    },
   305    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups": {
   306      "get": {
   307        "tags": [
   308          "ApplicationSecurityGroups"
   309        ],
   310        "operationId": "ApplicationSecurityGroups_List",
   311        "description": "Gets all the application security groups in a resource group.",
   312        "parameters": [
   313          {
   314            "name": "resourceGroupName",
   315            "in": "path",
   316            "required": true,
   317            "type": "string",
   318            "description": "The name of the resource group."
   319          },
   320          {
   321            "$ref": "./network.json#/parameters/ApiVersionParameter"
   322          },
   323          {
   324            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   325          }
   326        ],
   327        "responses": {
   328          "200": {
   329            "description": "Request successful. The operation returns a list of application security group resources.",
   330            "schema": {
   331              "$ref": "#/definitions/ApplicationSecurityGroupListResult"
   332            }
   333          },
   334          "default": {
   335            "description": "Error response describing why the operation failed.",
   336            "schema": {
   337              "$ref": "./network.json#/definitions/CloudError"
   338            }
   339          }
   340        },
   341        "x-ms-examples": {
   342          "List load balancers in resource group": {
   343            "$ref": "./examples/ApplicationSecurityGroupList.json"
   344          }
   345        },
   346        "x-ms-pageable": {
   347          "nextLinkName": "nextLink"
   348        }
   349      }
   350    }
   351  },
   352  "definitions": {
   353    "ApplicationSecurityGroup": {
   354      "properties": {
   355        "properties": {
   356          "x-ms-client-flatten": true,
   357          "$ref": "#/definitions/ApplicationSecurityGroupPropertiesFormat",
   358          "description": "Properties of the application security group."
   359        },
   360        "etag": {
   361          "readOnly": true,
   362          "type": "string",
   363          "description": "A unique read-only string that changes whenever the resource is updated."
   364        }
   365      },
   366      "allOf": [
   367        {
   368          "$ref": "./network.json#/definitions/Resource"
   369        }
   370      ],
   371      "description": "An application security group in a resource group."
   372    },
   373    "ApplicationSecurityGroupPropertiesFormat": {
   374      "properties": {
   375        "resourceGuid": {
   376          "readOnly": true,
   377          "type": "string",
   378          "description": "The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups."
   379        },
   380        "provisioningState": {
   381          "readOnly": true,
   382          "$ref": "./network.json#/definitions/ProvisioningState",
   383          "description": "The provisioning state of the application security group resource."
   384        }
   385      },
   386      "description": "Application security group properties."
   387    },
   388    "ApplicationSecurityGroupListResult": {
   389      "properties": {
   390        "value": {
   391          "type": "array",
   392          "items": {
   393            "$ref": "#/definitions/ApplicationSecurityGroup"
   394          },
   395          "description": "A list of application security groups."
   396        },
   397        "nextLink": {
   398          "readOnly": true,
   399          "type": "string",
   400          "description": "The URL to get the next set of results."
   401        }
   402      },
   403      "description": "A list of application security groups."
   404    }
   405  }
   406}

View as plain text