From b7099ac21620f1113a076c09fb84414f94f1044d Mon Sep 17 00:00:00 2001 From: Phil Adams Date: Mon, 30 Mar 2020 09:04:29 -0500 Subject: [PATCH] chore: initial project setup --- .bumpversion.cfg | 2 +- .env.enc | Bin 544 -> 0 bytes .ghostenv.enc | Bin 496 -> 0 bytes .gitignore | 2 +- .iam_access_groups_env.enc | Bin 304 -> 0 bytes .travis.yml | 35 +- CHANGELOG.md | 41 - CONTRIBUTING.md | 8 +- README.md | 47 +- Samples/README.md | 3 - Samples/global_tagging_sample.go | 142 - Samples/iam_policy_management_sample.go | 240 - Samples/resource_controller_sample.go | 250 - Samples/usage_report_sample.go | 191 - casemanagementv1/case_management_v1.go | 3625 ---------- .../case_management_v1_suite_test.go | 28 - casemanagementv1/case_management_v1_test.go | 881 --- common/headers.go | 2 +- common/headers_test.go | 2 +- common/version.go | 4 +- .../enterprise_billing_units_v1.go | 1188 ---- .../enterprise_billing_units_v1_suite_test.go | 28 - .../enterprise_billing_units_v1_test.go | 297 - .../enterprise_management_v1.go | 3182 --------- .../enterprise_management_v1_suite_test.go | 28 - .../enterprise_management_v1_test.go | 775 --- .../enterprise_usage_reports_v1.go | 954 --- .../enterprise_usage_reports_v1_suite_test.go | 28 - .../enterprise_usage_reports_v1_test.go | 163 - globalcatalogv1/global_catalog_v1.go | 5891 ----------------- .../global_catalog_v1_suite_test.go | 28 - globalcatalogv1/global_catalog_v1_test.go | 1413 ---- globalsearchv2/global_search_v2.go | 618 -- .../global_search_v2_integration_test.go | 135 - globalsearchv2/global_search_v2_suite_test.go | 28 - globalsearchv2/global_search_v2_test.go | 201 - globaltaggingv1/global_tagging_v1.go | 1420 ---- .../global_tagging_v1_integration_test.go | 150 - .../global_tagging_v1_suite_test.go | 28 - globaltaggingv1/global_tagging_v1_test.go | 379 -- go.mod | 13 +- go.sum | 73 +- iamaccessgroupsv2/iam_access_groups_v2.go | 4082 ------------ .../iam_access_groups_v2_integration_test.go | 373 -- .../iam_access_groups_v2_suite_test.go | 28 - .../iam_access_groups_v2_test.go | 1043 --- .../iam_identity_services_v1.go | 2532 ------- .../iam_identity_services_v1_suite_test.go | 28 - .../iam_identity_services_v1_test.go | 772 --- .../iam_policy_management_v1.go | 2785 -------- ...m_policy_management_v1_integration_test.go | 225 - .../iam_policy_management_v1_suite_test.go | 28 - .../iam_policy_management_v1_test.go | 635 -- openservicebrokerv1/open_service_broker_v1.go | 2039 ------ .../open_service_broker_v1_suite_test.go | 28 - .../open_service_broker_v1_test.go | 616 -- package-lock.json | 982 --- .../resource_controller_v2.go | 4235 ------------ ...resource_controller_v2_integration_test.go | 236 - .../resource_controller_v2_suite_test.go | 28 - .../resource_controller_v2_test.go | 1231 ---- resourcemanagerv2/resource_manager_v2.go | 1962 ------ .../resource_manager_v2_suite_test.go | 28 - resourcemanagerv2/resource_manager_v2_test.go | 745 --- usagemeteringv4/usage_metering_v4.go | 801 --- .../usage_metering_v4_suite_test.go | 28 - usagemeteringv4/usage_metering_v4_test.go | 258 - usagereportsv4/usage_reports_v4.go | 2650 -------- .../usage_reports_v4_integration_test.go | 171 - usagereportsv4/usage_reports_v4_suite_test.go | 28 - usagereportsv4/usage_reports_v4_test.go | 488 -- usermanagementv1/user_management_v1.go | 2173 ------ .../user_management_v1_suite_test.go | 28 - usermanagementv1/user_management_v1_test.go | 742 --- 74 files changed, 54 insertions(+), 54497 deletions(-) delete mode 100644 .env.enc delete mode 100644 .ghostenv.enc delete mode 100644 .iam_access_groups_env.enc delete mode 100644 CHANGELOG.md delete mode 100644 Samples/README.md delete mode 100644 Samples/global_tagging_sample.go delete mode 100644 Samples/iam_policy_management_sample.go delete mode 100644 Samples/resource_controller_sample.go delete mode 100644 Samples/usage_report_sample.go delete mode 100644 casemanagementv1/case_management_v1.go delete mode 100644 casemanagementv1/case_management_v1_suite_test.go delete mode 100644 casemanagementv1/case_management_v1_test.go delete mode 100644 enterprisebillingunitsv1/enterprise_billing_units_v1.go delete mode 100644 enterprisebillingunitsv1/enterprise_billing_units_v1_suite_test.go delete mode 100644 enterprisebillingunitsv1/enterprise_billing_units_v1_test.go delete mode 100644 enterprisemanagementv1/enterprise_management_v1.go delete mode 100644 enterprisemanagementv1/enterprise_management_v1_suite_test.go delete mode 100644 enterprisemanagementv1/enterprise_management_v1_test.go delete mode 100644 enterpriseusagereportsv1/enterprise_usage_reports_v1.go delete mode 100644 enterpriseusagereportsv1/enterprise_usage_reports_v1_suite_test.go delete mode 100644 enterpriseusagereportsv1/enterprise_usage_reports_v1_test.go delete mode 100644 globalcatalogv1/global_catalog_v1.go delete mode 100644 globalcatalogv1/global_catalog_v1_suite_test.go delete mode 100644 globalcatalogv1/global_catalog_v1_test.go delete mode 100644 globalsearchv2/global_search_v2.go delete mode 100644 globalsearchv2/global_search_v2_integration_test.go delete mode 100644 globalsearchv2/global_search_v2_suite_test.go delete mode 100644 globalsearchv2/global_search_v2_test.go delete mode 100644 globaltaggingv1/global_tagging_v1.go delete mode 100644 globaltaggingv1/global_tagging_v1_integration_test.go delete mode 100644 globaltaggingv1/global_tagging_v1_suite_test.go delete mode 100644 globaltaggingv1/global_tagging_v1_test.go delete mode 100644 iamaccessgroupsv2/iam_access_groups_v2.go delete mode 100644 iamaccessgroupsv2/iam_access_groups_v2_integration_test.go delete mode 100644 iamaccessgroupsv2/iam_access_groups_v2_suite_test.go delete mode 100644 iamaccessgroupsv2/iam_access_groups_v2_test.go delete mode 100644 iamidentityservicesv1/iam_identity_services_v1.go delete mode 100644 iamidentityservicesv1/iam_identity_services_v1_suite_test.go delete mode 100644 iamidentityservicesv1/iam_identity_services_v1_test.go delete mode 100644 iampolicymanagementv1/iam_policy_management_v1.go delete mode 100644 iampolicymanagementv1/iam_policy_management_v1_integration_test.go delete mode 100644 iampolicymanagementv1/iam_policy_management_v1_suite_test.go delete mode 100644 iampolicymanagementv1/iam_policy_management_v1_test.go delete mode 100644 openservicebrokerv1/open_service_broker_v1.go delete mode 100644 openservicebrokerv1/open_service_broker_v1_suite_test.go delete mode 100644 openservicebrokerv1/open_service_broker_v1_test.go delete mode 100644 package-lock.json delete mode 100644 resourcecontrollerv2/resource_controller_v2.go delete mode 100644 resourcecontrollerv2/resource_controller_v2_integration_test.go delete mode 100644 resourcecontrollerv2/resource_controller_v2_suite_test.go delete mode 100644 resourcecontrollerv2/resource_controller_v2_test.go delete mode 100644 resourcemanagerv2/resource_manager_v2.go delete mode 100644 resourcemanagerv2/resource_manager_v2_suite_test.go delete mode 100644 resourcemanagerv2/resource_manager_v2_test.go delete mode 100644 usagemeteringv4/usage_metering_v4.go delete mode 100644 usagemeteringv4/usage_metering_v4_suite_test.go delete mode 100644 usagemeteringv4/usage_metering_v4_test.go delete mode 100644 usagereportsv4/usage_reports_v4.go delete mode 100644 usagereportsv4/usage_reports_v4_integration_test.go delete mode 100644 usagereportsv4/usage_reports_v4_suite_test.go delete mode 100644 usagereportsv4/usage_reports_v4_test.go delete mode 100644 usermanagementv1/user_management_v1.go delete mode 100644 usermanagementv1/user_management_v1_suite_test.go delete mode 100644 usermanagementv1/user_management_v1_test.go diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 9c33e716..4ef4a998 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.4.0 +current_version = 0.0.0 commit = True message = Update version {current_version} -> {new_version} [skip ci] diff --git a/.env.enc b/.env.enc deleted file mode 100644 index c8faa580bed0681745a31602cbfc989730274c84..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 544 zcmV+*0^j{AvRoRx@woQ6pIAX~LclUc{|9G~NC*Vxac7gukJq_qeXfx%b_<3N3(vh$ zGvo8@FkwLnug)s)b6$fbA;GB~BMuHRrkVyiBgpIs>0yOH^%BotyV_`!w&Z%%fyc@5 z7cQq)85woTGI3}5B|Y&u-38{Hgwap3&o;57u~uEQ7(@qUtPeT&j7D=ovy^Q?gLlms zVk$w`@TJ{l#2>*N4zoPy*q6z4*NS7;JGfCfj9sBiKxJ-ToJxZ-Smn(yuuhb^f=${m zfZ}V1)tY&Zp|(46!1uC-g>L?&qcmCmS&={~WUQT_;-ULX=t8wsN>Nj8+osu2=lxke z^Hftapo-o4=@0-g{grdl*mBJyMWS;%7vqF9{7KP{NG0Lj(Hnv-Hkq|GqM!i%YR{+T z%+S>?NDqyH8UI<~DZzcN`i6n4ylZVfwWiht~N zY$&pvEU_|<8}hh*fc>|}VbVmwMpfIn=x4vn*YkE&Qk@p>-kbo{%UqJK{uPZ*I&{8O zvOgev`rI$veT<(IxTH5Qt<&?@lTG9EsX=A-uzGefk$J!J#9vhRg;$@NOxI6rkRwCE zNr0IEnX=rGNfRQye!h#PglWWm@7J|cWvlw^_;eZAKujP~=)~#D6cwOZD5WkfMk~a> i_njT@(I<>d_mt+8y1zE<(=Z=Yg4|F`M}Q)zm>lXxxf!GY diff --git a/.ghostenv.enc b/.ghostenv.enc deleted file mode 100644 index 0726b7c38b16c681411acd91a3a498c9590b0bec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 496 zcmV zp)rW~ioAv-SQ-T=quQ^JkU)E+`vENCD(&v{SxUR6T-yGA%$ zExgH4KrxTZeydOr<&fv7)+U-qm8vN)|CsKl!~PtwZD>Nr7p-8RugRl0cfH+M;QU@0 z*Fc-uUIfB!`}iHNWC7q*#&)EGP40kkl06{|lH*z%{>D$Q%H{t4_7fR)xjA@lZmc@- zh_uxae5jmp0FnXVMxLn#iWRdtl@C&t+AJbVN?c0bc@+ty)k;G5H0Zal+tm*6tkOB~ z5+6G@-RYZE diff --git a/.gitignore b/.gitignore index e321ff94..5cc5d9f5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .DS_Store -.env +*.env # ignore vendor/ vendor/ diff --git a/.iam_access_groups_env.enc b/.iam_access_groups_env.enc deleted file mode 100644 index 2c675ea6c86528d5bf1ab6bf6438939aa0111642..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 304 zcmV-00nh%}>4z8<^+}r<6y3jDA4Pj0saI!7^Vs-z_p8R>O~{?46k;ECg-`{cr@7(z z65~V6oM3+XY}AZ`IF+k~*z?xbT@8NHkzS^!0tjc{!Qr(_$I!s>8svAdet%yyokF^4 zF9B8!%HmaHb_f~(;y4w*+6<5TCrvJBlf>~)qjtsR(+u>@)4is9-Q_I*6eOnx{V4{% zcz@V_t!|W?%Qx~-Lce}bzEhE#nL-UsNm&y>(mi!q7by{IZs%7xfhHqbg_-LInZ~2v zmO|dg`FrLp)FksxKs1BxhrPQhH0=Dmqn8kKRO8-rKaudmC?lNUyyVQ(&`CXiVuaR^ zIx$gEEl`MumiG?{x^c+Ikt^GQ>IUw}R-zaHDO?OkpIN#~SI|fx1^hzaR%DK7!IbpX C7Mn5v diff --git a/.travis.yml b/.travis.yml index e6509b8c..248f0f01 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,28 +18,27 @@ before_install: - nvm install 12 - npm install -g npm@6.x -install: -- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.21.0 - -before_script: +before_install: - openssl aes-256-cbc -K "$ghost_key" -iv "$ghost_iv" -in .ghostenv.enc -out .ghostenv -d || true - openssl aes-256-cbc -K $encrypted_3b05ea0a069c_key -iv $encrypted_3b05ea0a069c_iv -in .iam_access_groups_env.enc -out .iam_access_groups_env -d || true +install: +- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.21.0 + script: -- go test `go list ./... | grep -v Samples` - go test `go list ./... | grep -v Samples` -tags=integration - golangci-lint run -before_deploy: -- pip install --user bump2version -- npm install @semantic-release/changelog -- npm install @semantic-release/exec -- npm install @semantic-release/git -- npm install @semantic-release/github - -deploy: - - provider: script - script: npx semantic-release - skip_cleanup: true - on: - branch: master +# before_deploy: +# - pip install --user bump2version +# - npm install @semantic-release/changelog +# - npm install @semantic-release/exec +# - npm install @semantic-release/git +# - npm install @semantic-release/github +# +# deploy: +# - provider: script +# script: npx semantic-release +# skip_cleanup: true +# on: +# branch: master diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index f1f03e36..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,41 +0,0 @@ -# [0.4.0](https://github.ibm.com/ibmcloud/platform-services-go-sdk/compare/v0.3.0...v0.4.0) (2020-03-24) - - -### Features - -* **Case Management:** add initial case-mgmt generated service ([a41ac9f](https://github.ibm.com/ibmcloud/platform-services-go-sdk/commit/a41ac9fa7f08f4954ab9acd26bf9b2b4a32ccabe)) - -# [0.3.0](https://github.ibm.com/ibmcloud/platform-services-go-sdk/compare/v0.2.0...v0.3.0) (2020-03-23) - - -### Features - -* **IAM Access Groups:** re-gen service with new API definition ([8177185](https://github.ibm.com/ibmcloud/platform-services-go-sdk/commit/81771855733a2d82874b83ae80ec15b03db2f410)) - -# [0.2.0](https://github.ibm.com/ibmcloud/platform-services-go-sdk/compare/v0.1.1...v0.2.0) (2020-03-20) - - -### Features - -* **IAM Policy Management:** regen service with latest API definition ([3b3c9f2](https://github.ibm.com/ibmcloud/platform-services-go-sdk/commit/3b3c9f20cbfad74ce4aa0f58b64182680f852f40)) - -## [0.1.1](https://github.ibm.com/ibmcloud/platform-services-go-sdk/compare/v0.1.0...v0.1.1) (2020-03-16) - - -### Bug Fixes - -* remove analytics header (no longer needed) ([40803c4](https://github.ibm.com/ibmcloud/platform-services-go-sdk/commit/40803c49d1ca33b95769a800b37dd54c0aabe046)) - -# [0.1.0](https://github.ibm.com/ibmcloud/platform-services-go-sdk/compare/v0.0.2...v0.1.0) (2020-03-09) - - -### Features - -* add sdk analytics header ([#19](https://github.ibm.com/ibmcloud/platform-services-go-sdk/issues/19)) ([da5290c](https://github.ibm.com/ibmcloud/platform-services-go-sdk/commit/da5290cc8b37da6abd5936b8d3a06e9efddce146)) - -## [0.0.2](https://github.ibm.com/ibmcloud/platform-services-go-sdk/compare/v0.0.1...v0.0.2) (2020-03-09) - - -### Bug Fixes - -* **docs:** update CONTRIBUTING.md with commit message requirements ([8872750](https://github.ibm.com/ibmcloud/platform-services-go-sdk/commit/88727506cb9ce6db237336bc8a52c9d2db7e077a)) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 68fe907c..3aa52eeb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,11 +1,11 @@ # Questions -If you are having problems using the APIs or have a question about IBM Cloud services, please ask a question on -[dW Answers](https://developer.ibm.com/answers/questions/ask/?topics=ibm-cloud) -or [Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud). +If you are having problems using the APIs or have a question about IBM Cloud services, +please ask a question at +[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud). # Issues If you encounter an issue with the project, you are welcome to submit a -[bug report](https://github.ibm.com/ibmcloud/platform-services-go-sdk/issues). +[bug report](https://github.com/IBM/platform-services-go-sdk/issues). Before that, please search for similar issues. It's possible that someone has already reported the problem. # General Information diff --git a/README.md b/README.md index c3957bcd..064e0d8b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ -# IBM Cloud Platform Services Go SDK Version 0.4.0 -[![Build Status](https://travis.ibm.com/ibmcloud/platform-services-go-sdk.svg?token=eW5FVD71iyte6tTby8gr&branch=master)](https://travis.ibm.com/ibmcloud/platform-services-go-sdk) + + +# IBM Cloud Platform Services Go SDK Version 0.0.0 -Go client library to interact with various [IBM Cloud Platform Service APIs](https://cloud.ibm.com/apidocs?category=platform_services). +Go client library to interact with various +[IBM Cloud Platform Service APIs](https://cloud.ibm.com/apidocs?category=platform_services). ## Table of Contents