Skip to content

Commit

Permalink
Minor: Update Catalog API (#27)
Browse files Browse the repository at this point in the history
* Update Get /catalog/v1/entity/type/{typeName}/name/{qualifiedName} with new query param

* fix go.mod
  • Loading branch information
xiaoyali97 authored Oct 18, 2022
1 parent 2f1e494 commit 91a5ad8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
9 changes: 9 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2171,6 +2171,15 @@ paths:
default: false
type: boolean
style: form
- description: If not null, include internal attributes that start with this
prefix
explode: true
in: query
name: includeInternalPrefix
required: false
schema:
type: string
style: simple
responses:
"200":
content:
Expand Down
6 changes: 6 additions & 0 deletions api_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ type DefaultApi interface {
* @param optional nil or *GetByUniqueAttributesOpts - Optional Parameters:
* @param "MinExtInfo" (optional.Bool) - Whether to only populate header and schema attributes
* @param "IgnoreRelationships" (optional.Bool) - Whether to ignore relationships
* @param "IncludeInternalPrefix" (optional.String) - If not null, include internal attributes that start with this prefix
* @return AtlasEntityWithExtInfo
*/
GetByUniqueAttributes(ctx _context.Context, typeName string, qualifiedName string, localVarOptionals *GetByUniqueAttributesOpts) (AtlasEntityWithExtInfo, *_nethttp.Response, error)
Expand Down Expand Up @@ -2462,6 +2463,7 @@ func (a *DefaultApiService) GetBusinessMetadataDefByName(ctx _context.Context, b
type GetByUniqueAttributesOpts struct {
MinExtInfo optional.Bool
IgnoreRelationships optional.Bool
IncludeInternalPrefix optional.String
}

/*
Expand All @@ -2475,6 +2477,7 @@ type GetByUniqueAttributesOpts struct {
* @param optional nil or *GetByUniqueAttributesOpts - Optional Parameters:
* @param "MinExtInfo" (optional.Bool) - Whether to only populate header and schema attributes
* @param "IgnoreRelationships" (optional.Bool) - Whether to ignore relationships
* @param "IncludeInternalPrefix" (optional.String) - If not null, include internal attributes that start with this prefix
* @return AtlasEntityWithExtInfo
*/
func (a *DefaultApiService) GetByUniqueAttributes(ctx _context.Context, typeName string, qualifiedName string, localVarOptionals *GetByUniqueAttributesOpts) (AtlasEntityWithExtInfo, *_nethttp.Response, error) {
Expand Down Expand Up @@ -2503,6 +2506,9 @@ func (a *DefaultApiService) GetByUniqueAttributes(ctx _context.Context, typeName
if localVarOptionals != nil && localVarOptionals.IgnoreRelationships.IsSet() {
localVarQueryParams.Add("ignoreRelationships", parameterToString(localVarOptionals.IgnoreRelationships.Value(), ""))
}
if localVarOptionals != nil && localVarOptionals.IncludeInternalPrefix.IsSet() {
localVarQueryParams.Add("includeInternalPrefix", parameterToString(localVarOptionals.IncludeInternalPrefix.Value(), ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}

Expand Down
1 change: 1 addition & 0 deletions docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ Name | Type | Description | Notes

**minExtInfo** | **optional.Bool**| Whether to only populate header and schema attributes | [default to false]
**ignoreRelationships** | **optional.Bool**| Whether to ignore relationships | [default to false]
**includeInternalPrefix** | **optional.String**| If not null, include internal attributes that start with this prefix |

### Return type

Expand Down
8 changes: 1 addition & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,5 @@ go 1.17
require (
github.com/antihax/optional v1.0.0
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
)

require (
github.com/golang/protobuf v1.2.0 // indirect
golang.org/x/net v0.0.0-20190620200207-3b0461eec859 // indirect
golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect
google.golang.org/appengine v1.4.0 // indirect

)
10 changes: 4 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/antihax/optional v1.0.0 h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg=
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
github.com/aws/aws-sdk-go v1.26.3 h1:szQdfJcUBAhQT0zZEx4sxoDuWb7iScoucxCiVxDmaBk=
github.com/aws/aws-sdk-go v1.26.3/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=

0 comments on commit 91a5ad8

Please sign in to comment.