Webservice::OVH::Cloud::Project::Instance::Group
use Webservice::OVH; my $ovh = Webservice::OVH->new_from_json("credentials.json"); my $projects = $ovh->cloud->projects; my $example_project = $projects->[0]; my $groups = $project->instance->groups; foreach my $group (@$groups) { print $group->name; }
Provides Instance object methods and id less methods for groups.
Internal Method to create the Network object. This method is not ment to be called directly. This method can be reached by using the bridge object instance in project.
Parameter: %params - key => value
Return: Webservice::OVH::Cloud::Project::Instance::Group
Synopsis: Webservice::OVH::Cloud::Project::Instance::Group->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module, id => $id );
Synopsis: Webservice::OVH::Cloud::Project::Instance::Group->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module );
Root Project.
Return: Webservice::OVH::Cloud::Project
Synopsis: my $project = $group->project;
When this object is deleted on the api side, this method returns 0.
Return: VALUE
Synopsis: print "Valid" if $group->is_valid;
Internal method to check validity. Difference is that this method carps an error.
Synopsis: $group->_is_valid;
Returns the api id
Synopsis: my $id = $group->id;
Returns the raw properties as a hash. This is the original return value of the web-api.
Return: HASH
Synopsis: my $properties = $group->properties;
Exposed property value.
Synopsis: my $name = $group->name;
Synopsis: my $region = $group->region;
Return: ARRAY
Synopsis: my $instance_ids = $group->instance_ids;
Synopsis: my $affinity = $group->affinity;
Deletes the object api sided and sets it invalid.
Synopsis: $group->delete;
To install Webservice::OVH, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::OVH
CPAN shell
perl -MCPAN -e shell install Webservice::OVH
For more information on module installation, please visit the detailed CPAN module installation guide.