Skip to content

Commit 91a5ad8

Browse files
authored
Minor: Update Catalog API (#27)
* Update Get /catalog/v1/entity/type/{typeName}/name/{qualifiedName} with new query param * fix go.mod
1 parent 2f1e494 commit 91a5ad8

File tree

5 files changed

+21
-13
lines changed

5 files changed

+21
-13
lines changed

api/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,6 +2171,15 @@ paths:
21712171
default: false
21722172
type: boolean
21732173
style: form
2174+
- description: If not null, include internal attributes that start with this
2175+
prefix
2176+
explode: true
2177+
in: query
2178+
name: includeInternalPrefix
2179+
required: false
2180+
schema:
2181+
type: string
2182+
style: simple
21742183
responses:
21752184
"200":
21762185
content:

api_default.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ type DefaultApi interface {
262262
* @param optional nil or *GetByUniqueAttributesOpts - Optional Parameters:
263263
* @param "MinExtInfo" (optional.Bool) - Whether to only populate header and schema attributes
264264
* @param "IgnoreRelationships" (optional.Bool) - Whether to ignore relationships
265+
* @param "IncludeInternalPrefix" (optional.String) - If not null, include internal attributes that start with this prefix
265266
* @return AtlasEntityWithExtInfo
266267
*/
267268
GetByUniqueAttributes(ctx _context.Context, typeName string, qualifiedName string, localVarOptionals *GetByUniqueAttributesOpts) (AtlasEntityWithExtInfo, *_nethttp.Response, error)
@@ -2462,6 +2463,7 @@ func (a *DefaultApiService) GetBusinessMetadataDefByName(ctx _context.Context, b
24622463
type GetByUniqueAttributesOpts struct {
24632464
MinExtInfo optional.Bool
24642465
IgnoreRelationships optional.Bool
2466+
IncludeInternalPrefix optional.String
24652467
}
24662468

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

docs/DefaultApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,7 @@ Name | Type | Description | Notes
888888

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

892893
### Return type
893894

go.mod

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,5 @@ go 1.17
55
require (
66
github.com/antihax/optional v1.0.0
77
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
8-
)
9-
10-
require (
11-
github.com/golang/protobuf v1.2.0 // indirect
12-
golang.org/x/net v0.0.0-20190620200207-3b0461eec859 // indirect
13-
golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect
14-
google.golang.org/appengine v1.4.0 // indirect
8+
159
)

go.sum

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

0 commit comments

Comments
 (0)