Skip to content

Latest commit

 

History

History
1183 lines (815 loc) · 110 KB

File metadata and controls

1183 lines (815 loc) · 110 KB

Cloud

Types:

from gcore.types.cloud import (
    AllowedAddressPairs,
    BaremetalFlavor,
    BaremetalFlavorList,
    BlackholePort,
    Console,
    DDOSProfile,
    DDOSProfileField,
    DDOSProfileOptionList,
    DDOSProfileStatus,
    DDOSProfileTemplate,
    DDOSProfileTemplateField,
    FixedAddress,
    FixedAddressShort,
    FlavorHardwareDescription,
    FloatingAddress,
    FloatingIP,
    FloatingIPStatus,
    GPUImage,
    GPUImageList,
    HTTPMethod,
    Image,
    ImageList,
    Instance,
    InstanceIsolation,
    InstanceList,
    InstanceMetricsTimeUnit,
    InterfaceIPFamily,
    IPAssignment,
    IPVersion,
    LaasIndexRetentionPolicy,
    LoadBalancer,
    LoadBalancerInstanceRole,
    LoadBalancerMemberConnectivity,
    LoadBalancerOperatingStatus,
    LoadBalancerStatistics,
    Logging,
    Network,
    NetworkAnySubnetFip,
    NetworkDetails,
    NetworkInterface,
    NetworkInterfaceList,
    NetworkSubnetFip,
    ProvisioningStatus,
    Route,
    Subnet,
    Tag,
    TagList,
    TagUpdateMap,
    TaskIDList,
)

Projects

Types:

from gcore.types.cloud import Project

Methods:

Tasks

Types:

from gcore.types.cloud import Task

Methods:

Regions

Types:

from gcore.types.cloud import Region

Methods:

Quotas

Types:

from gcore.types.cloud import QuotaGetAllResponse, QuotaGetByRegionResponse, QuotaGetGlobalResponse

Methods:

Requests

Types:

from gcore.types.cloud.quotas import RequestListResponse, RequestGetResponse

Methods:

Secrets

Types:

from gcore.types.cloud import Secret

Methods:

SSHKeys

Types:

from gcore.types.cloud import SSHKey, SSHKeyCreated

Methods:

IPRanges

Types:

from gcore.types.cloud import IPRanges

Methods:

LoadBalancers

Types:

from gcore.types.cloud import (
    HealthMonitor,
    HealthMonitorStatus,
    LbAlgorithm,
    LbHealthMonitorType,
    LbListenerProtocol,
    LbPoolProtocol,
    LbSessionPersistenceType,
    ListenerStatus,
    LoadBalancerFlavorDetail,
    LoadBalancerFlavorList,
    LoadBalancerL7Policy,
    LoadBalancerL7PolicyList,
    LoadBalancerL7Rule,
    LoadBalancerL7RuleList,
    LoadBalancerListenerDetail,
    LoadBalancerListenerList,
    LoadBalancerMetrics,
    LoadBalancerMetricsList,
    LoadBalancerPool,
    LoadBalancerPoolList,
    LoadBalancerStatus,
    LoadBalancerStatusList,
    Member,
    MemberStatus,
    PoolStatus,
    SessionPersistence,
)

Methods:

L7Policies

Methods:

Rules

Methods:

  • client.cloud.load_balancers.l7_policies.rules.create(l7policy_id, *, project_id, region_id, **params) -> TaskIDList
  • client.cloud.load_balancers.l7_policies.rules.list(l7policy_id, *, project_id, region_id) -> LoadBalancerL7RuleList
  • client.cloud.load_balancers.l7_policies.rules.delete(l7rule_id, *, project_id, region_id, l7policy_id) -> TaskIDList
  • client.cloud.load_balancers.l7_policies.rules.get(l7rule_id, *, project_id, region_id, l7policy_id) -> LoadBalancerL7Rule
  • client.cloud.load_balancers.l7_policies.rules.replace(l7rule_id, *, project_id, region_id, l7policy_id, **params) -> TaskIDList

Flavors

Methods:

Listeners

Methods:

Pools

Methods:

HealthMonitors

Methods:

  • client.cloud.load_balancers.pools.health_monitors.create(pool_id, *, project_id, region_id, **params) -> TaskIDList
  • client.cloud.load_balancers.pools.health_monitors.delete(pool_id, *, project_id, region_id) -> None

Members

Methods:

  • client.cloud.load_balancers.pools.members.create(pool_id, *, project_id, region_id, **params) -> TaskIDList
  • client.cloud.load_balancers.pools.members.delete(member_id, *, project_id, region_id, pool_id) -> TaskIDList

Metrics

Methods:

Statuses

Methods:

ReservedFixedIPs

Types:

from gcore.types.cloud import ReservedFixedIP

Methods:

Vip

Types:

from gcore.types.cloud.reserved_fixed_ips import IPWithSubnet

Methods:

CandidatePorts

Types:

from gcore.types.cloud.reserved_fixed_ips.vip import CandidatePort, CandidatePortList

Methods:

  • client.cloud.reserved_fixed_ips.vip.candidate_ports.list(port_id, *, project_id, region_id) -> CandidatePortList

ConnectedPorts

Types:

from gcore.types.cloud.reserved_fixed_ips.vip import ConnectedPort, ConnectedPortList

Methods:

Networks

Methods:

Subnets

Methods:

Routers

Types:

from gcore.types.cloud.networks import Router, RouterList, SubnetID

Methods:

Volumes

Types:

from gcore.types.cloud import Volume

Methods:

FloatingIPs

Types:

from gcore.types.cloud import FloatingIPDetailed

Methods:

SecurityGroups

Types:

from gcore.types.cloud import SecurityGroup, SecurityGroupRule

Methods:

Rules

Methods:

Users

RoleAssignments

Types:

from gcore.types.cloud.users import RoleAssignment, RoleAssignmentUpdatedDeleted

Methods:

Inference

Types:

from gcore.types.cloud import InferenceRegionCapacity, InferenceRegionCapacityList

Methods:

Flavors

Types:

from gcore.types.cloud.inference import InferenceFlavor

Methods:

Deployments

Types:

from gcore.types.cloud.inference import (
    InferenceDeployment,
    InferenceDeploymentAPIKey,
    Probe,
    ProbeConfig,
    ProbeExec,
    ProbeHTTPGet,
    ProbeTcpSocket,
)

Methods:

Logs

Types:

from gcore.types.cloud.inference.deployments import InferenceDeploymentLog

Methods:

RegistryCredentials

Types:

from gcore.types.cloud.inference import InferenceRegistryCredentials

Methods:

Secrets

Types:

from gcore.types.cloud.inference import InferenceSecret

Methods:

APIKeys

Types:

from gcore.types.cloud.inference import InferenceAPIKey, InferenceAPIKeyCreated

Methods:

Applications

Deployments

Types:

from gcore.types.cloud.inference.applications import (
    InferenceApplicationDeployment,
    InferenceApplicationDeploymentList,
)

Methods:

Templates

Types:

from gcore.types.cloud.inference.applications import (
    InferenceApplicationTemplate,
    InferenceApplicationTemplateList,
)

Methods:

PlacementGroups

Types:

from gcore.types.cloud import PlacementGroup, PlacementGroupList

Methods:

Baremetal

Images

Methods:

Flavors

Methods:

Servers

Types:

from gcore.types.cloud.baremetal import (
    BaremetalFixedAddress,
    BaremetalFloatingAddress,
    BaremetalServer,
)

Methods:

Registries

Types:

from gcore.types.cloud import Registry, RegistryList, RegistryTag

Methods:

  • client.cloud.registries.create(*, project_id, region_id, **params) -> Registry
  • client.cloud.registries.list(*, project_id, region_id) -> RegistryList
  • client.cloud.registries.delete(registry_id, *, project_id, region_id) -> None
  • client.cloud.registries.get(registry_id, *, project_id, region_id) -> Registry
  • client.cloud.registries.resize(registry_id, *, project_id, region_id, **params) -> Registry

Repositories

Types:

from gcore.types.cloud.registries import RegistryRepository, RegistryRepositoryList

Methods:

  • client.cloud.registries.repositories.list(registry_id, *, project_id, region_id) -> RegistryRepositoryList
  • client.cloud.registries.repositories.delete(repository_name, *, project_id, region_id, registry_id) -> None

Artifacts

Types:

from gcore.types.cloud.registries import RegistryArtifact, RegistryArtifactList

Methods:

  • client.cloud.registries.artifacts.list(repository_name, *, project_id, region_id, registry_id) -> RegistryArtifactList
  • client.cloud.registries.artifacts.delete(digest, *, project_id, region_id, registry_id, repository_name) -> None

Tags

Methods:

  • client.cloud.registries.tags.delete(tag_name, *, project_id, region_id, registry_id, repository_name, digest) -> None

Users

Types:

from gcore.types.cloud.registries import (
    RegistryUser,
    RegistryUserCreated,
    RegistryUserList,
    UserRefreshSecretResponse,
)

Methods:

FileShares

Types:

from gcore.types.cloud import FileShare

Methods:

AccessRules

Types:

from gcore.types.cloud.file_shares import AccessRule, AccessRuleList

Methods:

  • client.cloud.file_shares.access_rules.create(file_share_id, *, project_id, region_id, **params) -> AccessRule
  • client.cloud.file_shares.access_rules.list(file_share_id, *, project_id, region_id) -> AccessRuleList
  • client.cloud.file_shares.access_rules.delete(access_rule_id, *, project_id, region_id, file_share_id) -> None

BillingReservations

Types:

from gcore.types.cloud import BillingReservation, BillingReservations

Methods:

GPUBaremetal

Clusters

Types:

from gcore.types.cloud.gpu_baremetal import GPUBaremetalCluster

Methods:

Interfaces

Methods:

  • client.cloud.gpu_baremetal.clusters.interfaces.list(cluster_id, *, project_id, region_id) -> NetworkInterfaceList
  • client.cloud.gpu_baremetal.clusters.interfaces.attach(instance_id, *, project_id, region_id, **params) -> TaskIDList
  • client.cloud.gpu_baremetal.clusters.interfaces.detach(instance_id, *, project_id, region_id, **params) -> TaskIDList

Servers

Types:

from gcore.types.cloud.gpu_baremetal.clusters import (
    GPUBaremetalClusterServer,
    GPUBaremetalClusterServerV1,
    GPUBaremetalClusterServerV1List,
)

Methods:

Flavors

Types:

from gcore.types.cloud.gpu_baremetal.clusters import GPUBaremetalFlavor, GPUBaremetalFlavorList

Methods:

Images

Methods:

  • client.cloud.gpu_baremetal.clusters.images.list(*, project_id, region_id) -> GPUImageList
  • client.cloud.gpu_baremetal.clusters.images.delete(image_id, *, project_id, region_id) -> TaskIDList
  • client.cloud.gpu_baremetal.clusters.images.get(image_id, *, project_id, region_id) -> GPUImage
  • client.cloud.gpu_baremetal.clusters.images.upload(*, project_id, region_id, **params) -> TaskIDList

GPUVirtual

Clusters

Types:

from gcore.types.cloud.gpu_virtual import GPUVirtualCluster

Methods:

Servers

Types:

from gcore.types.cloud.gpu_virtual.clusters import (
    GPUVirtualClusterServer,
    GPUVirtualClusterServerList,
)

Methods:

Volumes

Types:

from gcore.types.cloud.gpu_virtual.clusters import (
    GPUVirtualClusterVolume,
    GPUVirtualClusterVolumeList,
)

Methods:

Interfaces

Types:

from gcore.types.cloud.gpu_virtual.clusters import GPUVirtualInterface, GPUVirtualInterfaceList

Methods:

Flavors

Types:

from gcore.types.cloud.gpu_virtual.clusters import GPUVirtualFlavor, GPUVirtualFlavorList

Methods:

Images

Methods:

  • client.cloud.gpu_virtual.clusters.images.list(*, project_id, region_id) -> GPUImageList
  • client.cloud.gpu_virtual.clusters.images.delete(image_id, *, project_id, region_id) -> TaskIDList
  • client.cloud.gpu_virtual.clusters.images.get(image_id, *, project_id, region_id) -> GPUImage
  • client.cloud.gpu_virtual.clusters.images.upload(*, project_id, region_id, **params) -> TaskIDList

Instances

Types:

from gcore.types.cloud import InstanceInterface

Methods:

Flavors

Types:

from gcore.types.cloud.instances import InstanceFlavorDetailed, InstanceFlavorList

Methods:

Interfaces

Methods:

Images

Methods:

Metrics

Types:

from gcore.types.cloud.instances import Metrics, MetricsList

Methods:

K8S

Types:

from gcore.types.cloud import K8SClusterVersion, K8SClusterVersionList

Methods:

Flavors

Methods:

Clusters

Types:

from gcore.types.cloud.k8s import (
    K8SCluster,
    K8SClusterCertificate,
    K8SClusterKubeconfig,
    K8SClusterList,
)

Methods:

Nodes

Methods:

  • client.cloud.k8s.clusters.nodes.list(cluster_name, *, project_id, region_id, **params) -> InstanceList
  • client.cloud.k8s.clusters.nodes.delete(instance_id, *, project_id, region_id, cluster_name) -> None

Pools

Types:

from gcore.types.cloud.k8s.clusters import K8SClusterPool, K8SClusterPoolList, K8SClusterPoolQuota

Methods:

Nodes

Methods:

  • client.cloud.k8s.clusters.pools.nodes.list(pool_name, *, project_id, region_id, cluster_name, **params) -> InstanceList
  • client.cloud.k8s.clusters.pools.nodes.delete(instance_id, *, project_id, region_id, cluster_name, pool_name) -> None

AuditLogs

Types:

from gcore.types.cloud import AuditLogEntry

Methods:

CostReports

Types:

from gcore.types.cloud import CostReportAggregated, CostReportAggregatedMonthly, CostReportDetailed

Methods:

UsageReports

Types:

from gcore.types.cloud import UsageReport

Methods:

Databases

Postgres

Clusters

Types:

from gcore.types.cloud.databases.postgres import PostgresCluster, PostgresClusterShort

Methods:

UserCredentials

Types:

from gcore.types.cloud.databases.postgres.clusters import PostgresUserCredentials

Methods:

Configurations

Types:

from gcore.types.cloud.databases.postgres import PostgresConfiguration

Methods:

CustomConfigurations

Types:

from gcore.types.cloud.databases.postgres import PgConfValidation

Methods:

VolumeSnapshots

Types:

from gcore.types.cloud import Snapshot

Methods:

  • client.cloud.volume_snapshots.create(*, project_id, region_id, **params) -> TaskIDList
  • client.cloud.volume_snapshots.update(snapshot_id, *, project_id, region_id, **params) -> Snapshot
  • client.cloud.volume_snapshots.delete(snapshot_id, *, project_id, region_id) -> TaskIDList
  • client.cloud.volume_snapshots.get(snapshot_id, *, project_id, region_id) -> Snapshot