Ayush Shah d9551ed337
Fix #15 (#16)
* Fix #15

* Pylint Relative Imports handled

* Final Newline lint error resolved

* Pylint Unused Imports handled

* Pylint command modified

* AllowDenyPattern error resolved

* EntityReference changes for common to entityReference

* vscode settings removed

* Resolved reoccuring function

* pylintrc file implemented

* Fix pylintrc file

* Pylint Errors resolved + import errors resolved and includepattern included

Co-authored-by: Suresh Srinivas <srini3005@gmail.com>
2021-08-07 11:00:35 +05:30

45 lines
1.7 KiB
Python

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# generated by datamodel-codegen:
# filename: schema/api/teams/createTeam.json
# timestamp: 2021-07-31T17:12:10+00:00
from __future__ import annotations
from typing import List, Optional
from pydantic import BaseModel, Field
from metadata.generated.schema.entity.teams import team
from metadata.generated.schema.type import basic, profile
class TeamEntity(BaseModel):
name: team.TeamName
displayName: Optional[str] = Field(
None,
description="Optional name used for display purposes. Example 'Marketing Team'",
)
description: Optional[str] = Field(
None, description='Optional description of the team'
)
profile: Optional[
profile.TypeUsedToCaptureProfileOfAUserTeamOrAnOrganization
] = Field(None, description='Optional team profile information')
users: Optional[List[basic.Uuid]] = Field(
None, description='Optional IDs of users that are part of the team'
)