NAME
Webservice::OVH::Cloud::Project::Instance::Group
SYNOPSIS
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;
}
DESCRIPTION
Provides Instance object methods and id less methods for groups.
METHODS
_new_existing
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
Synopsis: Webservice::OVH::Cloud::Project::Instance::Group->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module, id => $id );
_new
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
Synopsis: Webservice::OVH::Cloud::Project::Instance::Group->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module );
project
Root Project.
Return: Webservice::OVH::Cloud::Project
Synopsis: my $project = $group->project;
is_valid
When this object is deleted on the api side, this method returns 0.
Return: VALUE
Synopsis: print "Valid" if $group->is_valid;
_is_valid
Internal method to check validity. Difference is that this method carps an error.
Return: VALUE
Synopsis: $group->_is_valid;
id
Returns the api id
Return: VALUE
Synopsis: my $id = $group->id;
properties
Returns the raw properties as a hash. This is the original return value of the web-api.
Return: HASH
Synopsis: my $properties = $group->properties;
name
Exposed property value.
Return: VALUE
Synopsis: my $name = $group->name;
region
Exposed property value.
Return: VALUE
Synopsis: my $region = $group->region;
instance_ids
Exposed property value.
Return: ARRAY
Synopsis: my $instance_ids = $group->instance_ids;
affinity
Exposed property value.
Return: ARRAY
Synopsis: my $affinity = $group->affinity;
delete
Deletes the object api sided and sets it invalid.
Synopsis: $group->delete;