swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector ArtifactSources API schemes: - https tags: - name: ArtifactSources paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources : get: tags: - ArtifactSources description: List artifact sources in a given lab. operationId: microsoftAzureArtifactsourcesList parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: $expand in: query description: 'Specify the $expand query. Example: ''properties($select=displayName)''' type: string - name: $filter in: query description: 'The filter to apply to the operation. Example: ''$filter=contains(name,''myName'')' type: string - name: $top in: query description: 'The maximum number of resources to return from the operation. Example: ''$top=10''' type: integer format: int32 - name: $orderby in: query description: 'The ordering expression for the results, using OData notation. Example: ''$orderby=name desc''' type: string - $ref: '#/parameters/api-version' responses: '200': description: OK schema: $ref: '#/definitions/ArtifactSourceList' default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-pageable: nextLinkName: nextLink x-ms-odata: '#/definitions/ArtifactSource' x-ms-examples: ArtifactSources_List: $ref: ./examples/ArtifactSources_List.json summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Artifactsources ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name} : get: tags: - ArtifactSources description: Get artifact source. operationId: microsoftAzureArtifactsourcesGet parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: name in: path description: The name of the artifact source. required: true type: string - name: $expand in: query description: 'Specify the $expand query. Example: ''properties($select=displayName)''' type: string - $ref: '#/parameters/api-version' responses: '200': description: OK schema: $ref: '#/definitions/ArtifactSource' default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ArtifactSources_Get: $ref: ./examples/ArtifactSources_Get.json summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Artifactsources Name put: tags: - ArtifactSources description: Create or replace an existing artifact source. operationId: microsoftAzureArtifactsourcesCreateorupdate parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: name in: path description: The name of the artifact source. required: true type: string - name: artifactSource in: body description: Properties of an artifact source. required: true schema: $ref: '#/definitions/ArtifactSource' - $ref: '#/parameters/api-version' responses: '200': description: OK schema: $ref: '#/definitions/ArtifactSource' '201': description: Created schema: $ref: '#/definitions/ArtifactSource' default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ArtifactSources_CreateOrUpdate: $ref: ./examples/ArtifactSources_CreateOrUpdate.json summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Artifactsources Name delete: tags: - ArtifactSources description: Delete artifact source. operationId: microsoftAzureArtifactsourcesDelete parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: name in: path description: The name of the artifact source. required: true type: string - $ref: '#/parameters/api-version' responses: '200': description: OK '204': description: No Content default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ArtifactSources_Delete: $ref: ./examples/ArtifactSources_Delete.json summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Artifactsources Name patch: tags: - ArtifactSources description: Allows modifying tags of artifact sources. All other properties will be ignored. operationId: microsoftAzureArtifactsourcesUpdate parameters: - $ref: '#/parameters/subscriptionId' - $ref: '#/parameters/resourceGroupName' - name: labName in: path description: The name of the lab. required: true type: string - name: name in: path description: The name of the artifact source. required: true type: string - name: artifactSource in: body description: Properties of an artifact source. required: true schema: $ref: '#/definitions/ArtifactSourceFragment' - $ref: '#/parameters/api-version' responses: '200': description: OK schema: $ref: '#/definitions/ArtifactSource' default: description: BadRequest schema: $ref: '#/definitions/CloudError' x-ms-examples: ArtifactSources_Update: $ref: ./examples/ArtifactSources_Update.json summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Devtestlab Labs Labname Artifactsources Name definitions: ArtifactSourceProperties: description: Properties of an artifact source. type: object properties: displayName: description: The artifact source's display name. type: string uri: description: The artifact source's URI. type: string sourceType: description: The artifact source's type. enum: - VsoGit - GitHub - StorageAccount type: string x-ms-enum: name: SourceControlType modelAsString: true folderPath: description: The folder containing artifacts. type: string armTemplateFolderPath: description: The folder containing Azure Resource Manager templates. type: string branchRef: description: The artifact source's branch reference. type: string securityToken: description: The security token to authenticate to the artifact source. type: string status: description: 'Indicates if the artifact source is enabled (values: Enabled, Disabled).' enum: - Enabled - Disabled type: string x-ms-enum: name: EnableStatus modelAsString: true createdDate: format: date-time description: The artifact source's creation date. type: string readOnly: true provisioningState: description: The provisioning status of the resource. type: string readOnly: true uniqueIdentifier: description: The unique immutable identifier of a resource (Guid). type: string readOnly: true Resource: description: An Azure resource. type: object properties: id: description: The identifier of the resource. type: string readOnly: true name: description: The name of the resource. type: string readOnly: true type: description: The type of the resource. type: string readOnly: true location: description: The location of the resource. type: string tags: description: The tags of the resource. type: object additionalProperties: type: string x-ms-azure-resource: true CloudError: description: Error from a REST request. type: object properties: error: $ref: '#/definitions/CloudErrorBody' description: The cloud error that occurred x-ms-external: true ArtifactSourceFragment: description: Properties of an artifact source. type: object allOf: - $ref: '#/definitions/UpdateResource' properties: {} ArtifactSource: description: Properties of an artifact source. required: - properties type: object allOf: - $ref: '#/definitions/Resource' properties: properties: $ref: '#/definitions/ArtifactSourceProperties' description: The properties of the resource. x-ms-client-flatten: true CloudErrorBody: description: Body of an error from a REST request. type: object properties: code: description: The error code. type: string message: description: The error message. type: string target: description: The error target. type: string details: description: Inner errors. type: array items: $ref: '#/definitions/CloudErrorBody' x-ms-external: true UpdateResource: description: Represents an update resource type: object properties: tags: description: The tags of the resource. type: object additionalProperties: type: string ArtifactSourceList: description: The response of a list operation. type: object properties: value: description: Results of the list operation. type: array items: $ref: '#/definitions/ArtifactSource' nextLink: description: Link for next set of results. type: string parameters: resourceGroupName: name: resourceGroupName in: path description: The name of the resource group. required: true type: string x-ms-parameter-location: method subscriptionId: name: subscriptionId in: path description: The subscription ID. required: true type: string api-version: name: api-version in: query description: Client API version. required: true type: string default: '2018-09-15' x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'