Create a group

REST: POST /cloud/project/{serviceName}/instance/group
@param name [required] instance group name
@param region [required] Instance region
@param serviceName [required] Project name
@param type [required] Instance group type
163459
public OvhInstanceGroup project_serviceName_instance_group_POST(String serviceName, String name, String region, OvhInstanceGroupTypeEnum type) throws IOException {
		String qPath = "/cloud/project/{serviceName}/instance/group";
		StringBuilder sb = path(qPath, serviceName);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "name", name);
		addBody(o, "region", region);
		addBody(o, "type", type);
		String resp = exec(qPath, "POST", sb.toString(), o);
		return convertTo(resp, OvhInstanceGroup.class);
	}
1115429
def _create_virtual_network(self, region, resource_group_name, vnet_name):
        
        vnet_config = {
            'location': region,
            'address_space': {
                'address_prefixes': ['10.0.0.0/27']
            }
        }

        try:
            vnet_setup = self.network.virtual_networks.create_or_update(
                resource_group_name, vnet_name, vnet_config
            )
        except Exception as error:
            raise AzureCloudException(
                'Unable to create vnet: {0}.'.format(error)
            )

        vnet_setup.wait()
1023431
public Response addUserToGroup(String username, String groupName) {
		return restClient.post("users/" + username + "/groups/"+ groupName, null,
				new HashMap<String, String>());
	}
193897
function(groupName, callback) {
        request.get(
            this.getResourceUrl({ path: '/groups/' + groupName, user: null }),
            function onResourceGroupResponse(err, res, body) {
                callback(err, body && body.resources, res);
            }
        );
        return this;
    }
532644
public static BoxGroup.Info createGroup(BoxAPIConnection api, String name) {
        return createGroup(api, name, null, null, null, null, null);
    }
665714
public GitlabGroup createGroupViaSudo(String name, String path, GitlabUser sudoUser) throws IOException {
        return createGroup(name, path, null, null, sudoUser);
    }
1063113
public ArrayList<OvhVolume> project_serviceName_volume_GET(String serviceName, String region) throws IOException {
		String qPath = "/cloud/project/{serviceName}/volume";
		StringBuilder sb = path(qPath, serviceName);
		query(sb, "region", region);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t11);
	}
1140806
public Group create(String name) {
        String url = WxEndpoint.get("url.group.create");
        String json = String.format("{\"group\":{\"name\":\"%s\"}}", name);
        logger.debug("create group: {}", json);
        String response = wxClient.post(url, json);

        return JsonMapper.defaultUnwrapRootMapper().fromJson(response, Group.class);
    }
1086980
def create_group(self, name):
        
        self.project_service.set_auth(self._token_project)
        return self.project_service.create_group(name)
471968
public OvhRegion project_serviceName_region_regionName_GET(String serviceName, String regionName) throws IOException {
		String qPath = "/cloud/project/{serviceName}/region/{regionName}";
		StringBuilder sb = path(qPath, serviceName, regionName);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhRegion.class);
	}
389143
def create_service(self, name, service_type):
    
    return services.create_service(self._get_resource_root(), name,
        service_type, self.name)
304297
public OvhSshKeyDetail project_serviceName_sshkey_POST(String serviceName, String name, String publicKey, String region) throws IOException {
		String qPath = "/cloud/project/{serviceName}/sshkey";
		StringBuilder sb = path(qPath, serviceName);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "name", name);
		addBody(o, "publicKey", publicKey);
		addBody(o, "region", region);
		String resp = exec(qPath, "POST", sb.toString(), o);
		return convertTo(resp, OvhSshKeyDetail.class);
	}
81225
@Override
    public IEntityGroup newGroup(Class type) throws GroupsException {
        throwExceptionIfNotInternallyManaged();
        IEntityGroup group = groupFactory.newInstance(type);
        group.setLocalGroupService(this);
        if (cacheInUse()) {
            cacheAdd(group);
        }
        return group;
    }
59226
def delete_group(self, name):
        
        self.project_service.set_auth(self._token_project)
        return self.project_service.delete_group(name)
54232
public void setGroupLocalService(
		com.liferay.portal.kernel.service.GroupLocalService groupLocalService) {
		this.groupLocalService = groupLocalService;
	}
244416
def CreateGroup(self, GroupName):
        
        groups = self.CustomGroups
        self._DoCommand('CREATE GROUP %s' % tounicode(GroupName))
        for g in self.CustomGroups:
            if g not in groups and g.DisplayName == GroupName:
                return g
        raise SkypeError(0, 'Group creating failed')
322222
def create_service(resource_root, name, service_type,
                   cluster_name="default"):
  
  apiservice = ApiService(resource_root, name, service_type)
  return call(resource_root.post,
      SERVICES_PATH % (cluster_name,),
      ApiService, True, data=[apiservice])[0]