Skip to content

Commit 8d64e63

Browse files
committed
fix: Fix Metadata Taxonomy GET options path (box/box-openapi#573)
1 parent 61235da commit 8d64e63

File tree

4 files changed

+23
-78
lines changed

4 files changed

+23
-78
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "c370934", "specHash": "a4bdc72", "version": "10.3.0" }
1+
{ "engineHash": "c370934", "specHash": "f3c7c76", "version": "10.3.0" }

docs/metadatataxonomies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ See the endpoint docs at
492492

493493
### Arguments
494494

495-
- scope `GetMetadataTemplateFieldOptionsScope`
496-
- The scope of the metadata template. Example: "global"
495+
- namespace `String`
496+
- The namespace of the metadata taxonomy. Example: "enterprise_123456"
497497
- templateKey `String`
498498
- The name of the metadata template. Example: "properties"
499499
- fieldKey `String`

src/main/java/com/box/sdkgen/managers/metadatataxonomies/GetMetadataTemplateFieldOptionsScope.java

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/main/java/com/box/sdkgen/managers/metadatataxonomies/MetadataTaxonomiesManager.java

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -837,14 +837,14 @@ public void deleteMetadataTaxonomyNode(
837837
* unless a `query` parameter is passed. With a `query` parameter specified, results are sorted in
838838
* order of relevance.
839839
*
840-
* @param scope The scope of the metadata template. Example: "global"
840+
* @param namespace The namespace of the metadata taxonomy. Example: "enterprise_123456"
841841
* @param templateKey The name of the metadata template. Example: "properties"
842842
* @param fieldKey The key of the metadata taxonomy field in the template. Example: "geography"
843843
*/
844844
public MetadataTaxonomyNodes getMetadataTemplateFieldOptions(
845-
GetMetadataTemplateFieldOptionsScope scope, String templateKey, String fieldKey) {
845+
String namespace, String templateKey, String fieldKey) {
846846
return getMetadataTemplateFieldOptions(
847-
scope,
847+
namespace,
848848
templateKey,
849849
fieldKey,
850850
new GetMetadataTemplateFieldOptionsQueryParams(),
@@ -857,18 +857,22 @@ public MetadataTaxonomyNodes getMetadataTemplateFieldOptions(
857857
* unless a `query` parameter is passed. With a `query` parameter specified, results are sorted in
858858
* order of relevance.
859859
*
860-
* @param scope The scope of the metadata template. Example: "global"
860+
* @param namespace The namespace of the metadata taxonomy. Example: "enterprise_123456"
861861
* @param templateKey The name of the metadata template. Example: "properties"
862862
* @param fieldKey The key of the metadata taxonomy field in the template. Example: "geography"
863863
* @param queryParams Query parameters of getMetadataTemplateFieldOptions method
864864
*/
865865
public MetadataTaxonomyNodes getMetadataTemplateFieldOptions(
866-
GetMetadataTemplateFieldOptionsScope scope,
866+
String namespace,
867867
String templateKey,
868868
String fieldKey,
869869
GetMetadataTemplateFieldOptionsQueryParams queryParams) {
870870
return getMetadataTemplateFieldOptions(
871-
scope, templateKey, fieldKey, queryParams, new GetMetadataTemplateFieldOptionsHeaders());
871+
namespace,
872+
templateKey,
873+
fieldKey,
874+
queryParams,
875+
new GetMetadataTemplateFieldOptionsHeaders());
872876
}
873877

874878
/**
@@ -877,18 +881,22 @@ public MetadataTaxonomyNodes getMetadataTemplateFieldOptions(
877881
* unless a `query` parameter is passed. With a `query` parameter specified, results are sorted in
878882
* order of relevance.
879883
*
880-
* @param scope The scope of the metadata template. Example: "global"
884+
* @param namespace The namespace of the metadata taxonomy. Example: "enterprise_123456"
881885
* @param templateKey The name of the metadata template. Example: "properties"
882886
* @param fieldKey The key of the metadata taxonomy field in the template. Example: "geography"
883887
* @param headers Headers of getMetadataTemplateFieldOptions method
884888
*/
885889
public MetadataTaxonomyNodes getMetadataTemplateFieldOptions(
886-
GetMetadataTemplateFieldOptionsScope scope,
890+
String namespace,
887891
String templateKey,
888892
String fieldKey,
889893
GetMetadataTemplateFieldOptionsHeaders headers) {
890894
return getMetadataTemplateFieldOptions(
891-
scope, templateKey, fieldKey, new GetMetadataTemplateFieldOptionsQueryParams(), headers);
895+
namespace,
896+
templateKey,
897+
fieldKey,
898+
new GetMetadataTemplateFieldOptionsQueryParams(),
899+
headers);
892900
}
893901

894902
/**
@@ -897,14 +905,14 @@ public MetadataTaxonomyNodes getMetadataTemplateFieldOptions(
897905
* unless a `query` parameter is passed. With a `query` parameter specified, results are sorted in
898906
* order of relevance.
899907
*
900-
* @param scope The scope of the metadata template. Example: "global"
908+
* @param namespace The namespace of the metadata taxonomy. Example: "enterprise_123456"
901909
* @param templateKey The name of the metadata template. Example: "properties"
902910
* @param fieldKey The key of the metadata taxonomy field in the template. Example: "geography"
903911
* @param queryParams Query parameters of getMetadataTemplateFieldOptions method
904912
* @param headers Headers of getMetadataTemplateFieldOptions method
905913
*/
906914
public MetadataTaxonomyNodes getMetadataTemplateFieldOptions(
907-
GetMetadataTemplateFieldOptionsScope scope,
915+
String namespace,
908916
String templateKey,
909917
String fieldKey,
910918
GetMetadataTemplateFieldOptionsQueryParams queryParams,
@@ -934,7 +942,7 @@ public MetadataTaxonomyNodes getMetadataTemplateFieldOptions(
934942
"",
935943
this.networkSession.getBaseUrls().getBaseUrl(),
936944
"/2.0/metadata_templates/",
937-
convertToString(scope),
945+
convertToString(namespace),
938946
"/",
939947
convertToString(templateKey),
940948
"/fields/",

0 commit comments

Comments
 (0)