File tree Expand file tree Collapse file tree
modules/examples/src/main/java/com/ibm/cloud/platform_services/global_tagging/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222import com .ibm .cloud .platform_services .global_tagging .v1 .model .DeleteTagsResult ;
2323import com .ibm .cloud .platform_services .global_tagging .v1 .model .DetachTagOptions ;
2424import com .ibm .cloud .platform_services .global_tagging .v1 .model .ListTagsOptions ;
25- import com .ibm .cloud .platform_services .global_tagging .v1 .model .Resource ;
2625import com .ibm .cloud .platform_services .global_tagging .v1 .model .TagList ;
2726import com .ibm .cloud .platform_services .global_tagging .v1 .model .TagResults ;
2827import com .ibm .cloud .sdk .core .http .Response ;
@@ -114,9 +113,7 @@ public static void main(String[] args) throws Exception {
114113
115114 // begin-attach_tag
116115
117- Resource resourceModel = new Resource .Builder ().resourceId (resourceCRN ).build ();
118116 AttachTagOptions attachTagOptions = new AttachTagOptions .Builder ()
119- .addResources (resourceModel )
120117 .addTagNames ("tag_test_1" )
121118 .addTagNames ("tag_test_2" )
122119 .build ();
@@ -137,9 +134,7 @@ public static void main(String[] args) throws Exception {
137134
138135 // begin-detach_tag
139136
140- Resource resourceModel = new Resource .Builder ().resourceId (resourceCRN ).build ();
141137 DetachTagOptions detachTagOptions = new DetachTagOptions .Builder ()
142- .addResources (resourceModel )
143138 .addTagNames ("tag_test_1" )
144139 .addTagNames ("tag_test_2" )
145140 .tagType ("user" )
You can’t perform that action at this time.
0 commit comments