SourceControlConfigurationsOperations Class

SourceControlConfigurationsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
SourceControlConfigurationsOperations

Constructor

SourceControlConfigurationsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

begin_delete

This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.

create_or_update

Create a new Kubernetes Source Control Configuration.

get

Gets details of the Source Control Configuration.

list

List all Source Control Configurations.

begin_delete

This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.

begin_delete(resource_group_name: str, cluster_rp: Union[str, azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._source_control_configuration_client_enums.ExtensionsClusterRp], cluster_resource_name: Union[str, azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._source_control_configuration_client_enums.ExtensionsClusterResourceName], cluster_name: str, source_control_configuration_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cluster_rp
str or ExtensionsClusterRp
Required

The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).

cluster_resource_name
str or ExtensionsClusterResourceName
Required

The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).

cluster_name
str
Required

The name of the kubernetes cluster.

source_control_configuration_name
str
Required

Name of the Source Control Configuration.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

Exceptions

create_or_update

Create a new Kubernetes Source Control Configuration.

create_or_update(resource_group_name: str, cluster_rp: Union[str, azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._source_control_configuration_client_enums.ExtensionsClusterRp], cluster_resource_name: Union[str, azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._source_control_configuration_client_enums.ExtensionsClusterResourceName], cluster_name: str, source_control_configuration_name: str, source_control_configuration: azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._models_py3.SourceControlConfiguration, **kwargs: Any) -> azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._models_py3.SourceControlConfiguration

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cluster_rp
str or ExtensionsClusterRp
Required

The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).

cluster_resource_name
str or ExtensionsClusterResourceName
Required

The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).

cluster_name
str
Required

The name of the kubernetes cluster.

source_control_configuration_name
str
Required

Name of the Source Control Configuration.

source_control_configuration
SourceControlConfiguration
Required

Properties necessary to Create KubernetesConfiguration.

cls
callable

A custom type or function that will be passed the direct response

Returns

SourceControlConfiguration, or the result of cls(response)

Return type

Exceptions

get

Gets details of the Source Control Configuration.

get(resource_group_name: str, cluster_rp: Union[str, azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._source_control_configuration_client_enums.ExtensionsClusterRp], cluster_resource_name: Union[str, azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._source_control_configuration_client_enums.ExtensionsClusterResourceName], cluster_name: str, source_control_configuration_name: str, **kwargs: Any) -> azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._models_py3.SourceControlConfiguration

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cluster_rp
str or ExtensionsClusterRp
Required

The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).

cluster_resource_name
str or ExtensionsClusterResourceName
Required

The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).

cluster_name
str
Required

The name of the kubernetes cluster.

source_control_configuration_name
str
Required

Name of the Source Control Configuration.

cls
callable

A custom type or function that will be passed the direct response

Returns

SourceControlConfiguration, or the result of cls(response)

Return type

Exceptions

list

List all Source Control Configurations.

list(resource_group_name: str, cluster_rp: Union[str, azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._source_control_configuration_client_enums.ExtensionsClusterRp], cluster_resource_name: Union[str, azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._source_control_configuration_client_enums.ExtensionsClusterResourceName], cluster_name: str, **kwargs: Any) -> Iterable[azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models._models_py3.SourceControlConfigurationList]

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cluster_rp
str or ExtensionsClusterRp
Required

The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).

cluster_resource_name
str or ExtensionsClusterResourceName
Required

The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).

cluster_name
str
Required

The name of the kubernetes cluster.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either SourceControlConfigurationList or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.kubernetesconfiguration.v2022_01_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\kubernetesconfiguration\\v2022_01_01_preview\\models\\__init__.py'>