public static AdminServiceResource GetAdminServiceResourceById( vCloudClient client, string vCloudId) { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); return(new AdminServiceResource(client, VcloudEntity <ServiceResourceType> .GetEntityById(client, vCloudId, "application/vnd.vmware.admin.serviceResource+xml"))); }
public static AdminVdc GetAdminVdcById(vCloudClient client, string vCloudId) { try { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); return(new AdminVdc(client, VcloudEntity <AdminVdcType> .GetEntityById(client, vCloudId, "application/vnd.vmware.admin.vdc+xml"))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static Task GetTaskById(vCloudClient client, string vCloudId) { try { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); return(new Task(client, VcloudEntity <TaskType> .GetEntityById(client, vCloudId, "application/vnd.vmware.vcloud.task+xml"))); } catch (VCloudException ex) { throw new VCloudException(ex.Message); } }
public static VMWVimServer GetVMWVimServerById(vCloudClient client, string vCloudId) { try { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); return(new VMWVimServer(client, VcloudEntity <VimServerType> .GetEntityById(client, vCloudId, "application/vnd.vmware.admin.vmwvirtualcenter+xml"))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static Media GetMediaById(vCloudClient client, string vCloudId) { try { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); return(new Media(client, VcloudEntity <com.vmware.vcloud.api.rest.schema.MediaType> .GetEntityById(client, vCloudId, "application/vnd.vmware.vcloud.media+xml"))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static Vapp GetVappById(vCloudClient client, string vCloudId) { try { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); VAppType entityById = VcloudEntity <VAppType> .GetEntityById(client, vCloudId, "application/vnd.vmware.vcloud.vApp+xml"); return(new Vapp(client, entityById)); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static ApiDefinition GetApiDefinitionById( vCloudClient client, string vCloudId) { try { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); return(new ApiDefinition(client, VcloudEntity <ApiDefinitionType> .GetEntityById(client, vCloudId, "application/vnd.vmware.vcloud.apidefinition+xml"))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static AdminOrganization GetAdminOrgById( vCloudClient client, string vCloudId) { try { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); string str = client.VCloudApiURL + "/entity/" + vCloudId; return(new AdminOrganization(client, VcloudEntity <AdminOrgType> .GetEntityById(client, vCloudId, "application/vnd.vmware.admin.organization+xml"))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static VappTemplate GetVappTemplateById(vCloudClient client, string vCloudId) { try { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); if (vCloudId.Contains(com.vmware.vcloud.sdk.constants.EntityType.VM.Value())) { return(new VappTemplate(client, VcloudEntity <VAppTemplateType> .GetEntityById(client, vCloudId, "application/vnd.vmware.vcloud.vm+xml"))); } return(new VappTemplate(client, VcloudEntity <VAppTemplateType> .GetEntityById(client, vCloudId, "application/vnd.vmware.vcloud.vAppTemplate+xml"))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static VappNetwork GetVappNetworkById(vCloudClient client, string vCloudId) { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); return(new VappNetwork(client, VcloudEntity <VAppNetworkType> .GetEntityById(client, vCloudId, "application/vnd.vmware.vcloud.network+xml"))); }
public static EdgeGateway GetEdgeGatewayById(vCloudClient client, string vCloudId) { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); return(new EdgeGateway(client, VcloudEntity <GatewayType> .GetEntityById(client, vCloudId, "application/vnd.vmware.admin.edgeGateway+xml"))); }
public static BlockingTask GetBlockingTaskById(vCloudClient client, string vCloudId) { Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.GET_VCLOUD_ID_MSG) + " - " + vCloudId); return(new BlockingTask(client, VcloudEntity <BlockingTaskType> .GetEntityById(client, vCloudId, "application/vnd.vmware.admin.blockingTask+xml"))); }