{"id":18284579,"url":"https://github.com/pplu/gcloud-cliwrapper","last_synced_at":"2025-04-09T05:46:54.631Z","repository":{"id":66753251,"uuid":"143407975","full_name":"pplu/GCloud-CLIWrapper","owner":"pplu","description":"Module to use Google Cloud APIs from Perl via the gcloud CLI","archived":false,"fork":false,"pushed_at":"2019-03-27T14:50:35.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T00:25:56.979Z","etag":null,"topics":["api-client","gcloud","google","perl"],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pplu.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-03T09:30:45.000Z","updated_at":"2022-07-30T15:42:25.000Z","dependencies_parsed_at":"2023-02-22T19:15:12.708Z","dependency_job_id":null,"html_url":"https://github.com/pplu/GCloud-CLIWrapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pplu%2FGCloud-CLIWrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pplu%2FGCloud-CLIWrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pplu%2FGCloud-CLIWrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pplu%2FGCloud-CLIWrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pplu","download_url":"https://codeload.github.com/pplu/GCloud-CLIWrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987107,"owners_count":21028891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","gcloud","google","perl"],"created_at":"2024-11-05T13:14:01.582Z","updated_at":"2025-04-09T05:46:54.613Z","avatar_url":"https://github.com/pplu.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nGCloud::CLIWrapper - Module to use Google Cloud APIs via the gcloud CLI\n\n# SYNOPSIS\n\n     use GCloud::CLIWrapper;\n    \n     my $api = GCloud::CLIWrapper-\u003enew();\n    \n     my $result = $api-\u003erun('info');\n     # $result-\u003esuccess == 1 if the command executed correctly\n     # $result-\u003eoutput contains the output of the command\n    \n     my $result = $api-\u003ejson('info', '--format', 'json');\n     # $result-\u003esuccess == 1 if the command executed correctly\n     # $result-\u003eoutput contains the output of the command\n     # $result-\u003ejson is a hashref with the result of the parsed JSON output of the command\n    \n\n# DESCRIPTION\n\nThis module helps you use the GCloud API. It sends all it's commands\nvia the CLI command line tool `gcloud`. \n\n# ATTRIBUTES\n\n## glcloud\n\nBy default initialized to `gcloud`. It will try to find kubectl in the PATH. You can\nset it explicitly to a specific gcloud excecutable.\n\n## gcloud\\_options\n\nAn ArrayRef of options to always add to the command line invocations.\n\n     my $api = GCloud::CLIWrapper-\u003enew(\n       gcloud_options =\u003e [ 'info' ],\n     );\n    \n     my $result = $api-\u003erun;\n     # $result-\u003esuccess == 1 if the command executed correctly\n     # $result-\u003eoutput contains the output of the command\n    \n     my $result = $api-\u003ejson('--format', 'json');\n     # $result-\u003esuccess == 1 if the command executed correctly\n     # $result-\u003eoutput contains the output of the command\n     # $result-\u003ejson is a hashref with the result of the parsed JSON output of the command\n    \n\n# METHODS\n\n## run(@parameters)\n\nWill run gcloud with the parameters. Returns a [GCloud::CLIWrapper::Result](https://metacpan.org/pod/GCloud::CLIWrapper::Result) object\nwith `output` set to the output of the command, and `success` a Boolean to indicate\nif the command reported successful execution.\n\n## json(@parameters)\n\nWill run gcloud with the parameters, trying to parse the output as json. Note that you are\nresponsible for passing the command-line option to output in a json format. Returns a [Kubectl::CLIWrapper::Result](https://metacpan.org/pod/Kubectl::CLIWrapper::Result) object\nwith `output` set to the output of the command, and `json` set to a hashref with the parsed\nJSON. `success` will be false if JSON parsing fails.\n\n# SEE ALSO\n\n[https://cloud.google.com/sdk/gcloud/](https://cloud.google.com/sdk/gcloud/)\n\n# AUTHOR\n\n       Jose Luis Martinez\n       CAPSiDE\n       jlmartinez@capside.com\n    \n\n# BUGS and SOURCE\n\nThe source code is located here: [https://github.com/pplu/GCloud-CLIWrapper.git](https://github.com/pplu/GCloud-CLIWrapper.git)\n\nPlease report bugs to: [https://github.com/pplu/GCloud-CLIWrapper/issues](https://github.com/pplu/GCloud-CLIWrapper/issues)\n\n# COPYRIGHT and LICENSE\n\nCopyright (c) 2018 by CAPSiDE\nThis code is distributed under the Apache 2 License. The full text of the \nlicense can be found in the LICENSE file included with this module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpplu%2Fgcloud-cliwrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpplu%2Fgcloud-cliwrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpplu%2Fgcloud-cliwrapper/lists"}