generate v1.11.0 (#182)
* generate v1.11 -rc3 * add generated watcher * regenrate with 1.11.0
This commit is contained in:
committed by
Brendan Burns
parent
bc1cb6205c
commit
49bb82b15d
@@ -1,3 +1,3 @@
|
||||
export KUBERNETES_BRANCH=v1.10.0
|
||||
export KUBERNETES_BRANCH=v1.11.0
|
||||
export CLIENT_VERSION=0.0.1
|
||||
export PACKAGE_NAME=k8s
|
||||
|
||||
@@ -4158,6 +4158,72 @@ namespace k8s
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind PriorityClass
|
||||
/// </summary>
|
||||
/// <param name="name">
|
||||
/// name of the PriorityClass
|
||||
/// </param>
|
||||
/// <param name="continue">
|
||||
/// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
|
||||
/// </param>
|
||||
/// <param name="fieldSelector">
|
||||
/// A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="includeUninitialized">
|
||||
/// If true, partially initialized resources are included in the response.
|
||||
/// </param>
|
||||
/// <param name="labelSelector">
|
||||
/// A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="limit">
|
||||
/// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.
|
||||
///
|
||||
/// The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
|
||||
/// </param>
|
||||
/// <param name="pretty">
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name="resourceVersion">
|
||||
/// When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
|
||||
/// </param>
|
||||
/// <param name="timeoutSeconds">
|
||||
/// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
||||
/// </param>
|
||||
/// <param name="watch">
|
||||
/// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
|
||||
/// </param>
|
||||
/// <param name="customHeaders">
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name="onEvent">
|
||||
/// The action to invoke when the server sends a new event.
|
||||
/// </param>
|
||||
/// <param name="onError">
|
||||
/// The action to invoke when an error occurs.
|
||||
/// </param>
|
||||
/// <param name="cancellationToken">
|
||||
/// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// A <see cref="Task"/> which represents the asynchronous operation, and returns a new watcher.
|
||||
/// </returns>
|
||||
Task<Watcher<V1beta1PriorityClass>> WatchPriorityClassAsync(
|
||||
string name,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
bool? includeUninitialized = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1beta1PriorityClass> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind PodPreset
|
||||
/// </summary>
|
||||
|
||||
@@ -8449,6 +8449,23 @@ namespace k8s
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1CustomResourceDefinition>> PatchCustomResourceDefinitionWithHttpMessagesAsync(V1Patch body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// read status of the specified CustomResourceDefinition
|
||||
/// </summary>
|
||||
/// <param name='name'>
|
||||
/// name of the CustomResourceDefinition
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1CustomResourceDefinition>> ReadCustomResourceDefinitionStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// replace status of the specified CustomResourceDefinition
|
||||
/// </summary>
|
||||
@@ -8468,6 +8485,25 @@ namespace k8s
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1CustomResourceDefinition>> ReplaceCustomResourceDefinitionStatusWithHttpMessagesAsync(V1beta1CustomResourceDefinition body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// partially update status of the specified CustomResourceDefinition
|
||||
/// </summary>
|
||||
/// <param name='body'>
|
||||
/// </param>
|
||||
/// <param name='name'>
|
||||
/// name of the CustomResourceDefinition
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1CustomResourceDefinition>> PatchCustomResourceDefinitionStatusWithHttpMessagesAsync(V1Patch body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// get information of a group
|
||||
/// </summary>
|
||||
@@ -8778,6 +8814,23 @@ namespace k8s
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1APIService>> PatchAPIServiceWithHttpMessagesAsync(V1Patch body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// read status of the specified APIService
|
||||
/// </summary>
|
||||
/// <param name='name'>
|
||||
/// name of the APIService
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1APIService>> ReadAPIServiceStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// replace status of the specified APIService
|
||||
/// </summary>
|
||||
@@ -8797,6 +8850,25 @@ namespace k8s
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1APIService>> ReplaceAPIServiceStatusWithHttpMessagesAsync(V1APIService body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// partially update status of the specified APIService
|
||||
/// </summary>
|
||||
/// <param name='body'>
|
||||
/// </param>
|
||||
/// <param name='name'>
|
||||
/// name of the APIService
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1APIService>> PatchAPIServiceStatusWithHttpMessagesAsync(V1Patch body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// get available resources
|
||||
/// </summary>
|
||||
@@ -9096,6 +9168,23 @@ namespace k8s
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1APIService>> PatchAPIService1WithHttpMessagesAsync(V1Patch body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// read status of the specified APIService
|
||||
/// </summary>
|
||||
/// <param name='name'>
|
||||
/// name of the APIService
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1APIService>> ReadAPIServiceStatus1WithHttpMessagesAsync(string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// replace status of the specified APIService
|
||||
/// </summary>
|
||||
@@ -9115,6 +9204,25 @@ namespace k8s
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1APIService>> ReplaceAPIServiceStatus1WithHttpMessagesAsync(V1beta1APIService body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// partially update status of the specified APIService
|
||||
/// </summary>
|
||||
/// <param name='body'>
|
||||
/// </param>
|
||||
/// <param name='name'>
|
||||
/// name of the APIService
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1APIService>> PatchAPIServiceStatus1WithHttpMessagesAsync(V1Patch body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// get information of a group
|
||||
/// </summary>
|
||||
@@ -18347,6 +18455,23 @@ namespace k8s
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1CertificateSigningRequest>> ReplaceCertificateSigningRequestApprovalWithHttpMessagesAsync(V1beta1CertificateSigningRequest body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// read status of the specified CertificateSigningRequest
|
||||
/// </summary>
|
||||
/// <param name='name'>
|
||||
/// name of the CertificateSigningRequest
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1CertificateSigningRequest>> ReadCertificateSigningRequestStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// replace status of the specified CertificateSigningRequest
|
||||
/// </summary>
|
||||
@@ -18366,6 +18491,25 @@ namespace k8s
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1CertificateSigningRequest>> ReplaceCertificateSigningRequestStatusWithHttpMessagesAsync(V1beta1CertificateSigningRequest body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// partially update status of the specified CertificateSigningRequest
|
||||
/// </summary>
|
||||
/// <param name='body'>
|
||||
/// </param>
|
||||
/// <param name='name'>
|
||||
/// name of the CertificateSigningRequest
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1CertificateSigningRequest>> PatchCertificateSigningRequestStatusWithHttpMessagesAsync(V1Patch body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// get information of a group
|
||||
/// </summary>
|
||||
@@ -27038,6 +27182,305 @@ namespace k8s
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1alpha1PriorityClass>> PatchPriorityClassWithHttpMessagesAsync(V1Patch body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// get available resources
|
||||
/// </summary>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1APIResourceList>> GetAPIResources27WithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// list or watch objects of kind PriorityClass
|
||||
/// </summary>
|
||||
/// <param name='continueParameter'>
|
||||
/// The continue option should be set when retrieving more results from
|
||||
/// the server. Since this value is server defined, clients may only
|
||||
/// use the continue value from a previous query result with identical
|
||||
/// query parameters (except for the value of continue) and the server
|
||||
/// may reject a continue value it does not recognize. If the specified
|
||||
/// continue value is no longer valid whether due to expiration
|
||||
/// (generally five to fifteen minutes) or a configuration change on
|
||||
/// the server the server will respond with a 410 ResourceExpired error
|
||||
/// indicating the client must restart their list without the continue
|
||||
/// field. This field is not supported when watch is true. Clients may
|
||||
/// start a watch from the last resourceVersion value returned by the
|
||||
/// server and not miss any modifications.
|
||||
/// </param>
|
||||
/// <param name='fieldSelector'>
|
||||
/// A selector to restrict the list of returned objects by their
|
||||
/// fields. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name='includeUninitialized'>
|
||||
/// If true, partially initialized resources are included in the
|
||||
/// response.
|
||||
/// </param>
|
||||
/// <param name='labelSelector'>
|
||||
/// A selector to restrict the list of returned objects by their
|
||||
/// labels. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name='limit'>
|
||||
/// limit is a maximum number of responses to return for a list call.
|
||||
/// If more items exist, the server will set the `continue` field on
|
||||
/// the list metadata to a value that can be used with the same initial
|
||||
/// query to retrieve the next set of results. Setting a limit may
|
||||
/// return fewer than the requested amount of items (up to zero items)
|
||||
/// in the event all requested objects are filtered out and clients
|
||||
/// should only use the presence of the continue field to determine
|
||||
/// whether more results are available. Servers may choose not to
|
||||
/// support the limit argument and will return all of the available
|
||||
/// results. If limit is specified and the continue field is empty,
|
||||
/// clients may assume that no more results are available. This field
|
||||
/// is not supported if watch is true.
|
||||
///
|
||||
/// The server guarantees that the objects returned when using continue
|
||||
/// will be identical to issuing a single list call without a limit -
|
||||
/// that is, no objects created, modified, or deleted after the first
|
||||
/// request is issued will be included in any subsequent continued
|
||||
/// requests. This is sometimes referred to as a consistent snapshot,
|
||||
/// and ensures that a client that is using limit to receive smaller
|
||||
/// chunks of a very large result can ensure they see all possible
|
||||
/// objects. If objects are updated during a chunked list the version
|
||||
/// of the object that was present at the time the first list result
|
||||
/// was calculated is returned.
|
||||
/// </param>
|
||||
/// <param name='resourceVersion'>
|
||||
/// When specified with a watch call, shows changes that occur after
|
||||
/// that particular version of a resource. Defaults to changes from the
|
||||
/// beginning of history. When specified for list: - if unset, then the
|
||||
/// result is returned from remote storage based on quorum-read flag; -
|
||||
/// if it's 0, then we simply return what we currently have in cache,
|
||||
/// no guarantee; - if set to non zero, then the result is at least as
|
||||
/// fresh as given rv.
|
||||
/// </param>
|
||||
/// <param name='timeoutSeconds'>
|
||||
/// Timeout for the list/watch call. This limits the duration of the
|
||||
/// call, regardless of any activity or inactivity.
|
||||
/// </param>
|
||||
/// <param name='watch'>
|
||||
/// Watch for changes to the described resources and return them as a
|
||||
/// stream of add, update, and remove notifications. Specify
|
||||
/// resourceVersion.
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1PriorityClassList>> ListPriorityClass1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// create a PriorityClass
|
||||
/// </summary>
|
||||
/// <param name='body'>
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1PriorityClass>> CreatePriorityClass1WithHttpMessagesAsync(V1beta1PriorityClass body, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// delete collection of PriorityClass
|
||||
/// </summary>
|
||||
/// <param name='continueParameter'>
|
||||
/// The continue option should be set when retrieving more results from
|
||||
/// the server. Since this value is server defined, clients may only
|
||||
/// use the continue value from a previous query result with identical
|
||||
/// query parameters (except for the value of continue) and the server
|
||||
/// may reject a continue value it does not recognize. If the specified
|
||||
/// continue value is no longer valid whether due to expiration
|
||||
/// (generally five to fifteen minutes) or a configuration change on
|
||||
/// the server the server will respond with a 410 ResourceExpired error
|
||||
/// indicating the client must restart their list without the continue
|
||||
/// field. This field is not supported when watch is true. Clients may
|
||||
/// start a watch from the last resourceVersion value returned by the
|
||||
/// server and not miss any modifications.
|
||||
/// </param>
|
||||
/// <param name='fieldSelector'>
|
||||
/// A selector to restrict the list of returned objects by their
|
||||
/// fields. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name='includeUninitialized'>
|
||||
/// If true, partially initialized resources are included in the
|
||||
/// response.
|
||||
/// </param>
|
||||
/// <param name='labelSelector'>
|
||||
/// A selector to restrict the list of returned objects by their
|
||||
/// labels. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name='limit'>
|
||||
/// limit is a maximum number of responses to return for a list call.
|
||||
/// If more items exist, the server will set the `continue` field on
|
||||
/// the list metadata to a value that can be used with the same initial
|
||||
/// query to retrieve the next set of results. Setting a limit may
|
||||
/// return fewer than the requested amount of items (up to zero items)
|
||||
/// in the event all requested objects are filtered out and clients
|
||||
/// should only use the presence of the continue field to determine
|
||||
/// whether more results are available. Servers may choose not to
|
||||
/// support the limit argument and will return all of the available
|
||||
/// results. If limit is specified and the continue field is empty,
|
||||
/// clients may assume that no more results are available. This field
|
||||
/// is not supported if watch is true.
|
||||
///
|
||||
/// The server guarantees that the objects returned when using continue
|
||||
/// will be identical to issuing a single list call without a limit -
|
||||
/// that is, no objects created, modified, or deleted after the first
|
||||
/// request is issued will be included in any subsequent continued
|
||||
/// requests. This is sometimes referred to as a consistent snapshot,
|
||||
/// and ensures that a client that is using limit to receive smaller
|
||||
/// chunks of a very large result can ensure they see all possible
|
||||
/// objects. If objects are updated during a chunked list the version
|
||||
/// of the object that was present at the time the first list result
|
||||
/// was calculated is returned.
|
||||
/// </param>
|
||||
/// <param name='resourceVersion'>
|
||||
/// When specified with a watch call, shows changes that occur after
|
||||
/// that particular version of a resource. Defaults to changes from the
|
||||
/// beginning of history. When specified for list: - if unset, then the
|
||||
/// result is returned from remote storage based on quorum-read flag; -
|
||||
/// if it's 0, then we simply return what we currently have in cache,
|
||||
/// no guarantee; - if set to non zero, then the result is at least as
|
||||
/// fresh as given rv.
|
||||
/// </param>
|
||||
/// <param name='timeoutSeconds'>
|
||||
/// Timeout for the list/watch call. This limits the duration of the
|
||||
/// call, regardless of any activity or inactivity.
|
||||
/// </param>
|
||||
/// <param name='watch'>
|
||||
/// Watch for changes to the described resources and return them as a
|
||||
/// stream of add, update, and remove notifications. Specify
|
||||
/// resourceVersion.
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1Status>> DeleteCollectionPriorityClass1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// read the specified PriorityClass
|
||||
/// </summary>
|
||||
/// <param name='name'>
|
||||
/// name of the PriorityClass
|
||||
/// </param>
|
||||
/// <param name='exact'>
|
||||
/// Should the export be exact. Exact export maintains
|
||||
/// cluster-specific fields like 'Namespace'.
|
||||
/// </param>
|
||||
/// <param name='export'>
|
||||
/// Should this value be exported. Export strips fields that a user
|
||||
/// can not specify.
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1PriorityClass>> ReadPriorityClass1WithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// replace the specified PriorityClass
|
||||
/// </summary>
|
||||
/// <param name='body'>
|
||||
/// </param>
|
||||
/// <param name='name'>
|
||||
/// name of the PriorityClass
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1PriorityClass>> ReplacePriorityClass1WithHttpMessagesAsync(V1beta1PriorityClass body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// delete a PriorityClass
|
||||
/// </summary>
|
||||
/// <param name='body'>
|
||||
/// </param>
|
||||
/// <param name='name'>
|
||||
/// name of the PriorityClass
|
||||
/// </param>
|
||||
/// <param name='gracePeriodSeconds'>
|
||||
/// The duration in seconds before the object should be deleted. Value
|
||||
/// must be non-negative integer. The value zero indicates delete
|
||||
/// immediately. If this value is nil, the default grace period for the
|
||||
/// specified type will be used. Defaults to a per object value if not
|
||||
/// specified. zero means delete immediately.
|
||||
/// </param>
|
||||
/// <param name='orphanDependents'>
|
||||
/// Deprecated: please use the PropagationPolicy, this field will be
|
||||
/// deprecated in 1.7. Should the dependent objects be orphaned. If
|
||||
/// true/false, the "orphan" finalizer will be added to/removed from
|
||||
/// the object's finalizers list. Either this field or
|
||||
/// PropagationPolicy may be set, but not both.
|
||||
/// </param>
|
||||
/// <param name='propagationPolicy'>
|
||||
/// Whether and how garbage collection will be performed. Either this
|
||||
/// field or OrphanDependents may be set, but not both. The default
|
||||
/// policy is decided by the existing finalizer set in the
|
||||
/// metadata.finalizers and the resource-specific default policy.
|
||||
/// Acceptable values are: 'Orphan' - orphan the dependents;
|
||||
/// 'Background' - allow the garbage collector to delete the dependents
|
||||
/// in the background; 'Foreground' - a cascading policy that deletes
|
||||
/// all dependents in the foreground.
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1Status>> DeletePriorityClass1WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// partially update the specified PriorityClass
|
||||
/// </summary>
|
||||
/// <param name='body'>
|
||||
/// </param>
|
||||
/// <param name='name'>
|
||||
/// name of the PriorityClass
|
||||
/// </param>
|
||||
/// <param name='pretty'>
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name='customHeaders'>
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1beta1PriorityClass>> PatchPriorityClass1WithHttpMessagesAsync(V1Patch body, string name, string pretty = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// get information of a group
|
||||
/// </summary>
|
||||
@@ -27058,7 +27501,7 @@ namespace k8s
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1APIResourceList>> GetAPIResources27WithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
Task<HttpOperationResponse<V1APIResourceList>> GetAPIResources28WithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// list or watch objects of kind PodPreset
|
||||
@@ -27472,7 +27915,7 @@ namespace k8s
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1APIResourceList>> GetAPIResources28WithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
Task<HttpOperationResponse<V1APIResourceList>> GetAPIResources29WithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// list or watch objects of kind StorageClass
|
||||
@@ -27771,7 +28214,7 @@ namespace k8s
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1APIResourceList>> GetAPIResources29WithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
Task<HttpOperationResponse<V1APIResourceList>> GetAPIResources30WithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// list or watch objects of kind VolumeAttachment
|
||||
@@ -28070,7 +28513,7 @@ namespace k8s
|
||||
/// <param name='cancellationToken'>
|
||||
/// The cancellation token.
|
||||
/// </param>
|
||||
Task<HttpOperationResponse<V1APIResourceList>> GetAPIResources30WithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
Task<HttpOperationResponse<V1APIResourceList>> GetAPIResources31WithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// list or watch objects of kind StorageClass
|
||||
|
||||
@@ -1302,6 +1302,27 @@ namespace k8s
|
||||
return WatchObjectAsync<V1alpha1PriorityClass>(path: path, @continue: @continue, fieldSelector: fieldSelector, includeUninitialized: includeUninitialized, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc>
|
||||
public Task<Watcher<V1beta1PriorityClass>> WatchPriorityClassAsync(
|
||||
string name,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
bool? includeUninitialized = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1beta1PriorityClass> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/scheduling.k8s.io/v1beta1/watch/priorityclasses/{name}";
|
||||
return WatchObjectAsync<V1beta1PriorityClass>(path: path, @continue: @continue, fieldSelector: fieldSelector, includeUninitialized: includeUninitialized, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc>
|
||||
public Task<Watcher<V1alpha1PodPreset>> WatchNamespacedPodPresetAsync(
|
||||
string name,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -476,13 +476,6 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "";
|
||||
}
|
||||
|
||||
public partial class V1NodeConfigSource : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "NodeConfigSource";
|
||||
public const string KubeGroup = "";
|
||||
}
|
||||
|
||||
public partial class V1NodeList : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
@@ -903,6 +896,20 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "scheduling.k8s.io";
|
||||
}
|
||||
|
||||
public partial class V1beta1PriorityClass : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "PriorityClass";
|
||||
public const string KubeGroup = "scheduling.k8s.io";
|
||||
}
|
||||
|
||||
public partial class V1beta1PriorityClassList : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "PriorityClassList";
|
||||
public const string KubeGroup = "scheduling.k8s.io";
|
||||
}
|
||||
|
||||
public partial class V1alpha1PodPreset : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
@@ -973,6 +980,20 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "storage.k8s.io";
|
||||
}
|
||||
|
||||
public partial class V1beta1CustomResourceDefinition : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "CustomResourceDefinition";
|
||||
public const string KubeGroup = "apiextensions.k8s.io";
|
||||
}
|
||||
|
||||
public partial class V1beta1CustomResourceDefinitionList : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "CustomResourceDefinitionList";
|
||||
public const string KubeGroup = "apiextensions.k8s.io";
|
||||
}
|
||||
|
||||
public partial class V1APIGroup : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
@@ -1015,4 +1036,32 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "";
|
||||
}
|
||||
|
||||
public partial class V1APIService : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "APIService";
|
||||
public const string KubeGroup = "apiregistration.k8s.io";
|
||||
}
|
||||
|
||||
public partial class V1APIServiceList : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "APIServiceList";
|
||||
public const string KubeGroup = "apiregistration.k8s.io";
|
||||
}
|
||||
|
||||
public partial class V1beta1APIService : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "APIService";
|
||||
public const string KubeGroup = "apiregistration.k8s.io";
|
||||
}
|
||||
|
||||
public partial class V1beta1APIServiceList : IKubernetesObject
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "APIServiceList";
|
||||
public const string KubeGroup = "apiregistration.k8s.io";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -32,10 +32,10 @@ namespace k8s.Models
|
||||
/// absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
|
||||
/// This can not be 0 if MaxUnavailable is 0. Absolute number is
|
||||
/// calculated from percentage by rounding up. Defaults to 25%.
|
||||
/// Example: when this is set to 30%, the new RC can be scaled up
|
||||
/// immediately when the rolling update starts, such that the total
|
||||
/// Example: when this is set to 30%, the new ReplicaSet can be scaled
|
||||
/// up immediately when the rolling update starts, such that the total
|
||||
/// number of old and new pods do not exceed 130% of desired pods. Once
|
||||
/// old pods have been killed, new RC can be scaled up further,
|
||||
/// old pods have been killed, new ReplicaSet can be scaled up further,
|
||||
/// ensuring that total number of pods running at any time during the
|
||||
/// update is atmost 130% of desired pods.</param>
|
||||
/// <param name="maxUnavailable">The maximum number of pods that can be
|
||||
@@ -43,11 +43,12 @@ namespace k8s.Models
|
||||
/// 5) or a percentage of desired pods (ex: 10%). Absolute number is
|
||||
/// calculated from percentage by rounding down. This can not be 0 if
|
||||
/// MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%,
|
||||
/// the old RC can be scaled down to 70% of desired pods immediately
|
||||
/// when the rolling update starts. Once new pods are ready, old RC can
|
||||
/// be scaled down further, followed by scaling up the new RC, ensuring
|
||||
/// that the total number of pods available at all times during the
|
||||
/// update is at least 70% of desired pods.</param>
|
||||
/// the old ReplicaSet can be scaled down to 70% of desired pods
|
||||
/// immediately when the rolling update starts. Once new pods are
|
||||
/// ready, old ReplicaSet can be scaled down further, followed by
|
||||
/// scaling up the new ReplicaSet, ensuring that the total number of
|
||||
/// pods available at all times during the update is at least 70% of
|
||||
/// desired pods.</param>
|
||||
public Appsv1beta1RollingUpdateDeployment(IntstrIntOrString maxSurge = default(IntstrIntOrString), IntstrIntOrString maxUnavailable = default(IntstrIntOrString))
|
||||
{
|
||||
MaxSurge = maxSurge;
|
||||
@@ -66,12 +67,12 @@ namespace k8s.Models
|
||||
/// or a percentage of desired pods (ex: 10%). This can not be 0 if
|
||||
/// MaxUnavailable is 0. Absolute number is calculated from percentage
|
||||
/// by rounding up. Defaults to 25%. Example: when this is set to 30%,
|
||||
/// the new RC can be scaled up immediately when the rolling update
|
||||
/// starts, such that the total number of old and new pods do not
|
||||
/// exceed 130% of desired pods. Once old pods have been killed, new RC
|
||||
/// can be scaled up further, ensuring that total number of pods
|
||||
/// running at any time during the update is atmost 130% of desired
|
||||
/// pods.
|
||||
/// the new ReplicaSet can be scaled up immediately when the rolling
|
||||
/// update starts, such that the total number of old and new pods do
|
||||
/// not exceed 130% of desired pods. Once old pods have been killed,
|
||||
/// new ReplicaSet can be scaled up further, ensuring that total number
|
||||
/// of pods running at any time during the update is atmost 130% of
|
||||
/// desired pods.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maxSurge")]
|
||||
public IntstrIntOrString MaxSurge { get; set; }
|
||||
@@ -81,12 +82,12 @@ namespace k8s.Models
|
||||
/// during the update. Value can be an absolute number (ex: 5) or a
|
||||
/// percentage of desired pods (ex: 10%). Absolute number is calculated
|
||||
/// from percentage by rounding down. This can not be 0 if MaxSurge is
|
||||
/// 0. Defaults to 25%. Example: when this is set to 30%, the old RC
|
||||
/// can be scaled down to 70% of desired pods immediately when the
|
||||
/// rolling update starts. Once new pods are ready, old RC can be
|
||||
/// scaled down further, followed by scaling up the new RC, ensuring
|
||||
/// that the total number of pods available at all times during the
|
||||
/// update is at least 70% of desired pods.
|
||||
/// 0. Defaults to 25%. Example: when this is set to 30%, the old
|
||||
/// ReplicaSet can be scaled down to 70% of desired pods immediately
|
||||
/// when the rolling update starts. Once new pods are ready, old
|
||||
/// ReplicaSet can be scaled down further, followed by scaling up the
|
||||
/// new ReplicaSet, ensuring that the total number of pods available at
|
||||
/// all times during the update is at least 70% of desired pods.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maxUnavailable")]
|
||||
public IntstrIntOrString MaxUnavailable { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// AllowedFlexVolume represents a single Flexvolume that is allowed to be
|
||||
/// used.
|
||||
/// used. Deprecated: use AllowedFlexVolume from policy API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1AllowedFlexVolume
|
||||
{
|
||||
@@ -29,7 +29,7 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Extensionsv1beta1AllowedFlexVolume class.
|
||||
/// </summary>
|
||||
/// <param name="driver">Driver is the name of the Flexvolume
|
||||
/// <param name="driver">driver is the name of the Flexvolume
|
||||
/// driver.</param>
|
||||
public Extensionsv1beta1AllowedFlexVolume(string driver)
|
||||
{
|
||||
|
||||
@@ -10,8 +10,9 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// defines the host volume conditions that will be enabled by a policy for
|
||||
/// pods to use. It requires the path prefix to be defined.
|
||||
/// AllowedHostPath defines the host volume conditions that will be enabled
|
||||
/// by a policy for pods to use. It requires the path prefix to be defined.
|
||||
/// Deprecated: use AllowedHostPath from policy API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1AllowedHostPath
|
||||
{
|
||||
@@ -28,15 +29,19 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the Extensionsv1beta1AllowedHostPath
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="pathPrefix">is the path prefix that the host volume
|
||||
/// must match. It does not support `*`. Trailing slashes are trimmed
|
||||
/// when validating the path prefix with a host path.
|
||||
/// <param name="pathPrefix">pathPrefix is the path prefix that the
|
||||
/// host volume must match. It does not support `*`. Trailing slashes
|
||||
/// are trimmed when validating the path prefix with a host path.
|
||||
///
|
||||
/// Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo`
|
||||
/// would not allow `/food` or `/etc/foo`</param>
|
||||
public Extensionsv1beta1AllowedHostPath(string pathPrefix = default(string))
|
||||
/// <param name="readOnlyProperty">when set to true, will allow host
|
||||
/// volumes matching the pathPrefix only if all volume mounts are
|
||||
/// readOnly.</param>
|
||||
public Extensionsv1beta1AllowedHostPath(string pathPrefix = default(string), bool? readOnlyProperty = default(bool?))
|
||||
{
|
||||
PathPrefix = pathPrefix;
|
||||
ReadOnlyProperty = readOnlyProperty;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -46,9 +51,9 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets is the path prefix that the host volume must match. It
|
||||
/// does not support `*`. Trailing slashes are trimmed when validating
|
||||
/// the path prefix with a host path.
|
||||
/// Gets or sets pathPrefix is the path prefix that the host volume
|
||||
/// must match. It does not support `*`. Trailing slashes are trimmed
|
||||
/// when validating the path prefix with a host path.
|
||||
///
|
||||
/// Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo`
|
||||
/// would not allow `/food` or `/etc/foo`
|
||||
@@ -56,5 +61,12 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "pathPrefix")]
|
||||
public string PathPrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets when set to true, will allow host volumes matching the
|
||||
/// pathPrefix only if all volume mounts are readOnly.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "readOnly")]
|
||||
public bool? ReadOnlyProperty { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,8 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// FSGroupStrategyOptions defines the strategy type and options used to
|
||||
/// create the strategy.
|
||||
/// create the strategy. Deprecated: use FSGroupStrategyOptions from policy
|
||||
/// API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1FSGroupStrategyOptions
|
||||
{
|
||||
@@ -30,10 +31,10 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Extensionsv1beta1FSGroupStrategyOptions class.
|
||||
/// </summary>
|
||||
/// <param name="ranges">Ranges are the allowed ranges of fs groups.
|
||||
/// <param name="ranges">ranges are the allowed ranges of fs groups.
|
||||
/// If you would like to force a single fs group then supply a single
|
||||
/// range with the same start and end.</param>
|
||||
/// <param name="rule">Rule is the strategy that will dictate what
|
||||
/// range with the same start and end. Required for MustRunAs.</param>
|
||||
/// <param name="rule">rule is the strategy that will dictate what
|
||||
/// FSGroup is used in the SecurityContext.</param>
|
||||
public Extensionsv1beta1FSGroupStrategyOptions(IList<Extensionsv1beta1IDRange> ranges = default(IList<Extensionsv1beta1IDRange>), string rule = default(string))
|
||||
{
|
||||
@@ -50,7 +51,7 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Gets or sets ranges are the allowed ranges of fs groups. If you
|
||||
/// would like to force a single fs group then supply a single range
|
||||
/// with the same start and end.
|
||||
/// with the same start and end. Required for MustRunAs.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ranges")]
|
||||
public IList<Extensionsv1beta1IDRange> Ranges { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// HostPortRange defines a range of host ports that will be enabled by a
|
||||
/// policy for pods to use. It requires both the start and end to be
|
||||
/// defined.
|
||||
/// defined. Deprecated: use HostPortRange from policy API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1HostPortRange
|
||||
{
|
||||
|
||||
@@ -10,7 +10,8 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// ID Range provides a min/max of an allowed range of IDs.
|
||||
/// IDRange provides a min/max of an allowed range of IDs. Deprecated: use
|
||||
/// IDRange from policy API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1IDRange
|
||||
{
|
||||
@@ -25,8 +26,8 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Extensionsv1beta1IDRange class.
|
||||
/// </summary>
|
||||
/// <param name="max">Max is the end of the range, inclusive.</param>
|
||||
/// <param name="min">Min is the start of the range, inclusive.</param>
|
||||
/// <param name="max">max is the end of the range, inclusive.</param>
|
||||
/// <param name="min">min is the start of the range, inclusive.</param>
|
||||
public Extensionsv1beta1IDRange(long max, long min)
|
||||
{
|
||||
Max = max;
|
||||
|
||||
@@ -10,8 +10,9 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Pod Security Policy governs the ability to make requests that affect
|
||||
/// the Security Context that will be applied to a pod and container.
|
||||
/// PodSecurityPolicy governs the ability to make requests that affect the
|
||||
/// Security Context that will be applied to a pod and container.
|
||||
/// Deprecated: use PodSecurityPolicy from policy API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1PodSecurityPolicy
|
||||
{
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// PodSecurityPolicyList is a list of PodSecurityPolicy objects.
|
||||
/// Deprecated: use PodSecurityPolicyList from policy API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1PodSecurityPolicyList
|
||||
{
|
||||
@@ -30,7 +31,7 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Extensionsv1beta1PodSecurityPolicyList class.
|
||||
/// </summary>
|
||||
/// <param name="items">Items is a list of schema objects.</param>
|
||||
/// <param name="items">items is a list of schema objects.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
|
||||
@@ -13,7 +13,8 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Pod Security Policy Spec defines the policy enforced.
|
||||
/// PodSecurityPolicySpec defines the policy enforced. Deprecated: use
|
||||
/// PodSecurityPolicySpec from policy API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1PodSecurityPolicySpec
|
||||
{
|
||||
@@ -30,40 +31,58 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Extensionsv1beta1PodSecurityPolicySpec class.
|
||||
/// </summary>
|
||||
/// <param name="fsGroup">FSGroup is the strategy that will dictate
|
||||
/// <param name="fsGroup">fsGroup is the strategy that will dictate
|
||||
/// what fs group is used by the SecurityContext.</param>
|
||||
/// <param name="runAsUser">runAsUser is the strategy that will dictate
|
||||
/// the allowable RunAsUser values that may be set.</param>
|
||||
/// <param name="seLinux">seLinux is the strategy that will dictate the
|
||||
/// allowable labels that may be set.</param>
|
||||
/// <param name="supplementalGroups">SupplementalGroups is the strategy
|
||||
/// <param name="supplementalGroups">supplementalGroups is the strategy
|
||||
/// that will dictate what supplemental groups are used by the
|
||||
/// SecurityContext.</param>
|
||||
/// <param name="allowPrivilegeEscalation">AllowPrivilegeEscalation
|
||||
/// <param name="allowPrivilegeEscalation">allowPrivilegeEscalation
|
||||
/// determines if a pod can request to allow privilege escalation. If
|
||||
/// unspecified, defaults to true.</param>
|
||||
/// <param name="allowedCapabilities">AllowedCapabilities is a list of
|
||||
/// <param name="allowedCapabilities">allowedCapabilities is a list of
|
||||
/// capabilities that can be requested to add to the container.
|
||||
/// Capabilities in this field may be added at the pod author's
|
||||
/// discretion. You must not list a capability in both
|
||||
/// AllowedCapabilities and RequiredDropCapabilities.</param>
|
||||
/// <param name="allowedFlexVolumes">AllowedFlexVolumes is a whitelist
|
||||
/// allowedCapabilities and requiredDropCapabilities.</param>
|
||||
/// <param name="allowedFlexVolumes">allowedFlexVolumes is a whitelist
|
||||
/// of allowed Flexvolumes. Empty or nil indicates that all
|
||||
/// Flexvolumes may be used. This parameter is effective only when the
|
||||
/// usage of the Flexvolumes is allowed in the "Volumes" field.</param>
|
||||
/// <param name="allowedHostPaths">is a white list of allowed host
|
||||
/// paths. Empty indicates that all host paths may be used.</param>
|
||||
/// <param name="defaultAddCapabilities">DefaultAddCapabilities is the
|
||||
/// usage of the Flexvolumes is allowed in the "volumes" field.</param>
|
||||
/// <param name="allowedHostPaths">allowedHostPaths is a white list of
|
||||
/// allowed host paths. Empty indicates that all host paths may be
|
||||
/// used.</param>
|
||||
/// <param name="allowedUnsafeSysctls">allowedUnsafeSysctls is a list
|
||||
/// of explicitly allowed unsafe sysctls, defaults to none. Each entry
|
||||
/// is either a plain sysctl name or ends in "*" in which case it is
|
||||
/// considered as a prefix of allowed sysctls. Single * means all
|
||||
/// unsafe sysctls are allowed. Kubelet has to whitelist all allowed
|
||||
/// unsafe sysctls explicitly to avoid rejection.
|
||||
///
|
||||
/// Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g.
|
||||
/// "foo.*" allows "foo.bar", "foo.baz", etc.</param>
|
||||
/// <param name="defaultAddCapabilities">defaultAddCapabilities is the
|
||||
/// default set of capabilities that will be added to the container
|
||||
/// unless the pod spec specifically drops the capability. You may not
|
||||
/// list a capability in both DefaultAddCapabilities and
|
||||
/// RequiredDropCapabilities. Capabilities added here are implicitly
|
||||
/// allowed, and need not be included in the AllowedCapabilities
|
||||
/// list a capability in both defaultAddCapabilities and
|
||||
/// requiredDropCapabilities. Capabilities added here are implicitly
|
||||
/// allowed, and need not be included in the allowedCapabilities
|
||||
/// list.</param>
|
||||
/// <param
|
||||
/// name="defaultAllowPrivilegeEscalation">DefaultAllowPrivilegeEscalation
|
||||
/// name="defaultAllowPrivilegeEscalation">defaultAllowPrivilegeEscalation
|
||||
/// controls the default setting for whether a process can gain more
|
||||
/// privileges than its parent process.</param>
|
||||
/// <param name="forbiddenSysctls">forbiddenSysctls is a list of
|
||||
/// explicitly forbidden sysctls, defaults to none. Each entry is
|
||||
/// either a plain sysctl name or ends in "*" in which case it is
|
||||
/// considered as a prefix of forbidden sysctls. Single * means all
|
||||
/// sysctls are forbidden.
|
||||
///
|
||||
/// Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g.
|
||||
/// "foo.*" forbids "foo.bar", "foo.baz", etc.</param>
|
||||
/// <param name="hostIPC">hostIPC determines if the policy allows the
|
||||
/// use of HostIPC in the pod spec.</param>
|
||||
/// <param name="hostNetwork">hostNetwork determines if the policy
|
||||
@@ -74,25 +93,28 @@ namespace k8s.Models
|
||||
/// are allowed to be exposed.</param>
|
||||
/// <param name="privileged">privileged determines if a pod can request
|
||||
/// to be run as privileged.</param>
|
||||
/// <param name="readOnlyRootFilesystem">ReadOnlyRootFilesystem when
|
||||
/// <param name="readOnlyRootFilesystem">readOnlyRootFilesystem when
|
||||
/// set to true will force containers to run with a read only root file
|
||||
/// system. If the container specifically requests to run with a
|
||||
/// non-read only root file system the PSP should deny the pod. If set
|
||||
/// to false the container may run with a read only root file system if
|
||||
/// it wishes but it will not be forced to.</param>
|
||||
/// <param name="requiredDropCapabilities">RequiredDropCapabilities are
|
||||
/// <param name="requiredDropCapabilities">requiredDropCapabilities are
|
||||
/// the capabilities that will be dropped from the container. These
|
||||
/// are required to be dropped and cannot be added.</param>
|
||||
/// <param name="volumes">volumes is a white list of allowed volume
|
||||
/// plugins. Empty indicates that all plugins may be used.</param>
|
||||
public Extensionsv1beta1PodSecurityPolicySpec(Extensionsv1beta1FSGroupStrategyOptions fsGroup, Extensionsv1beta1RunAsUserStrategyOptions runAsUser, Extensionsv1beta1SELinuxStrategyOptions seLinux, Extensionsv1beta1SupplementalGroupsStrategyOptions supplementalGroups, bool? allowPrivilegeEscalation = default(bool?), IList<string> allowedCapabilities = default(IList<string>), IList<Extensionsv1beta1AllowedFlexVolume> allowedFlexVolumes = default(IList<Extensionsv1beta1AllowedFlexVolume>), IList<Extensionsv1beta1AllowedHostPath> allowedHostPaths = default(IList<Extensionsv1beta1AllowedHostPath>), IList<string> defaultAddCapabilities = default(IList<string>), bool? defaultAllowPrivilegeEscalation = default(bool?), bool? hostIPC = default(bool?), bool? hostNetwork = default(bool?), bool? hostPID = default(bool?), IList<Extensionsv1beta1HostPortRange> hostPorts = default(IList<Extensionsv1beta1HostPortRange>), bool? privileged = default(bool?), bool? readOnlyRootFilesystem = default(bool?), IList<string> requiredDropCapabilities = default(IList<string>), IList<string> volumes = default(IList<string>))
|
||||
/// plugins. Empty indicates that no volumes may be used. To allow all
|
||||
/// volumes you may use '*'.</param>
|
||||
public Extensionsv1beta1PodSecurityPolicySpec(Extensionsv1beta1FSGroupStrategyOptions fsGroup, Extensionsv1beta1RunAsUserStrategyOptions runAsUser, Extensionsv1beta1SELinuxStrategyOptions seLinux, Extensionsv1beta1SupplementalGroupsStrategyOptions supplementalGroups, bool? allowPrivilegeEscalation = default(bool?), IList<string> allowedCapabilities = default(IList<string>), IList<Extensionsv1beta1AllowedFlexVolume> allowedFlexVolumes = default(IList<Extensionsv1beta1AllowedFlexVolume>), IList<Extensionsv1beta1AllowedHostPath> allowedHostPaths = default(IList<Extensionsv1beta1AllowedHostPath>), IList<string> allowedUnsafeSysctls = default(IList<string>), IList<string> defaultAddCapabilities = default(IList<string>), bool? defaultAllowPrivilegeEscalation = default(bool?), IList<string> forbiddenSysctls = default(IList<string>), bool? hostIPC = default(bool?), bool? hostNetwork = default(bool?), bool? hostPID = default(bool?), IList<Extensionsv1beta1HostPortRange> hostPorts = default(IList<Extensionsv1beta1HostPortRange>), bool? privileged = default(bool?), bool? readOnlyRootFilesystem = default(bool?), IList<string> requiredDropCapabilities = default(IList<string>), IList<string> volumes = default(IList<string>))
|
||||
{
|
||||
AllowPrivilegeEscalation = allowPrivilegeEscalation;
|
||||
AllowedCapabilities = allowedCapabilities;
|
||||
AllowedFlexVolumes = allowedFlexVolumes;
|
||||
AllowedHostPaths = allowedHostPaths;
|
||||
AllowedUnsafeSysctls = allowedUnsafeSysctls;
|
||||
DefaultAddCapabilities = defaultAddCapabilities;
|
||||
DefaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation;
|
||||
ForbiddenSysctls = forbiddenSysctls;
|
||||
FsGroup = fsGroup;
|
||||
HostIPC = hostIPC;
|
||||
HostNetwork = hostNetwork;
|
||||
@@ -125,8 +147,8 @@ namespace k8s.Models
|
||||
/// Gets or sets allowedCapabilities is a list of capabilities that can
|
||||
/// be requested to add to the container. Capabilities in this field
|
||||
/// may be added at the pod author's discretion. You must not list a
|
||||
/// capability in both AllowedCapabilities and
|
||||
/// RequiredDropCapabilities.
|
||||
/// capability in both allowedCapabilities and
|
||||
/// requiredDropCapabilities.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allowedCapabilities")]
|
||||
public IList<string> AllowedCapabilities { get; set; }
|
||||
@@ -135,25 +157,39 @@ namespace k8s.Models
|
||||
/// Gets or sets allowedFlexVolumes is a whitelist of allowed
|
||||
/// Flexvolumes. Empty or nil indicates that all Flexvolumes may be
|
||||
/// used. This parameter is effective only when the usage of the
|
||||
/// Flexvolumes is allowed in the "Volumes" field.
|
||||
/// Flexvolumes is allowed in the "volumes" field.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allowedFlexVolumes")]
|
||||
public IList<Extensionsv1beta1AllowedFlexVolume> AllowedFlexVolumes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets is a white list of allowed host paths. Empty indicates
|
||||
/// that all host paths may be used.
|
||||
/// Gets or sets allowedHostPaths is a white list of allowed host
|
||||
/// paths. Empty indicates that all host paths may be used.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allowedHostPaths")]
|
||||
public IList<Extensionsv1beta1AllowedHostPath> AllowedHostPaths { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets allowedUnsafeSysctls is a list of explicitly allowed
|
||||
/// unsafe sysctls, defaults to none. Each entry is either a plain
|
||||
/// sysctl name or ends in "*" in which case it is considered as a
|
||||
/// prefix of allowed sysctls. Single * means all unsafe sysctls are
|
||||
/// allowed. Kubelet has to whitelist all allowed unsafe sysctls
|
||||
/// explicitly to avoid rejection.
|
||||
///
|
||||
/// Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g.
|
||||
/// "foo.*" allows "foo.bar", "foo.baz", etc.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allowedUnsafeSysctls")]
|
||||
public IList<string> AllowedUnsafeSysctls { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets defaultAddCapabilities is the default set of
|
||||
/// capabilities that will be added to the container unless the pod
|
||||
/// spec specifically drops the capability. You may not list a
|
||||
/// capability in both DefaultAddCapabilities and
|
||||
/// RequiredDropCapabilities. Capabilities added here are implicitly
|
||||
/// allowed, and need not be included in the AllowedCapabilities list.
|
||||
/// capability in both defaultAddCapabilities and
|
||||
/// requiredDropCapabilities. Capabilities added here are implicitly
|
||||
/// allowed, and need not be included in the allowedCapabilities list.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "defaultAddCapabilities")]
|
||||
public IList<string> DefaultAddCapabilities { get; set; }
|
||||
@@ -167,7 +203,19 @@ namespace k8s.Models
|
||||
public bool? DefaultAllowPrivilegeEscalation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets fSGroup is the strategy that will dictate what fs
|
||||
/// Gets or sets forbiddenSysctls is a list of explicitly forbidden
|
||||
/// sysctls, defaults to none. Each entry is either a plain sysctl name
|
||||
/// or ends in "*" in which case it is considered as a prefix of
|
||||
/// forbidden sysctls. Single * means all sysctls are forbidden.
|
||||
///
|
||||
/// Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g.
|
||||
/// "foo.*" forbids "foo.bar", "foo.baz", etc.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "forbiddenSysctls")]
|
||||
public IList<string> ForbiddenSysctls { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets fsGroup is the strategy that will dictate what fs
|
||||
/// group is used by the SecurityContext.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "fsGroup")]
|
||||
@@ -250,7 +298,8 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets volumes is a white list of allowed volume plugins.
|
||||
/// Empty indicates that all plugins may be used.
|
||||
/// Empty indicates that no volumes may be used. To allow all volumes
|
||||
/// you may use '*'.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "volumes")]
|
||||
public IList<string> Volumes { get; set; }
|
||||
|
||||
@@ -13,8 +13,9 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Run A sUser Strategy Options defines the strategy type and any options
|
||||
/// used to create the strategy.
|
||||
/// RunAsUserStrategyOptions defines the strategy type and any options used
|
||||
/// to create the strategy. Deprecated: use RunAsUserStrategyOptions from
|
||||
/// policy API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1RunAsUserStrategyOptions
|
||||
{
|
||||
@@ -31,10 +32,12 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Extensionsv1beta1RunAsUserStrategyOptions class.
|
||||
/// </summary>
|
||||
/// <param name="rule">Rule is the strategy that will dictate the
|
||||
/// <param name="rule">rule is the strategy that will dictate the
|
||||
/// allowable RunAsUser values that may be set.</param>
|
||||
/// <param name="ranges">Ranges are the allowed ranges of uids that may
|
||||
/// be used.</param>
|
||||
/// <param name="ranges">ranges are the allowed ranges of uids that may
|
||||
/// be used. If you would like to force a single uid then supply a
|
||||
/// single range with the same start and end. Required for
|
||||
/// MustRunAs.</param>
|
||||
public Extensionsv1beta1RunAsUserStrategyOptions(string rule, IList<Extensionsv1beta1IDRange> ranges = default(IList<Extensionsv1beta1IDRange>))
|
||||
{
|
||||
Ranges = ranges;
|
||||
@@ -49,7 +52,8 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets ranges are the allowed ranges of uids that may be
|
||||
/// used.
|
||||
/// used. If you would like to force a single uid then supply a single
|
||||
/// range with the same start and end. Required for MustRunAs.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ranges")]
|
||||
public IList<Extensionsv1beta1IDRange> Ranges { get; set; }
|
||||
|
||||
@@ -11,8 +11,9 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// SELinux Strategy Options defines the strategy type and any options
|
||||
/// used to create the strategy.
|
||||
/// SELinuxStrategyOptions defines the strategy type and any options used
|
||||
/// to create the strategy. Deprecated: use SELinuxStrategyOptions from
|
||||
/// policy API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1SELinuxStrategyOptions
|
||||
{
|
||||
@@ -29,7 +30,7 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Extensionsv1beta1SELinuxStrategyOptions class.
|
||||
/// </summary>
|
||||
/// <param name="rule">type is the strategy that will dictate the
|
||||
/// <param name="rule">rule is the strategy that will dictate the
|
||||
/// allowable labels that may be set.</param>
|
||||
/// <param name="seLinuxOptions">seLinuxOptions required to run as;
|
||||
/// required for MustRunAs More info:
|
||||
@@ -47,7 +48,7 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type is the strategy that will dictate the allowable
|
||||
/// Gets or sets rule is the strategy that will dictate the allowable
|
||||
/// labels that may be set.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "rule")]
|
||||
|
||||
@@ -13,7 +13,8 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// SupplementalGroupsStrategyOptions defines the strategy type and options
|
||||
/// used to create the strategy.
|
||||
/// used to create the strategy. Deprecated: use
|
||||
/// SupplementalGroupsStrategyOptions from policy API Group instead.
|
||||
/// </summary>
|
||||
public partial class Extensionsv1beta1SupplementalGroupsStrategyOptions
|
||||
{
|
||||
@@ -30,10 +31,11 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Extensionsv1beta1SupplementalGroupsStrategyOptions class.
|
||||
/// </summary>
|
||||
/// <param name="ranges">Ranges are the allowed ranges of supplemental
|
||||
/// <param name="ranges">ranges are the allowed ranges of supplemental
|
||||
/// groups. If you would like to force a single supplemental group
|
||||
/// then supply a single range with the same start and end.</param>
|
||||
/// <param name="rule">Rule is the strategy that will dictate what
|
||||
/// then supply a single range with the same start and end. Required
|
||||
/// for MustRunAs.</param>
|
||||
/// <param name="rule">rule is the strategy that will dictate what
|
||||
/// supplemental groups is used in the SecurityContext.</param>
|
||||
public Extensionsv1beta1SupplementalGroupsStrategyOptions(IList<Extensionsv1beta1IDRange> ranges = default(IList<Extensionsv1beta1IDRange>), string rule = default(string))
|
||||
{
|
||||
@@ -50,7 +52,7 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Gets or sets ranges are the allowed ranges of supplemental groups.
|
||||
/// If you would like to force a single supplemental group then supply
|
||||
/// a single range with the same start and end.
|
||||
/// a single range with the same start and end. Required for MustRunAs.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ranges")]
|
||||
public IList<Extensionsv1beta1IDRange> Ranges { get; set; }
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the Policyv1beta1AllowedFlexVolume
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="driver">Driver is the name of the Flexvolume
|
||||
/// <param name="driver">driver is the name of the Flexvolume
|
||||
/// driver.</param>
|
||||
public Policyv1beta1AllowedFlexVolume(string driver)
|
||||
{
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// defines the host volume conditions that will be enabled by a policy for
|
||||
/// pods to use. It requires the path prefix to be defined.
|
||||
/// AllowedHostPath defines the host volume conditions that will be enabled
|
||||
/// by a policy for pods to use. It requires the path prefix to be defined.
|
||||
/// </summary>
|
||||
public partial class Policyv1beta1AllowedHostPath
|
||||
{
|
||||
@@ -28,15 +28,19 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the Policyv1beta1AllowedHostPath
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="pathPrefix">is the path prefix that the host volume
|
||||
/// must match. It does not support `*`. Trailing slashes are trimmed
|
||||
/// when validating the path prefix with a host path.
|
||||
/// <param name="pathPrefix">pathPrefix is the path prefix that the
|
||||
/// host volume must match. It does not support `*`. Trailing slashes
|
||||
/// are trimmed when validating the path prefix with a host path.
|
||||
///
|
||||
/// Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo`
|
||||
/// would not allow `/food` or `/etc/foo`</param>
|
||||
public Policyv1beta1AllowedHostPath(string pathPrefix = default(string))
|
||||
/// <param name="readOnlyProperty">when set to true, will allow host
|
||||
/// volumes matching the pathPrefix only if all volume mounts are
|
||||
/// readOnly.</param>
|
||||
public Policyv1beta1AllowedHostPath(string pathPrefix = default(string), bool? readOnlyProperty = default(bool?))
|
||||
{
|
||||
PathPrefix = pathPrefix;
|
||||
ReadOnlyProperty = readOnlyProperty;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -46,9 +50,9 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets is the path prefix that the host volume must match. It
|
||||
/// does not support `*`. Trailing slashes are trimmed when validating
|
||||
/// the path prefix with a host path.
|
||||
/// Gets or sets pathPrefix is the path prefix that the host volume
|
||||
/// must match. It does not support `*`. Trailing slashes are trimmed
|
||||
/// when validating the path prefix with a host path.
|
||||
///
|
||||
/// Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo`
|
||||
/// would not allow `/food` or `/etc/foo`
|
||||
@@ -56,5 +60,12 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "pathPrefix")]
|
||||
public string PathPrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets when set to true, will allow host volumes matching the
|
||||
/// pathPrefix only if all volume mounts are readOnly.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "readOnly")]
|
||||
public bool? ReadOnlyProperty { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,10 +30,10 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Policyv1beta1FSGroupStrategyOptions class.
|
||||
/// </summary>
|
||||
/// <param name="ranges">Ranges are the allowed ranges of fs groups.
|
||||
/// <param name="ranges">ranges are the allowed ranges of fs groups.
|
||||
/// If you would like to force a single fs group then supply a single
|
||||
/// range with the same start and end.</param>
|
||||
/// <param name="rule">Rule is the strategy that will dictate what
|
||||
/// range with the same start and end. Required for MustRunAs.</param>
|
||||
/// <param name="rule">rule is the strategy that will dictate what
|
||||
/// FSGroup is used in the SecurityContext.</param>
|
||||
public Policyv1beta1FSGroupStrategyOptions(IList<Policyv1beta1IDRange> ranges = default(IList<Policyv1beta1IDRange>), string rule = default(string))
|
||||
{
|
||||
@@ -50,7 +50,7 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Gets or sets ranges are the allowed ranges of fs groups. If you
|
||||
/// would like to force a single fs group then supply a single range
|
||||
/// with the same start and end.
|
||||
/// with the same start and end. Required for MustRunAs.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ranges")]
|
||||
public IList<Policyv1beta1IDRange> Ranges { get; set; }
|
||||
|
||||
@@ -25,8 +25,8 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Policyv1beta1IDRange class.
|
||||
/// </summary>
|
||||
/// <param name="max">Max is the end of the range, inclusive.</param>
|
||||
/// <param name="min">Min is the start of the range, inclusive.</param>
|
||||
/// <param name="max">max is the end of the range, inclusive.</param>
|
||||
/// <param name="min">min is the start of the range, inclusive.</param>
|
||||
public Policyv1beta1IDRange(long max, long min)
|
||||
{
|
||||
Max = max;
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Pod Security Policy governs the ability to make requests that affect
|
||||
/// the Security Context that will be applied to a pod and container.
|
||||
/// PodSecurityPolicy governs the ability to make requests that affect the
|
||||
/// Security Context that will be applied to a pod and container.
|
||||
/// </summary>
|
||||
public partial class Policyv1beta1PodSecurityPolicy
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Policyv1beta1PodSecurityPolicyList class.
|
||||
/// </summary>
|
||||
/// <param name="items">Items is a list of schema objects.</param>
|
||||
/// <param name="items">items is a list of schema objects.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
|
||||
@@ -30,40 +30,58 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Policyv1beta1PodSecurityPolicySpec class.
|
||||
/// </summary>
|
||||
/// <param name="fsGroup">FSGroup is the strategy that will dictate
|
||||
/// <param name="fsGroup">fsGroup is the strategy that will dictate
|
||||
/// what fs group is used by the SecurityContext.</param>
|
||||
/// <param name="runAsUser">runAsUser is the strategy that will dictate
|
||||
/// the allowable RunAsUser values that may be set.</param>
|
||||
/// <param name="seLinux">seLinux is the strategy that will dictate the
|
||||
/// allowable labels that may be set.</param>
|
||||
/// <param name="supplementalGroups">SupplementalGroups is the strategy
|
||||
/// <param name="supplementalGroups">supplementalGroups is the strategy
|
||||
/// that will dictate what supplemental groups are used by the
|
||||
/// SecurityContext.</param>
|
||||
/// <param name="allowPrivilegeEscalation">AllowPrivilegeEscalation
|
||||
/// <param name="allowPrivilegeEscalation">allowPrivilegeEscalation
|
||||
/// determines if a pod can request to allow privilege escalation. If
|
||||
/// unspecified, defaults to true.</param>
|
||||
/// <param name="allowedCapabilities">AllowedCapabilities is a list of
|
||||
/// <param name="allowedCapabilities">allowedCapabilities is a list of
|
||||
/// capabilities that can be requested to add to the container.
|
||||
/// Capabilities in this field may be added at the pod author's
|
||||
/// discretion. You must not list a capability in both
|
||||
/// AllowedCapabilities and RequiredDropCapabilities.</param>
|
||||
/// <param name="allowedFlexVolumes">AllowedFlexVolumes is a whitelist
|
||||
/// allowedCapabilities and requiredDropCapabilities.</param>
|
||||
/// <param name="allowedFlexVolumes">allowedFlexVolumes is a whitelist
|
||||
/// of allowed Flexvolumes. Empty or nil indicates that all
|
||||
/// Flexvolumes may be used. This parameter is effective only when the
|
||||
/// usage of the Flexvolumes is allowed in the "Volumes" field.</param>
|
||||
/// <param name="allowedHostPaths">is a white list of allowed host
|
||||
/// paths. Empty indicates that all host paths may be used.</param>
|
||||
/// <param name="defaultAddCapabilities">DefaultAddCapabilities is the
|
||||
/// usage of the Flexvolumes is allowed in the "volumes" field.</param>
|
||||
/// <param name="allowedHostPaths">allowedHostPaths is a white list of
|
||||
/// allowed host paths. Empty indicates that all host paths may be
|
||||
/// used.</param>
|
||||
/// <param name="allowedUnsafeSysctls">allowedUnsafeSysctls is a list
|
||||
/// of explicitly allowed unsafe sysctls, defaults to none. Each entry
|
||||
/// is either a plain sysctl name or ends in "*" in which case it is
|
||||
/// considered as a prefix of allowed sysctls. Single * means all
|
||||
/// unsafe sysctls are allowed. Kubelet has to whitelist all allowed
|
||||
/// unsafe sysctls explicitly to avoid rejection.
|
||||
///
|
||||
/// Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g.
|
||||
/// "foo.*" allows "foo.bar", "foo.baz", etc.</param>
|
||||
/// <param name="defaultAddCapabilities">defaultAddCapabilities is the
|
||||
/// default set of capabilities that will be added to the container
|
||||
/// unless the pod spec specifically drops the capability. You may not
|
||||
/// list a capability in both DefaultAddCapabilities and
|
||||
/// RequiredDropCapabilities. Capabilities added here are implicitly
|
||||
/// allowed, and need not be included in the AllowedCapabilities
|
||||
/// list a capability in both defaultAddCapabilities and
|
||||
/// requiredDropCapabilities. Capabilities added here are implicitly
|
||||
/// allowed, and need not be included in the allowedCapabilities
|
||||
/// list.</param>
|
||||
/// <param
|
||||
/// name="defaultAllowPrivilegeEscalation">DefaultAllowPrivilegeEscalation
|
||||
/// name="defaultAllowPrivilegeEscalation">defaultAllowPrivilegeEscalation
|
||||
/// controls the default setting for whether a process can gain more
|
||||
/// privileges than its parent process.</param>
|
||||
/// <param name="forbiddenSysctls">forbiddenSysctls is a list of
|
||||
/// explicitly forbidden sysctls, defaults to none. Each entry is
|
||||
/// either a plain sysctl name or ends in "*" in which case it is
|
||||
/// considered as a prefix of forbidden sysctls. Single * means all
|
||||
/// sysctls are forbidden.
|
||||
///
|
||||
/// Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g.
|
||||
/// "foo.*" forbids "foo.bar", "foo.baz", etc.</param>
|
||||
/// <param name="hostIPC">hostIPC determines if the policy allows the
|
||||
/// use of HostIPC in the pod spec.</param>
|
||||
/// <param name="hostNetwork">hostNetwork determines if the policy
|
||||
@@ -74,25 +92,28 @@ namespace k8s.Models
|
||||
/// are allowed to be exposed.</param>
|
||||
/// <param name="privileged">privileged determines if a pod can request
|
||||
/// to be run as privileged.</param>
|
||||
/// <param name="readOnlyRootFilesystem">ReadOnlyRootFilesystem when
|
||||
/// <param name="readOnlyRootFilesystem">readOnlyRootFilesystem when
|
||||
/// set to true will force containers to run with a read only root file
|
||||
/// system. If the container specifically requests to run with a
|
||||
/// non-read only root file system the PSP should deny the pod. If set
|
||||
/// to false the container may run with a read only root file system if
|
||||
/// it wishes but it will not be forced to.</param>
|
||||
/// <param name="requiredDropCapabilities">RequiredDropCapabilities are
|
||||
/// <param name="requiredDropCapabilities">requiredDropCapabilities are
|
||||
/// the capabilities that will be dropped from the container. These
|
||||
/// are required to be dropped and cannot be added.</param>
|
||||
/// <param name="volumes">volumes is a white list of allowed volume
|
||||
/// plugins. Empty indicates that all plugins may be used.</param>
|
||||
public Policyv1beta1PodSecurityPolicySpec(Policyv1beta1FSGroupStrategyOptions fsGroup, Policyv1beta1RunAsUserStrategyOptions runAsUser, Policyv1beta1SELinuxStrategyOptions seLinux, Policyv1beta1SupplementalGroupsStrategyOptions supplementalGroups, bool? allowPrivilegeEscalation = default(bool?), IList<string> allowedCapabilities = default(IList<string>), IList<Policyv1beta1AllowedFlexVolume> allowedFlexVolumes = default(IList<Policyv1beta1AllowedFlexVolume>), IList<Policyv1beta1AllowedHostPath> allowedHostPaths = default(IList<Policyv1beta1AllowedHostPath>), IList<string> defaultAddCapabilities = default(IList<string>), bool? defaultAllowPrivilegeEscalation = default(bool?), bool? hostIPC = default(bool?), bool? hostNetwork = default(bool?), bool? hostPID = default(bool?), IList<Policyv1beta1HostPortRange> hostPorts = default(IList<Policyv1beta1HostPortRange>), bool? privileged = default(bool?), bool? readOnlyRootFilesystem = default(bool?), IList<string> requiredDropCapabilities = default(IList<string>), IList<string> volumes = default(IList<string>))
|
||||
/// plugins. Empty indicates that no volumes may be used. To allow all
|
||||
/// volumes you may use '*'.</param>
|
||||
public Policyv1beta1PodSecurityPolicySpec(Policyv1beta1FSGroupStrategyOptions fsGroup, Policyv1beta1RunAsUserStrategyOptions runAsUser, Policyv1beta1SELinuxStrategyOptions seLinux, Policyv1beta1SupplementalGroupsStrategyOptions supplementalGroups, bool? allowPrivilegeEscalation = default(bool?), IList<string> allowedCapabilities = default(IList<string>), IList<Policyv1beta1AllowedFlexVolume> allowedFlexVolumes = default(IList<Policyv1beta1AllowedFlexVolume>), IList<Policyv1beta1AllowedHostPath> allowedHostPaths = default(IList<Policyv1beta1AllowedHostPath>), IList<string> allowedUnsafeSysctls = default(IList<string>), IList<string> defaultAddCapabilities = default(IList<string>), bool? defaultAllowPrivilegeEscalation = default(bool?), IList<string> forbiddenSysctls = default(IList<string>), bool? hostIPC = default(bool?), bool? hostNetwork = default(bool?), bool? hostPID = default(bool?), IList<Policyv1beta1HostPortRange> hostPorts = default(IList<Policyv1beta1HostPortRange>), bool? privileged = default(bool?), bool? readOnlyRootFilesystem = default(bool?), IList<string> requiredDropCapabilities = default(IList<string>), IList<string> volumes = default(IList<string>))
|
||||
{
|
||||
AllowPrivilegeEscalation = allowPrivilegeEscalation;
|
||||
AllowedCapabilities = allowedCapabilities;
|
||||
AllowedFlexVolumes = allowedFlexVolumes;
|
||||
AllowedHostPaths = allowedHostPaths;
|
||||
AllowedUnsafeSysctls = allowedUnsafeSysctls;
|
||||
DefaultAddCapabilities = defaultAddCapabilities;
|
||||
DefaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation;
|
||||
ForbiddenSysctls = forbiddenSysctls;
|
||||
FsGroup = fsGroup;
|
||||
HostIPC = hostIPC;
|
||||
HostNetwork = hostNetwork;
|
||||
@@ -125,8 +146,8 @@ namespace k8s.Models
|
||||
/// Gets or sets allowedCapabilities is a list of capabilities that can
|
||||
/// be requested to add to the container. Capabilities in this field
|
||||
/// may be added at the pod author's discretion. You must not list a
|
||||
/// capability in both AllowedCapabilities and
|
||||
/// RequiredDropCapabilities.
|
||||
/// capability in both allowedCapabilities and
|
||||
/// requiredDropCapabilities.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allowedCapabilities")]
|
||||
public IList<string> AllowedCapabilities { get; set; }
|
||||
@@ -135,25 +156,39 @@ namespace k8s.Models
|
||||
/// Gets or sets allowedFlexVolumes is a whitelist of allowed
|
||||
/// Flexvolumes. Empty or nil indicates that all Flexvolumes may be
|
||||
/// used. This parameter is effective only when the usage of the
|
||||
/// Flexvolumes is allowed in the "Volumes" field.
|
||||
/// Flexvolumes is allowed in the "volumes" field.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allowedFlexVolumes")]
|
||||
public IList<Policyv1beta1AllowedFlexVolume> AllowedFlexVolumes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets is a white list of allowed host paths. Empty indicates
|
||||
/// that all host paths may be used.
|
||||
/// Gets or sets allowedHostPaths is a white list of allowed host
|
||||
/// paths. Empty indicates that all host paths may be used.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allowedHostPaths")]
|
||||
public IList<Policyv1beta1AllowedHostPath> AllowedHostPaths { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets allowedUnsafeSysctls is a list of explicitly allowed
|
||||
/// unsafe sysctls, defaults to none. Each entry is either a plain
|
||||
/// sysctl name or ends in "*" in which case it is considered as a
|
||||
/// prefix of allowed sysctls. Single * means all unsafe sysctls are
|
||||
/// allowed. Kubelet has to whitelist all allowed unsafe sysctls
|
||||
/// explicitly to avoid rejection.
|
||||
///
|
||||
/// Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g.
|
||||
/// "foo.*" allows "foo.bar", "foo.baz", etc.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allowedUnsafeSysctls")]
|
||||
public IList<string> AllowedUnsafeSysctls { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets defaultAddCapabilities is the default set of
|
||||
/// capabilities that will be added to the container unless the pod
|
||||
/// spec specifically drops the capability. You may not list a
|
||||
/// capability in both DefaultAddCapabilities and
|
||||
/// RequiredDropCapabilities. Capabilities added here are implicitly
|
||||
/// allowed, and need not be included in the AllowedCapabilities list.
|
||||
/// capability in both defaultAddCapabilities and
|
||||
/// requiredDropCapabilities. Capabilities added here are implicitly
|
||||
/// allowed, and need not be included in the allowedCapabilities list.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "defaultAddCapabilities")]
|
||||
public IList<string> DefaultAddCapabilities { get; set; }
|
||||
@@ -167,7 +202,19 @@ namespace k8s.Models
|
||||
public bool? DefaultAllowPrivilegeEscalation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets fSGroup is the strategy that will dictate what fs
|
||||
/// Gets or sets forbiddenSysctls is a list of explicitly forbidden
|
||||
/// sysctls, defaults to none. Each entry is either a plain sysctl name
|
||||
/// or ends in "*" in which case it is considered as a prefix of
|
||||
/// forbidden sysctls. Single * means all sysctls are forbidden.
|
||||
///
|
||||
/// Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g.
|
||||
/// "foo.*" forbids "foo.bar", "foo.baz", etc.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "forbiddenSysctls")]
|
||||
public IList<string> ForbiddenSysctls { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets fsGroup is the strategy that will dictate what fs
|
||||
/// group is used by the SecurityContext.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "fsGroup")]
|
||||
@@ -250,7 +297,8 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets volumes is a white list of allowed volume plugins.
|
||||
/// Empty indicates that all plugins may be used.
|
||||
/// Empty indicates that no volumes may be used. To allow all volumes
|
||||
/// you may use '*'.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "volumes")]
|
||||
public IList<string> Volumes { get; set; }
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Run A sUser Strategy Options defines the strategy type and any options
|
||||
/// used to create the strategy.
|
||||
/// RunAsUserStrategyOptions defines the strategy type and any options used
|
||||
/// to create the strategy.
|
||||
/// </summary>
|
||||
public partial class Policyv1beta1RunAsUserStrategyOptions
|
||||
{
|
||||
@@ -31,10 +31,12 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Policyv1beta1RunAsUserStrategyOptions class.
|
||||
/// </summary>
|
||||
/// <param name="rule">Rule is the strategy that will dictate the
|
||||
/// <param name="rule">rule is the strategy that will dictate the
|
||||
/// allowable RunAsUser values that may be set.</param>
|
||||
/// <param name="ranges">Ranges are the allowed ranges of uids that may
|
||||
/// be used.</param>
|
||||
/// <param name="ranges">ranges are the allowed ranges of uids that may
|
||||
/// be used. If you would like to force a single uid then supply a
|
||||
/// single range with the same start and end. Required for
|
||||
/// MustRunAs.</param>
|
||||
public Policyv1beta1RunAsUserStrategyOptions(string rule, IList<Policyv1beta1IDRange> ranges = default(IList<Policyv1beta1IDRange>))
|
||||
{
|
||||
Ranges = ranges;
|
||||
@@ -49,7 +51,8 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets ranges are the allowed ranges of uids that may be
|
||||
/// used.
|
||||
/// used. If you would like to force a single uid then supply a single
|
||||
/// range with the same start and end. Required for MustRunAs.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ranges")]
|
||||
public IList<Policyv1beta1IDRange> Ranges { get; set; }
|
||||
|
||||
@@ -11,8 +11,8 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// SELinux Strategy Options defines the strategy type and any options
|
||||
/// used to create the strategy.
|
||||
/// SELinuxStrategyOptions defines the strategy type and any options used
|
||||
/// to create the strategy.
|
||||
/// </summary>
|
||||
public partial class Policyv1beta1SELinuxStrategyOptions
|
||||
{
|
||||
@@ -29,7 +29,7 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Policyv1beta1SELinuxStrategyOptions class.
|
||||
/// </summary>
|
||||
/// <param name="rule">type is the strategy that will dictate the
|
||||
/// <param name="rule">rule is the strategy that will dictate the
|
||||
/// allowable labels that may be set.</param>
|
||||
/// <param name="seLinuxOptions">seLinuxOptions required to run as;
|
||||
/// required for MustRunAs More info:
|
||||
@@ -47,7 +47,7 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type is the strategy that will dictate the allowable
|
||||
/// Gets or sets rule is the strategy that will dictate the allowable
|
||||
/// labels that may be set.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "rule")]
|
||||
|
||||
@@ -30,10 +30,11 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the
|
||||
/// Policyv1beta1SupplementalGroupsStrategyOptions class.
|
||||
/// </summary>
|
||||
/// <param name="ranges">Ranges are the allowed ranges of supplemental
|
||||
/// <param name="ranges">ranges are the allowed ranges of supplemental
|
||||
/// groups. If you would like to force a single supplemental group
|
||||
/// then supply a single range with the same start and end.</param>
|
||||
/// <param name="rule">Rule is the strategy that will dictate what
|
||||
/// then supply a single range with the same start and end. Required
|
||||
/// for MustRunAs.</param>
|
||||
/// <param name="rule">rule is the strategy that will dictate what
|
||||
/// supplemental groups is used in the SecurityContext.</param>
|
||||
public Policyv1beta1SupplementalGroupsStrategyOptions(IList<Policyv1beta1IDRange> ranges = default(IList<Policyv1beta1IDRange>), string rule = default(string))
|
||||
{
|
||||
@@ -50,7 +51,7 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Gets or sets ranges are the allowed ranges of supplemental groups.
|
||||
/// If you would like to force a single supplemental group then supply
|
||||
/// a single range with the same start and end.
|
||||
/// a single range with the same start and end. Required for MustRunAs.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ranges")]
|
||||
public IList<Policyv1beta1IDRange> Ranges { get; set; }
|
||||
|
||||
@@ -30,17 +30,6 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the V1APIGroup class.
|
||||
/// </summary>
|
||||
/// <param name="name">name is the name of the group.</param>
|
||||
/// <param name="serverAddressByClientCIDRs">a map of client CIDR to
|
||||
/// server address that is serving this group. This is to help clients
|
||||
/// reach servers in the most network-efficient way possible. Clients
|
||||
/// can use the appropriate server address as per the CIDR that they
|
||||
/// match. In case of multiple matches, clients should use the longest
|
||||
/// matching CIDR. The server returns only those CIDRs that it thinks
|
||||
/// that the client can match. For example: the master will return an
|
||||
/// internal IP CIDR only, if the client reaches the server using an
|
||||
/// internal IP. Server looks at X-Forwarded-For header or X-Real-Ip
|
||||
/// header or request.RemoteAddr (in that order) to get the client
|
||||
/// IP.</param>
|
||||
/// <param name="versions">versions are the versions supported in this
|
||||
/// group.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
@@ -56,7 +45,18 @@ namespace k8s.Models
|
||||
/// <param name="preferredVersion">preferredVersion is the version
|
||||
/// preferred by the API server, which probably is the storage
|
||||
/// version.</param>
|
||||
public V1APIGroup(string name, IList<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs, IList<V1GroupVersionForDiscovery> versions, string apiVersion = default(string), string kind = default(string), V1GroupVersionForDiscovery preferredVersion = default(V1GroupVersionForDiscovery))
|
||||
/// <param name="serverAddressByClientCIDRs">a map of client CIDR to
|
||||
/// server address that is serving this group. This is to help clients
|
||||
/// reach servers in the most network-efficient way possible. Clients
|
||||
/// can use the appropriate server address as per the CIDR that they
|
||||
/// match. In case of multiple matches, clients should use the longest
|
||||
/// matching CIDR. The server returns only those CIDRs that it thinks
|
||||
/// that the client can match. For example: the master will return an
|
||||
/// internal IP CIDR only, if the client reaches the server using an
|
||||
/// internal IP. Server looks at X-Forwarded-For header or X-Real-Ip
|
||||
/// header or request.RemoteAddr (in that order) to get the client
|
||||
/// IP.</param>
|
||||
public V1APIGroup(string name, IList<V1GroupVersionForDiscovery> versions, string apiVersion = default(string), string kind = default(string), V1GroupVersionForDiscovery preferredVersion = default(V1GroupVersionForDiscovery), IList<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs = default(IList<V1ServerAddressByClientCIDR>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -138,10 +138,6 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
if (ServerAddressByClientCIDRs == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "ServerAddressByClientCIDRs");
|
||||
}
|
||||
if (Versions == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Versions");
|
||||
|
||||
@@ -28,9 +28,6 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1APIServiceSpec class.
|
||||
/// </summary>
|
||||
/// <param name="caBundle">CABundle is a PEM encoded CA bundle which
|
||||
/// will be used to validate an API server's serving
|
||||
/// certificate.</param>
|
||||
/// <param name="groupPriorityMinimum">GroupPriorityMininum is the
|
||||
/// priority this group should have at least. Higher priority means
|
||||
/// that the group is preferred by clients over lower priority ones.
|
||||
@@ -50,10 +47,22 @@ namespace k8s.Models
|
||||
/// <param name="versionPriority">VersionPriority controls the ordering
|
||||
/// of this API version inside of its group. Must be greater than
|
||||
/// zero. The primary sort is based on VersionPriority, ordered highest
|
||||
/// to lowest (20 before 10). The secondary sort is based on the
|
||||
/// alphabetical comparison of the name of the object. (v1.bar before
|
||||
/// v1.foo) Since it's inside of a group, the number can be small,
|
||||
/// probably in the 10s.</param>
|
||||
/// to lowest (20 before 10). Since it's inside of a group, the number
|
||||
/// can be small, probably in the 10s. In case of equal version
|
||||
/// priorities, the version string will be used to compute the order
|
||||
/// inside a group. If the version string is "kube-like", it will sort
|
||||
/// above non "kube-like" version strings, which are ordered
|
||||
/// lexicographically. "Kube-like" versions start with a "v", then are
|
||||
/// followed by a number (the major version), then optionally the
|
||||
/// string "alpha" or "beta" and another number (the minor version).
|
||||
/// These are sorted first by GA > beta > alpha (where GA is a
|
||||
/// version with no suffix such as beta or alpha), and then by
|
||||
/// comparing major version, then minor version. An example sorted list
|
||||
/// of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1,
|
||||
/// v11alpha2, foo1, foo10.</param>
|
||||
/// <param name="caBundle">CABundle is a PEM encoded CA bundle which
|
||||
/// will be used to validate an API server's serving
|
||||
/// certificate.</param>
|
||||
/// <param name="group">Group is the API group name this server
|
||||
/// hosts</param>
|
||||
/// <param name="insecureSkipTLSVerify">InsecureSkipTLSVerify disables
|
||||
@@ -62,7 +71,7 @@ namespace k8s.Models
|
||||
/// instead.</param>
|
||||
/// <param name="version">Version is the API version this server hosts.
|
||||
/// For example, "v1"</param>
|
||||
public V1APIServiceSpec(byte[] caBundle, int groupPriorityMinimum, V1ServiceReference service, int versionPriority, string group = default(string), bool? insecureSkipTLSVerify = default(bool?), string version = default(string))
|
||||
public V1APIServiceSpec(int groupPriorityMinimum, V1ServiceReference service, int versionPriority, byte[] caBundle = default(byte[]), string group = default(string), bool? insecureSkipTLSVerify = default(bool?), string version = default(string))
|
||||
{
|
||||
CaBundle = caBundle;
|
||||
Group = group;
|
||||
@@ -136,10 +145,19 @@ namespace k8s.Models
|
||||
/// Gets or sets versionPriority controls the ordering of this API
|
||||
/// version inside of its group. Must be greater than zero. The
|
||||
/// primary sort is based on VersionPriority, ordered highest to lowest
|
||||
/// (20 before 10). The secondary sort is based on the alphabetical
|
||||
/// comparison of the name of the object. (v1.bar before v1.foo) Since
|
||||
/// it's inside of a group, the number can be small, probably in the
|
||||
/// 10s.
|
||||
/// (20 before 10). Since it's inside of a group, the number can be
|
||||
/// small, probably in the 10s. In case of equal version priorities,
|
||||
/// the version string will be used to compute the order inside a
|
||||
/// group. If the version string is "kube-like", it will sort above non
|
||||
/// "kube-like" version strings, which are ordered lexicographically.
|
||||
/// "Kube-like" versions start with a "v", then are followed by a
|
||||
/// number (the major version), then optionally the string "alpha" or
|
||||
/// "beta" and another number (the minor version). These are sorted
|
||||
/// first by GA &gt; beta &gt; alpha (where GA is a version
|
||||
/// with no suffix such as beta or alpha), and then by comparing major
|
||||
/// version, then minor version. An example sorted list of versions:
|
||||
/// v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2,
|
||||
/// foo1, foo10.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "versionPriority")]
|
||||
public int VersionPriority { get; set; }
|
||||
@@ -152,10 +170,6 @@ namespace k8s.Models
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (CaBundle == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "CaBundle");
|
||||
}
|
||||
if (Service == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Service");
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a cinder volume resource in Openstack. A Cinder volume must
|
||||
/// exist before mounting to a container. The volume must also be in the
|
||||
/// same region as the kubelet. Cinder volumes support ownership management
|
||||
/// and SELinux relabeling.
|
||||
/// </summary>
|
||||
public partial class V1CinderPersistentVolumeSource
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1CinderPersistentVolumeSource
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1CinderPersistentVolumeSource()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1CinderPersistentVolumeSource
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="volumeID">volume id used to identify the volume in
|
||||
/// cinder More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
|
||||
/// <param name="fsType">Filesystem type to mount. Must be a filesystem
|
||||
/// type supported by the host operating system. Examples: "ext4",
|
||||
/// "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
|
||||
/// More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
|
||||
/// <param name="readOnlyProperty">Optional: Defaults to false
|
||||
/// (read/write). ReadOnly here will force the ReadOnly setting in
|
||||
/// VolumeMounts. More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
|
||||
/// <param name="secretRef">Optional: points to a secret object
|
||||
/// containing parameters used to connect to OpenStack.</param>
|
||||
public V1CinderPersistentVolumeSource(string volumeID, string fsType = default(string), bool? readOnlyProperty = default(bool?), V1SecretReference secretRef = default(V1SecretReference))
|
||||
{
|
||||
FsType = fsType;
|
||||
ReadOnlyProperty = readOnlyProperty;
|
||||
SecretRef = secretRef;
|
||||
VolumeID = volumeID;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets filesystem type to mount. Must be a filesystem type
|
||||
/// supported by the host operating system. Examples: "ext4", "xfs",
|
||||
/// "ntfs". Implicitly inferred to be "ext4" if unspecified. More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "fsType")]
|
||||
public string FsType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional: Defaults to false (read/write). ReadOnly
|
||||
/// here will force the ReadOnly setting in VolumeMounts. More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "readOnly")]
|
||||
public bool? ReadOnlyProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional: points to a secret object containing
|
||||
/// parameters used to connect to OpenStack.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "secretRef")]
|
||||
public V1SecretReference SecretRef { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets volume id used to identify the volume in cinder More
|
||||
/// info:
|
||||
/// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "volumeID")]
|
||||
public string VolumeID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (VolumeID == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "VolumeID");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,10 +41,13 @@ namespace k8s.Models
|
||||
/// (read/write). ReadOnly here will force the ReadOnly setting in
|
||||
/// VolumeMounts. More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
|
||||
public V1CinderVolumeSource(string volumeID, string fsType = default(string), bool? readOnlyProperty = default(bool?))
|
||||
/// <param name="secretRef">Optional: points to a secret object
|
||||
/// containing parameters used to connect to OpenStack.</param>
|
||||
public V1CinderVolumeSource(string volumeID, string fsType = default(string), bool? readOnlyProperty = default(bool?), V1LocalObjectReference secretRef = default(V1LocalObjectReference))
|
||||
{
|
||||
FsType = fsType;
|
||||
ReadOnlyProperty = readOnlyProperty;
|
||||
SecretRef = secretRef;
|
||||
VolumeID = volumeID;
|
||||
CustomInit();
|
||||
}
|
||||
@@ -71,6 +74,13 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "readOnly")]
|
||||
public bool? ReadOnlyProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional: points to a secret object containing
|
||||
/// parameters used to connect to OpenStack.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "secretRef")]
|
||||
public V1LocalObjectReference SecretRef { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets volume id used to identify the volume in cinder More
|
||||
/// info:
|
||||
|
||||
@@ -33,8 +33,6 @@ namespace k8s.Models
|
||||
/// <param name="roleRef">RoleRef can only reference a ClusterRole in
|
||||
/// the global namespace. If the RoleRef cannot be resolved, the
|
||||
/// Authorizer must return an error.</param>
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
@@ -46,7 +44,9 @@ namespace k8s.Models
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">Standard object's metadata.</param>
|
||||
public V1ClusterRoleBinding(V1RoleRef roleRef, IList<V1Subject> subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
public V1ClusterRoleBinding(V1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<V1Subject> subjects = default(IList<V1Subject>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -114,10 +114,6 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "RoleRef");
|
||||
}
|
||||
if (Subjects == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Subjects");
|
||||
}
|
||||
if (Metadata != null)
|
||||
{
|
||||
Metadata.Validate();
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// ConfigMapNodeConfigSource contains the information to reference a
|
||||
/// ConfigMap as a config source for the Node.
|
||||
/// </summary>
|
||||
public partial class V1ConfigMapNodeConfigSource
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1ConfigMapNodeConfigSource
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1ConfigMapNodeConfigSource()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1ConfigMapNodeConfigSource
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="kubeletConfigKey">KubeletConfigKey declares which key
|
||||
/// of the referenced ConfigMap corresponds to the KubeletConfiguration
|
||||
/// structure This field is required in all cases.</param>
|
||||
/// <param name="name">Name is the metadata.name of the referenced
|
||||
/// ConfigMap. This field is required in all cases.</param>
|
||||
/// <param name="namespaceProperty">Namespace is the metadata.namespace
|
||||
/// of the referenced ConfigMap. This field is required in all
|
||||
/// cases.</param>
|
||||
/// <param name="resourceVersion">ResourceVersion is the
|
||||
/// metadata.ResourceVersion of the referenced ConfigMap. This field is
|
||||
/// forbidden in Node.Spec, and required in Node.Status.</param>
|
||||
/// <param name="uid">UID is the metadata.UID of the referenced
|
||||
/// ConfigMap. This field is forbidden in Node.Spec, and required in
|
||||
/// Node.Status.</param>
|
||||
public V1ConfigMapNodeConfigSource(string kubeletConfigKey, string name, string namespaceProperty, string resourceVersion = default(string), string uid = default(string))
|
||||
{
|
||||
KubeletConfigKey = kubeletConfigKey;
|
||||
Name = name;
|
||||
NamespaceProperty = namespaceProperty;
|
||||
ResourceVersion = resourceVersion;
|
||||
Uid = uid;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kubeletConfigKey declares which key of the referenced
|
||||
/// ConfigMap corresponds to the KubeletConfiguration structure This
|
||||
/// field is required in all cases.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kubeletConfigKey")]
|
||||
public string KubeletConfigKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name is the metadata.name of the referenced ConfigMap.
|
||||
/// This field is required in all cases.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets namespace is the metadata.namespace of the referenced
|
||||
/// ConfigMap. This field is required in all cases.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "namespace")]
|
||||
public string NamespaceProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets resourceVersion is the metadata.ResourceVersion of the
|
||||
/// referenced ConfigMap. This field is forbidden in Node.Spec, and
|
||||
/// required in Node.Status.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "resourceVersion")]
|
||||
public string ResourceVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets UID is the metadata.UID of the referenced ConfigMap.
|
||||
/// This field is forbidden in Node.Spec, and required in Node.Status.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "uid")]
|
||||
public string Uid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (KubeletConfigKey == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "KubeletConfigKey");
|
||||
}
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
if (NamespaceProperty == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "NamespaceProperty");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,10 @@ namespace k8s.Models
|
||||
/// Represents a volume that is populated with the contents of a git
|
||||
/// repository. Git repo volumes do not support ownership management. Git
|
||||
/// repo volumes support SELinux relabeling.
|
||||
///
|
||||
/// DEPRECATED: GitRepo is deprecated. To provision a container with a git
|
||||
/// repo, mount an EmptyDir into an InitContainer that clones the repo
|
||||
/// using git, then mount the EmptyDir into the Pod's container.
|
||||
/// </summary>
|
||||
public partial class V1GitRepoVolumeSource
|
||||
{
|
||||
|
||||
@@ -11,7 +11,8 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Local represents directly-attached storage with node affinity
|
||||
/// Local represents directly-attached storage with node affinity (Beta
|
||||
/// feature)
|
||||
/// </summary>
|
||||
public partial class V1LocalVolumeSource
|
||||
{
|
||||
@@ -26,9 +27,12 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1LocalVolumeSource class.
|
||||
/// </summary>
|
||||
/// <param name="path">The full path to the volume on the node For
|
||||
/// alpha, this path must be a directory Once block as a source is
|
||||
/// supported, then this path can point to a block device</param>
|
||||
/// <param name="path">The full path to the volume on the node. It can
|
||||
/// be either a directory or block device (disk, partition, ...).
|
||||
/// Directories can be represented only by PersistentVolume with
|
||||
/// VolumeMode=Filesystem. Block devices can be represented only by
|
||||
/// VolumeMode=Block, which also requires the BlockVolume alpha feature
|
||||
/// gate to be enabled.</param>
|
||||
public V1LocalVolumeSource(string path)
|
||||
{
|
||||
Path = path;
|
||||
@@ -41,9 +45,12 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the full path to the volume on the node For alpha,
|
||||
/// this path must be a directory Once block as a source is supported,
|
||||
/// then this path can point to a block device
|
||||
/// Gets or sets the full path to the volume on the node. It can be
|
||||
/// either a directory or block device (disk, partition, ...).
|
||||
/// Directories can be represented only by PersistentVolume with
|
||||
/// VolumeMode=Filesystem. Block devices can be represented only by
|
||||
/// VolumeMode=Block, which also requires the BlockVolume alpha feature
|
||||
/// gate to be enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "path")]
|
||||
public string Path { get; set; }
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// NetworkPolicyPeer describes a peer to allow traffic from. Exactly one
|
||||
/// of its fields must be specified.
|
||||
/// NetworkPolicyPeer describes a peer to allow traffic from. Only certain
|
||||
/// combinations of fields are allowed
|
||||
/// </summary>
|
||||
public partial class V1NetworkPolicyPeer
|
||||
{
|
||||
@@ -27,16 +27,24 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the V1NetworkPolicyPeer class.
|
||||
/// </summary>
|
||||
/// <param name="ipBlock">IPBlock defines policy on a particular
|
||||
/// IPBlock</param>
|
||||
/// <param name="namespaceSelector">Selects Namespaces using cluster
|
||||
/// scoped-labels. This matches all pods in all namespaces selected by
|
||||
/// this label selector. This field follows standard label selector
|
||||
/// semantics. If present but empty, this selector selects all
|
||||
/// namespaces.</param>
|
||||
/// IPBlock. If this field is set then neither of the other fields can
|
||||
/// be.</param>
|
||||
/// <param name="namespaceSelector">Selects Namespaces using
|
||||
/// cluster-scoped labels. This field follows standard label selector
|
||||
/// semantics; if present but empty, it selects all namespaces.
|
||||
///
|
||||
/// If PodSelector is also set, then the NetworkPolicyPeer as a whole
|
||||
/// selects the Pods matching PodSelector in the Namespaces selected by
|
||||
/// NamespaceSelector. Otherwise it selects all Pods in the Namespaces
|
||||
/// selected by NamespaceSelector.</param>
|
||||
/// <param name="podSelector">This is a label selector which selects
|
||||
/// Pods in this namespace. This field follows standard label selector
|
||||
/// semantics. If present but empty, this selector selects all pods in
|
||||
/// this namespace.</param>
|
||||
/// Pods. This field follows standard label selector semantics; if
|
||||
/// present but empty, it selects all pods.
|
||||
///
|
||||
/// If NamespaceSelector is also set, then the NetworkPolicyPeer as a
|
||||
/// whole selects the Pods matching PodSelector in the Namespaces
|
||||
/// selected by NamespaceSelector. Otherwise it selects the Pods
|
||||
/// matching PodSelector in the policy's own Namespace.</param>
|
||||
public V1NetworkPolicyPeer(V1IPBlock ipBlock = default(V1IPBlock), V1LabelSelector namespaceSelector = default(V1LabelSelector), V1LabelSelector podSelector = default(V1LabelSelector))
|
||||
{
|
||||
IpBlock = ipBlock;
|
||||
@@ -51,25 +59,34 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets iPBlock defines policy on a particular IPBlock
|
||||
/// Gets or sets iPBlock defines policy on a particular IPBlock. If
|
||||
/// this field is set then neither of the other fields can be.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ipBlock")]
|
||||
public V1IPBlock IpBlock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets selects Namespaces using cluster scoped-labels. This
|
||||
/// matches all pods in all namespaces selected by this label selector.
|
||||
/// This field follows standard label selector semantics. If present
|
||||
/// but empty, this selector selects all namespaces.
|
||||
/// Gets or sets selects Namespaces using cluster-scoped labels. This
|
||||
/// field follows standard label selector semantics; if present but
|
||||
/// empty, it selects all namespaces.
|
||||
///
|
||||
/// If PodSelector is also set, then the NetworkPolicyPeer as a whole
|
||||
/// selects the Pods matching PodSelector in the Namespaces selected by
|
||||
/// NamespaceSelector. Otherwise it selects all Pods in the Namespaces
|
||||
/// selected by NamespaceSelector.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "namespaceSelector")]
|
||||
public V1LabelSelector NamespaceSelector { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets this is a label selector which selects Pods in this
|
||||
/// namespace. This field follows standard label selector semantics. If
|
||||
/// present but empty, this selector selects all pods in this
|
||||
/// namespace.
|
||||
/// Gets or sets this is a label selector which selects Pods. This
|
||||
/// field follows standard label selector semantics; if present but
|
||||
/// empty, it selects all pods.
|
||||
///
|
||||
/// If NamespaceSelector is also set, then the NetworkPolicyPeer as a
|
||||
/// whole selects the Pods matching PodSelector in the Namespaces
|
||||
/// selected by NamespaceSelector. Otherwise it selects the Pods
|
||||
/// matching PodSelector in the policy's own Namespace.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "podSelector")]
|
||||
public V1LabelSelector PodSelector { get; set; }
|
||||
|
||||
@@ -112,6 +112,10 @@ namespace k8s.Models
|
||||
{
|
||||
Metadata.Validate();
|
||||
}
|
||||
if (Spec != null)
|
||||
{
|
||||
Spec.Validate();
|
||||
}
|
||||
if (Status != null)
|
||||
{
|
||||
Status.Validate();
|
||||
|
||||
@@ -26,21 +26,11 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1NodeConfigSource class.
|
||||
/// </summary>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources</param>
|
||||
/// <param name="kind">Kind is a string value representing the REST
|
||||
/// resource this object represents. Servers may infer this from the
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
|
||||
public V1NodeConfigSource(string apiVersion = default(string), V1ObjectReference configMapRef = default(V1ObjectReference), string kind = default(string))
|
||||
/// <param name="configMap">ConfigMap is a reference to a Node's
|
||||
/// ConfigMap</param>
|
||||
public V1NodeConfigSource(V1ConfigMapNodeConfigSource configMap = default(V1ConfigMapNodeConfigSource))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
ConfigMapRef = configMapRef;
|
||||
Kind = kind;
|
||||
ConfigMap = configMap;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -50,29 +40,23 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
|
||||
/// Gets or sets configMap is a reference to a Node's ConfigMap
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiVersion")]
|
||||
public string ApiVersion { get; set; }
|
||||
[JsonProperty(PropertyName = "configMap")]
|
||||
public V1ConfigMapNodeConfigSource ConfigMap { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "configMapRef")]
|
||||
public V1ObjectReference ConfigMapRef { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
/// this object represents. Servers may infer this from the endpoint
|
||||
/// the client submits requests to. Cannot be updated. In CamelCase.
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (ConfigMap != null)
|
||||
{
|
||||
ConfigMap.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
175
src/KubernetesClient/generated/Models/V1NodeConfigStatus.cs
Normal file
175
src/KubernetesClient/generated/Models/V1NodeConfigStatus.cs
Normal file
@@ -0,0 +1,175 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// NodeConfigStatus describes the status of the config assigned by
|
||||
/// Node.Spec.ConfigSource.
|
||||
/// </summary>
|
||||
public partial class V1NodeConfigStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1NodeConfigStatus class.
|
||||
/// </summary>
|
||||
public V1NodeConfigStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1NodeConfigStatus class.
|
||||
/// </summary>
|
||||
/// <param name="active">Active reports the checkpointed config the
|
||||
/// node is actively using. Active will represent either the current
|
||||
/// version of the Assigned config, or the current LastKnownGood
|
||||
/// config, depending on whether attempting to use the Assigned config
|
||||
/// results in an error.</param>
|
||||
/// <param name="assigned">Assigned reports the checkpointed config the
|
||||
/// node will try to use. When Node.Spec.ConfigSource is updated, the
|
||||
/// node checkpoints the associated config payload to local disk, along
|
||||
/// with a record indicating intended config. The node refers to this
|
||||
/// record to choose its config checkpoint, and reports this record in
|
||||
/// Assigned. Assigned only updates in the status after the record has
|
||||
/// been checkpointed to disk. When the Kubelet is restarted, it tries
|
||||
/// to make the Assigned config the Active config by loading and
|
||||
/// validating the checkpointed payload identified by Assigned.</param>
|
||||
/// <param name="error">Error describes any problems reconciling the
|
||||
/// Spec.ConfigSource to the Active config. Errors may occur, for
|
||||
/// example, attempting to checkpoint Spec.ConfigSource to the local
|
||||
/// Assigned record, attempting to checkpoint the payload associated
|
||||
/// with Spec.ConfigSource, attempting to load or validate the Assigned
|
||||
/// config, etc. Errors may occur at different points while syncing
|
||||
/// config. Earlier errors (e.g. download or checkpointing errors) will
|
||||
/// not result in a rollback to LastKnownGood, and may resolve across
|
||||
/// Kubelet retries. Later errors (e.g. loading or validating a
|
||||
/// checkpointed config) will result in a rollback to LastKnownGood. In
|
||||
/// the latter case, it is usually possible to resolve the error by
|
||||
/// fixing the config assigned in Spec.ConfigSource. You can find
|
||||
/// additional information for debugging by searching the error message
|
||||
/// in the Kubelet log. Error is a human-readable description of the
|
||||
/// error state; machines can check whether or not Error is empty, but
|
||||
/// should not rely on the stability of the Error text across Kubelet
|
||||
/// versions.</param>
|
||||
/// <param name="lastKnownGood">LastKnownGood reports the checkpointed
|
||||
/// config the node will fall back to when it encounters an error
|
||||
/// attempting to use the Assigned config. The Assigned config becomes
|
||||
/// the LastKnownGood config when the node determines that the Assigned
|
||||
/// config is stable and correct. This is currently implemented as a
|
||||
/// 10-minute soak period starting when the local record of Assigned
|
||||
/// config is updated. If the Assigned config is Active at the end of
|
||||
/// this period, it becomes the LastKnownGood. Note that if
|
||||
/// Spec.ConfigSource is reset to nil (use local defaults), the
|
||||
/// LastKnownGood is also immediately reset to nil, because the local
|
||||
/// default config is always assumed good. You should not make
|
||||
/// assumptions about the node's method of determining config stability
|
||||
/// and correctness, as this may change or become configurable in the
|
||||
/// future.</param>
|
||||
public V1NodeConfigStatus(V1NodeConfigSource active = default(V1NodeConfigSource), V1NodeConfigSource assigned = default(V1NodeConfigSource), string error = default(string), V1NodeConfigSource lastKnownGood = default(V1NodeConfigSource))
|
||||
{
|
||||
Active = active;
|
||||
Assigned = assigned;
|
||||
Error = error;
|
||||
LastKnownGood = lastKnownGood;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets active reports the checkpointed config the node is
|
||||
/// actively using. Active will represent either the current version of
|
||||
/// the Assigned config, or the current LastKnownGood config, depending
|
||||
/// on whether attempting to use the Assigned config results in an
|
||||
/// error.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "active")]
|
||||
public V1NodeConfigSource Active { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets assigned reports the checkpointed config the node will
|
||||
/// try to use. When Node.Spec.ConfigSource is updated, the node
|
||||
/// checkpoints the associated config payload to local disk, along with
|
||||
/// a record indicating intended config. The node refers to this record
|
||||
/// to choose its config checkpoint, and reports this record in
|
||||
/// Assigned. Assigned only updates in the status after the record has
|
||||
/// been checkpointed to disk. When the Kubelet is restarted, it tries
|
||||
/// to make the Assigned config the Active config by loading and
|
||||
/// validating the checkpointed payload identified by Assigned.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "assigned")]
|
||||
public V1NodeConfigSource Assigned { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets error describes any problems reconciling the
|
||||
/// Spec.ConfigSource to the Active config. Errors may occur, for
|
||||
/// example, attempting to checkpoint Spec.ConfigSource to the local
|
||||
/// Assigned record, attempting to checkpoint the payload associated
|
||||
/// with Spec.ConfigSource, attempting to load or validate the Assigned
|
||||
/// config, etc. Errors may occur at different points while syncing
|
||||
/// config. Earlier errors (e.g. download or checkpointing errors) will
|
||||
/// not result in a rollback to LastKnownGood, and may resolve across
|
||||
/// Kubelet retries. Later errors (e.g. loading or validating a
|
||||
/// checkpointed config) will result in a rollback to LastKnownGood. In
|
||||
/// the latter case, it is usually possible to resolve the error by
|
||||
/// fixing the config assigned in Spec.ConfigSource. You can find
|
||||
/// additional information for debugging by searching the error message
|
||||
/// in the Kubelet log. Error is a human-readable description of the
|
||||
/// error state; machines can check whether or not Error is empty, but
|
||||
/// should not rely on the stability of the Error text across Kubelet
|
||||
/// versions.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "error")]
|
||||
public string Error { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets lastKnownGood reports the checkpointed config the node
|
||||
/// will fall back to when it encounters an error attempting to use the
|
||||
/// Assigned config. The Assigned config becomes the LastKnownGood
|
||||
/// config when the node determines that the Assigned config is stable
|
||||
/// and correct. This is currently implemented as a 10-minute soak
|
||||
/// period starting when the local record of Assigned config is
|
||||
/// updated. If the Assigned config is Active at the end of this
|
||||
/// period, it becomes the LastKnownGood. Note that if
|
||||
/// Spec.ConfigSource is reset to nil (use local defaults), the
|
||||
/// LastKnownGood is also immediately reset to nil, because the local
|
||||
/// default config is always assumed good. You should not make
|
||||
/// assumptions about the node's method of determining config stability
|
||||
/// and correctness, as this may change or become configurable in the
|
||||
/// future.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "lastKnownGood")]
|
||||
public V1NodeConfigSource LastKnownGood { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Active != null)
|
||||
{
|
||||
Active.Validate();
|
||||
}
|
||||
if (Assigned != null)
|
||||
{
|
||||
Assigned.Validate();
|
||||
}
|
||||
if (LastKnownGood != null)
|
||||
{
|
||||
LastKnownGood.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -62,16 +62,6 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "NodeSelectorTerms");
|
||||
}
|
||||
if (NodeSelectorTerms != null)
|
||||
{
|
||||
foreach (var element in NodeSelectorTerms)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,14 +6,15 @@
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// A null or empty node selector term matches no objects.
|
||||
/// A null or empty node selector term matches no objects. The requirements
|
||||
/// of them are ANDed. The TopologySelectorTerm type implements a subset of
|
||||
/// the NodeSelectorTerm.
|
||||
/// </summary>
|
||||
public partial class V1NodeSelectorTerm
|
||||
{
|
||||
@@ -28,11 +29,14 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1NodeSelectorTerm class.
|
||||
/// </summary>
|
||||
/// <param name="matchExpressions">Required. A list of node selector
|
||||
/// requirements. The requirements are ANDed.</param>
|
||||
public V1NodeSelectorTerm(IList<V1NodeSelectorRequirement> matchExpressions)
|
||||
/// <param name="matchExpressions">A list of node selector requirements
|
||||
/// by node's labels.</param>
|
||||
/// <param name="matchFields">A list of node selector requirements by
|
||||
/// node's fields.</param>
|
||||
public V1NodeSelectorTerm(IList<V1NodeSelectorRequirement> matchExpressions = default(IList<V1NodeSelectorRequirement>), IList<V1NodeSelectorRequirement> matchFields = default(IList<V1NodeSelectorRequirement>))
|
||||
{
|
||||
MatchExpressions = matchExpressions;
|
||||
MatchFields = matchFields;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -42,34 +46,16 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets required. A list of node selector requirements. The
|
||||
/// requirements are ANDed.
|
||||
/// Gets or sets a list of node selector requirements by node's labels.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "matchExpressions")]
|
||||
public IList<V1NodeSelectorRequirement> MatchExpressions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// Gets or sets a list of node selector requirements by node's fields.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (MatchExpressions == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "MatchExpressions");
|
||||
}
|
||||
if (MatchExpressions != null)
|
||||
{
|
||||
foreach (var element in MatchExpressions)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
[JsonProperty(PropertyName = "matchFields")]
|
||||
public IList<V1NodeSelectorRequirement> MatchFields { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,8 +30,9 @@ namespace k8s.Models
|
||||
/// <param name="configSource">If specified, the source to get node
|
||||
/// configuration from The DynamicKubeletConfig feature gate must be
|
||||
/// enabled for the Kubelet to use this field</param>
|
||||
/// <param name="externalID">External ID of the node assigned by some
|
||||
/// machine database (e.g. a cloud provider). Deprecated.</param>
|
||||
/// <param name="externalID">Deprecated. Not all kubelets will set this
|
||||
/// field. Remove field after 1.13. see:
|
||||
/// https://issues.k8s.io/61966</param>
|
||||
/// <param name="podCIDR">PodCIDR represents the pod IP range assigned
|
||||
/// to the node.</param>
|
||||
/// <param name="providerID">ID of the node assigned by the cloud
|
||||
@@ -67,8 +68,8 @@ namespace k8s.Models
|
||||
public V1NodeConfigSource ConfigSource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets external ID of the node assigned by some machine
|
||||
/// database (e.g. a cloud provider). Deprecated.
|
||||
/// Gets or sets deprecated. Not all kubelets will set this field.
|
||||
/// Remove field after 1.13. see: https://issues.k8s.io/61966
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "externalID")]
|
||||
public string ExternalID { get; set; }
|
||||
@@ -102,5 +103,28 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "unschedulable")]
|
||||
public bool? Unschedulable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (ConfigSource != null)
|
||||
{
|
||||
ConfigSource.Validate();
|
||||
}
|
||||
if (Taints != null)
|
||||
{
|
||||
foreach (var element in Taints)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace k8s.Models
|
||||
/// <param name="conditions">Conditions is an array of current observed
|
||||
/// node conditions. More info:
|
||||
/// https://kubernetes.io/docs/concepts/nodes/node/#condition</param>
|
||||
/// <param name="config">Status of the config assigned to the node via
|
||||
/// the dynamic Kubelet config feature.</param>
|
||||
/// <param name="daemonEndpoints">Endpoints of daemons running on the
|
||||
/// Node.</param>
|
||||
/// <param name="images">List of container images on this node</param>
|
||||
@@ -53,12 +55,13 @@ namespace k8s.Models
|
||||
/// the node.</param>
|
||||
/// <param name="volumesInUse">List of attachable volumes in use
|
||||
/// (mounted) by the node.</param>
|
||||
public V1NodeStatus(IList<V1NodeAddress> addresses = default(IList<V1NodeAddress>), IDictionary<string, ResourceQuantity> allocatable = default(IDictionary<string, ResourceQuantity>), IDictionary<string, ResourceQuantity> capacity = default(IDictionary<string, ResourceQuantity>), IList<V1NodeCondition> conditions = default(IList<V1NodeCondition>), V1NodeDaemonEndpoints daemonEndpoints = default(V1NodeDaemonEndpoints), IList<V1ContainerImage> images = default(IList<V1ContainerImage>), V1NodeSystemInfo nodeInfo = default(V1NodeSystemInfo), string phase = default(string), IList<V1AttachedVolume> volumesAttached = default(IList<V1AttachedVolume>), IList<string> volumesInUse = default(IList<string>))
|
||||
public V1NodeStatus(IList<V1NodeAddress> addresses = default(IList<V1NodeAddress>), IDictionary<string, ResourceQuantity> allocatable = default(IDictionary<string, ResourceQuantity>), IDictionary<string, ResourceQuantity> capacity = default(IDictionary<string, ResourceQuantity>), IList<V1NodeCondition> conditions = default(IList<V1NodeCondition>), V1NodeConfigStatus config = default(V1NodeConfigStatus), V1NodeDaemonEndpoints daemonEndpoints = default(V1NodeDaemonEndpoints), IList<V1ContainerImage> images = default(IList<V1ContainerImage>), V1NodeSystemInfo nodeInfo = default(V1NodeSystemInfo), string phase = default(string), IList<V1AttachedVolume> volumesAttached = default(IList<V1AttachedVolume>), IList<string> volumesInUse = default(IList<string>))
|
||||
{
|
||||
Addresses = addresses;
|
||||
Allocatable = allocatable;
|
||||
Capacity = capacity;
|
||||
Conditions = conditions;
|
||||
Config = config;
|
||||
DaemonEndpoints = daemonEndpoints;
|
||||
Images = images;
|
||||
NodeInfo = nodeInfo;
|
||||
@@ -104,6 +107,13 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
public IList<V1NodeCondition> Conditions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets status of the config assigned to the node via the
|
||||
/// dynamic Kubelet config feature.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "config")]
|
||||
public V1NodeConfigStatus Config { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets endpoints of daemons running on the Node.
|
||||
/// </summary>
|
||||
@@ -173,6 +183,10 @@ namespace k8s.Models
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Config != null)
|
||||
{
|
||||
Config.Validate();
|
||||
}
|
||||
if (DaemonEndpoints != null)
|
||||
{
|
||||
DaemonEndpoints.Validate();
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace k8s.Models
|
||||
/// This is an alpha feature and may change in the future.</param>
|
||||
/// <param name="vsphereVolume">VsphereVolume represents a vSphere
|
||||
/// volume attached and mounted on kubelets host machine</param>
|
||||
public V1PersistentVolumeSpec(IList<string> accessModes = default(IList<string>), V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore = default(V1AWSElasticBlockStoreVolumeSource), V1AzureDiskVolumeSource azureDisk = default(V1AzureDiskVolumeSource), V1AzureFilePersistentVolumeSource azureFile = default(V1AzureFilePersistentVolumeSource), IDictionary<string, ResourceQuantity> capacity = default(IDictionary<string, ResourceQuantity>), V1CephFSPersistentVolumeSource cephfs = default(V1CephFSPersistentVolumeSource), V1CinderVolumeSource cinder = default(V1CinderVolumeSource), V1ObjectReference claimRef = default(V1ObjectReference), V1CSIPersistentVolumeSource csi = default(V1CSIPersistentVolumeSource), V1FCVolumeSource fc = default(V1FCVolumeSource), V1FlexPersistentVolumeSource flexVolume = default(V1FlexPersistentVolumeSource), V1FlockerVolumeSource flocker = default(V1FlockerVolumeSource), V1GCEPersistentDiskVolumeSource gcePersistentDisk = default(V1GCEPersistentDiskVolumeSource), V1GlusterfsVolumeSource glusterfs = default(V1GlusterfsVolumeSource), V1HostPathVolumeSource hostPath = default(V1HostPathVolumeSource), V1ISCSIPersistentVolumeSource iscsi = default(V1ISCSIPersistentVolumeSource), V1LocalVolumeSource local = default(V1LocalVolumeSource), IList<string> mountOptions = default(IList<string>), V1NFSVolumeSource nfs = default(V1NFSVolumeSource), V1VolumeNodeAffinity nodeAffinity = default(V1VolumeNodeAffinity), string persistentVolumeReclaimPolicy = default(string), V1PhotonPersistentDiskVolumeSource photonPersistentDisk = default(V1PhotonPersistentDiskVolumeSource), V1PortworxVolumeSource portworxVolume = default(V1PortworxVolumeSource), V1QuobyteVolumeSource quobyte = default(V1QuobyteVolumeSource), V1RBDPersistentVolumeSource rbd = default(V1RBDPersistentVolumeSource), V1ScaleIOPersistentVolumeSource scaleIO = default(V1ScaleIOPersistentVolumeSource), string storageClassName = default(string), V1StorageOSPersistentVolumeSource storageos = default(V1StorageOSPersistentVolumeSource), string volumeMode = default(string), V1VsphereVirtualDiskVolumeSource vsphereVolume = default(V1VsphereVirtualDiskVolumeSource))
|
||||
public V1PersistentVolumeSpec(IList<string> accessModes = default(IList<string>), V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore = default(V1AWSElasticBlockStoreVolumeSource), V1AzureDiskVolumeSource azureDisk = default(V1AzureDiskVolumeSource), V1AzureFilePersistentVolumeSource azureFile = default(V1AzureFilePersistentVolumeSource), IDictionary<string, ResourceQuantity> capacity = default(IDictionary<string, ResourceQuantity>), V1CephFSPersistentVolumeSource cephfs = default(V1CephFSPersistentVolumeSource), V1CinderPersistentVolumeSource cinder = default(V1CinderPersistentVolumeSource), V1ObjectReference claimRef = default(V1ObjectReference), V1CSIPersistentVolumeSource csi = default(V1CSIPersistentVolumeSource), V1FCVolumeSource fc = default(V1FCVolumeSource), V1FlexPersistentVolumeSource flexVolume = default(V1FlexPersistentVolumeSource), V1FlockerVolumeSource flocker = default(V1FlockerVolumeSource), V1GCEPersistentDiskVolumeSource gcePersistentDisk = default(V1GCEPersistentDiskVolumeSource), V1GlusterfsVolumeSource glusterfs = default(V1GlusterfsVolumeSource), V1HostPathVolumeSource hostPath = default(V1HostPathVolumeSource), V1ISCSIPersistentVolumeSource iscsi = default(V1ISCSIPersistentVolumeSource), V1LocalVolumeSource local = default(V1LocalVolumeSource), IList<string> mountOptions = default(IList<string>), V1NFSVolumeSource nfs = default(V1NFSVolumeSource), V1VolumeNodeAffinity nodeAffinity = default(V1VolumeNodeAffinity), string persistentVolumeReclaimPolicy = default(string), V1PhotonPersistentDiskVolumeSource photonPersistentDisk = default(V1PhotonPersistentDiskVolumeSource), V1PortworxVolumeSource portworxVolume = default(V1PortworxVolumeSource), V1QuobyteVolumeSource quobyte = default(V1QuobyteVolumeSource), V1RBDPersistentVolumeSource rbd = default(V1RBDPersistentVolumeSource), V1ScaleIOPersistentVolumeSource scaleIO = default(V1ScaleIOPersistentVolumeSource), string storageClassName = default(string), V1StorageOSPersistentVolumeSource storageos = default(V1StorageOSPersistentVolumeSource), string volumeMode = default(string), V1VsphereVirtualDiskVolumeSource vsphereVolume = default(V1VsphereVirtualDiskVolumeSource))
|
||||
{
|
||||
AccessModes = accessModes;
|
||||
AwsElasticBlockStore = awsElasticBlockStore;
|
||||
@@ -215,7 +215,7 @@ namespace k8s.Models
|
||||
/// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "cinder")]
|
||||
public V1CinderVolumeSource Cinder { get; set; }
|
||||
public V1CinderPersistentVolumeSource Cinder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets claimRef is part of a bi-directional binding between
|
||||
|
||||
@@ -29,8 +29,7 @@ namespace k8s.Models
|
||||
/// <param name="status">Status is the status of the condition. Can be
|
||||
/// True, False, Unknown. More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions</param>
|
||||
/// <param name="type">Type is the type of the condition. Currently
|
||||
/// only Ready. More info:
|
||||
/// <param name="type">Type is the type of the condition. More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions</param>
|
||||
/// <param name="lastProbeTime">Last time we probed the
|
||||
/// condition.</param>
|
||||
@@ -92,8 +91,7 @@ namespace k8s.Models
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type is the type of the condition. Currently only
|
||||
/// Ready. More info:
|
||||
/// Gets or sets type is the type of the condition. More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
|
||||
@@ -11,25 +11,26 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// JSON represents any valid JSON value. These types are supported: bool,
|
||||
/// int64, float64, string, []interface{}, map[string]interface{} and nil.
|
||||
/// PodReadinessGate contains the reference to a pod condition
|
||||
/// </summary>
|
||||
public partial class V1beta1JSON
|
||||
public partial class V1PodReadinessGate
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1JSON class.
|
||||
/// Initializes a new instance of the V1PodReadinessGate class.
|
||||
/// </summary>
|
||||
public V1beta1JSON()
|
||||
public V1PodReadinessGate()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1JSON class.
|
||||
/// Initializes a new instance of the V1PodReadinessGate class.
|
||||
/// </summary>
|
||||
public V1beta1JSON(byte[] raw)
|
||||
/// <param name="conditionType">ConditionType refers to a condition in
|
||||
/// the pod's condition list with matching type.</param>
|
||||
public V1PodReadinessGate(string conditionType)
|
||||
{
|
||||
Raw = raw;
|
||||
ConditionType = conditionType;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -39,9 +40,11 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets conditionType refers to a condition in the pod's
|
||||
/// condition list with matching type.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "Raw")]
|
||||
public byte[] Raw { get; set; }
|
||||
[JsonProperty(PropertyName = "conditionType")]
|
||||
public string ConditionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
@@ -51,9 +54,9 @@ namespace k8s.Models
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Raw == null)
|
||||
if (ConditionType == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Raw");
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "ConditionType");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -67,7 +67,10 @@ namespace k8s.Models
|
||||
/// first process run in each container, in addition to the container's
|
||||
/// primary GID. If unspecified, no groups will be added to any
|
||||
/// container.</param>
|
||||
public V1PodSecurityContext(long? fsGroup = default(long?), long? runAsGroup = default(long?), bool? runAsNonRoot = default(bool?), long? runAsUser = default(long?), V1SELinuxOptions seLinuxOptions = default(V1SELinuxOptions), IList<long?> supplementalGroups = default(IList<long?>))
|
||||
/// <param name="sysctls">Sysctls hold a list of namespaced sysctls
|
||||
/// used for the pod. Pods with unsupported sysctls (by the container
|
||||
/// runtime) might fail to launch.</param>
|
||||
public V1PodSecurityContext(long? fsGroup = default(long?), long? runAsGroup = default(long?), bool? runAsNonRoot = default(bool?), long? runAsUser = default(long?), V1SELinuxOptions seLinuxOptions = default(V1SELinuxOptions), IList<long?> supplementalGroups = default(IList<long?>), IList<V1Sysctl> sysctls = default(IList<V1Sysctl>))
|
||||
{
|
||||
FsGroup = fsGroup;
|
||||
RunAsGroup = runAsGroup;
|
||||
@@ -75,6 +78,7 @@ namespace k8s.Models
|
||||
RunAsUser = runAsUser;
|
||||
SeLinuxOptions = seLinuxOptions;
|
||||
SupplementalGroups = supplementalGroups;
|
||||
Sysctls = sysctls;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -149,5 +153,13 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "supplementalGroups")]
|
||||
public IList<long?> SupplementalGroups { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets sysctls hold a list of namespaced sysctls used for the
|
||||
/// pod. Pods with unsupported sysctls (by the container runtime) might
|
||||
/// fail to launch.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "sysctls")]
|
||||
public IList<V1Sysctl> Sysctls { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,6 +105,11 @@ namespace k8s.Models
|
||||
/// by creating a PriorityClass object with that name. If not
|
||||
/// specified, the pod priority will be default or zero if there is no
|
||||
/// default.</param>
|
||||
/// <param name="readinessGates">If specified, all readiness gates will
|
||||
/// be evaluated for pod readiness. A pod is ready when all its
|
||||
/// containers are ready AND all conditions specified in the readiness
|
||||
/// gates have status equal to "True" More info:
|
||||
/// https://github.com/kubernetes/community/blob/master/keps/sig-network/0007-pod-ready%2B%2B.md</param>
|
||||
/// <param name="restartPolicy">Restart policy for all containers
|
||||
/// within the pod. One of Always, OnFailure, Never. Default to Always.
|
||||
/// More info:
|
||||
@@ -148,7 +153,7 @@ namespace k8s.Models
|
||||
/// <param name="volumes">List of volumes that can be mounted by
|
||||
/// containers belonging to the pod. More info:
|
||||
/// https://kubernetes.io/docs/concepts/storage/volumes</param>
|
||||
public V1PodSpec(IList<V1Container> containers, long? activeDeadlineSeconds = default(long?), V1Affinity affinity = default(V1Affinity), bool? automountServiceAccountToken = default(bool?), V1PodDNSConfig dnsConfig = default(V1PodDNSConfig), string dnsPolicy = default(string), IList<V1HostAlias> hostAliases = default(IList<V1HostAlias>), bool? hostIPC = default(bool?), bool? hostNetwork = default(bool?), bool? hostPID = default(bool?), string hostname = default(string), IList<V1LocalObjectReference> imagePullSecrets = default(IList<V1LocalObjectReference>), IList<V1Container> initContainers = default(IList<V1Container>), string nodeName = default(string), IDictionary<string, string> nodeSelector = default(IDictionary<string, string>), int? priority = default(int?), string priorityClassName = default(string), string restartPolicy = default(string), string schedulerName = default(string), V1PodSecurityContext securityContext = default(V1PodSecurityContext), string serviceAccount = default(string), string serviceAccountName = default(string), bool? shareProcessNamespace = default(bool?), string subdomain = default(string), long? terminationGracePeriodSeconds = default(long?), IList<V1Toleration> tolerations = default(IList<V1Toleration>), IList<V1Volume> volumes = default(IList<V1Volume>))
|
||||
public V1PodSpec(IList<V1Container> containers, long? activeDeadlineSeconds = default(long?), V1Affinity affinity = default(V1Affinity), bool? automountServiceAccountToken = default(bool?), V1PodDNSConfig dnsConfig = default(V1PodDNSConfig), string dnsPolicy = default(string), IList<V1HostAlias> hostAliases = default(IList<V1HostAlias>), bool? hostIPC = default(bool?), bool? hostNetwork = default(bool?), bool? hostPID = default(bool?), string hostname = default(string), IList<V1LocalObjectReference> imagePullSecrets = default(IList<V1LocalObjectReference>), IList<V1Container> initContainers = default(IList<V1Container>), string nodeName = default(string), IDictionary<string, string> nodeSelector = default(IDictionary<string, string>), int? priority = default(int?), string priorityClassName = default(string), IList<V1PodReadinessGate> readinessGates = default(IList<V1PodReadinessGate>), string restartPolicy = default(string), string schedulerName = default(string), V1PodSecurityContext securityContext = default(V1PodSecurityContext), string serviceAccount = default(string), string serviceAccountName = default(string), bool? shareProcessNamespace = default(bool?), string subdomain = default(string), long? terminationGracePeriodSeconds = default(long?), IList<V1Toleration> tolerations = default(IList<V1Toleration>), IList<V1Volume> volumes = default(IList<V1Volume>))
|
||||
{
|
||||
ActiveDeadlineSeconds = activeDeadlineSeconds;
|
||||
Affinity = affinity;
|
||||
@@ -167,6 +172,7 @@ namespace k8s.Models
|
||||
NodeSelector = nodeSelector;
|
||||
Priority = priority;
|
||||
PriorityClassName = priorityClassName;
|
||||
ReadinessGates = readinessGates;
|
||||
RestartPolicy = restartPolicy;
|
||||
SchedulerName = schedulerName;
|
||||
SecurityContext = securityContext;
|
||||
@@ -342,6 +348,16 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "priorityClassName")]
|
||||
public string PriorityClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets if specified, all readiness gates will be evaluated
|
||||
/// for pod readiness. A pod is ready when all its containers are ready
|
||||
/// AND all conditions specified in the readiness gates have status
|
||||
/// equal to "True" More info:
|
||||
/// https://github.com/kubernetes/community/blob/master/keps/sig-network/0007-pod-ready%2B%2B.md
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "readinessGates")]
|
||||
public IList<V1PodReadinessGate> ReadinessGates { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets restart policy for all containers within the pod. One
|
||||
/// of Always, OnFailure, Never. Default to Always. More info:
|
||||
@@ -466,9 +482,9 @@ namespace k8s.Models
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Volumes != null)
|
||||
if (ReadinessGates != null)
|
||||
{
|
||||
foreach (var element2 in Volumes)
|
||||
foreach (var element2 in ReadinessGates)
|
||||
{
|
||||
if (element2 != null)
|
||||
{
|
||||
@@ -476,6 +492,16 @@ namespace k8s.Models
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Volumes != null)
|
||||
{
|
||||
foreach (var element3 in Volumes)
|
||||
{
|
||||
if (element3 != null)
|
||||
{
|
||||
element3.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,8 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// PodStatus represents information about the status of a pod. Status may
|
||||
/// trail the actual state of a system.
|
||||
/// trail the actual state of a system, especially if the node that hosts
|
||||
/// the pod cannot contact the control plane.
|
||||
/// </summary>
|
||||
public partial class V1PodStatus
|
||||
{
|
||||
@@ -53,7 +54,28 @@ namespace k8s.Models
|
||||
/// pod that is created after preemption. As a result, this field may
|
||||
/// be different than PodSpec.nodeName when the pod is
|
||||
/// scheduled.</param>
|
||||
/// <param name="phase">Current condition of the pod. More info:
|
||||
/// <param name="phase">The phase of a Pod is a simple, high-level
|
||||
/// summary of where the Pod is in its lifecycle. The conditions array,
|
||||
/// the reason and message fields, and the individual container status
|
||||
/// arrays contain more detail about the pod's status. There are five
|
||||
/// possible phase values:
|
||||
///
|
||||
/// Pending: The pod has been accepted by the Kubernetes system, but
|
||||
/// one or more of the container images has not been created. This
|
||||
/// includes time before being scheduled as well as time spent
|
||||
/// downloading images over the network, which could take a while.
|
||||
/// Running: The pod has been bound to a node, and all of the
|
||||
/// containers have been created. At least one container is still
|
||||
/// running, or is in the process of starting or restarting. Succeeded:
|
||||
/// All containers in the pod have terminated in success, and will not
|
||||
/// be restarted. Failed: All containers in the pod have terminated,
|
||||
/// and at least one container has terminated in failure. The container
|
||||
/// either exited with non-zero status or was terminated by the system.
|
||||
/// Unknown: For some reason the state of the pod could not be
|
||||
/// obtained, typically due to an error in communicating with the host
|
||||
/// of the pod.
|
||||
///
|
||||
/// More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase</param>
|
||||
/// <param name="podIP">IP address allocated to the pod. Routable at
|
||||
/// least within the cluster. Empty if not yet allocated.</param>
|
||||
@@ -141,7 +163,28 @@ namespace k8s.Models
|
||||
public string NominatedNodeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets current condition of the pod. More info:
|
||||
/// Gets or sets the phase of a Pod is a simple, high-level summary of
|
||||
/// where the Pod is in its lifecycle. The conditions array, the reason
|
||||
/// and message fields, and the individual container status arrays
|
||||
/// contain more detail about the pod's status. There are five possible
|
||||
/// phase values:
|
||||
///
|
||||
/// Pending: The pod has been accepted by the Kubernetes system, but
|
||||
/// one or more of the container images has not been created. This
|
||||
/// includes time before being scheduled as well as time spent
|
||||
/// downloading images over the network, which could take a while.
|
||||
/// Running: The pod has been bound to a node, and all of the
|
||||
/// containers have been created. At least one container is still
|
||||
/// running, or is in the process of starting or restarting. Succeeded:
|
||||
/// All containers in the pod have terminated in success, and will not
|
||||
/// be restarted. Failed: All containers in the pod have terminated,
|
||||
/// and at least one container has terminated in failure. The container
|
||||
/// either exited with non-zero status or was terminated by the system.
|
||||
/// Unknown: For some reason the state of the pod could not be
|
||||
/// obtained, typically due to an error in communicating with the host
|
||||
/// of the pod.
|
||||
///
|
||||
/// More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "phase")]
|
||||
|
||||
@@ -70,10 +70,6 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Preference");
|
||||
}
|
||||
if (Preference != null)
|
||||
{
|
||||
Preference.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,6 +74,16 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Sources");
|
||||
}
|
||||
if (Sources != null)
|
||||
{
|
||||
foreach (var element in Sources)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,15 +27,21 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1ResourceQuotaSpec class.
|
||||
/// </summary>
|
||||
/// <param name="hard">Hard is the set of desired hard limits for each
|
||||
/// <param name="hard">hard is the set of desired hard limits for each
|
||||
/// named resource. More info:
|
||||
/// https://kubernetes.io/docs/concepts/policy/resource-quotas/</param>
|
||||
/// <param name="scopeSelector">scopeSelector is also a collection of
|
||||
/// filters like scopes that must match each object tracked by a quota
|
||||
/// but expressed using ScopeSelectorOperator in combination with
|
||||
/// possible values. For a resource to match, both scopes AND
|
||||
/// scopeSelector (if specified in spec), must be matched.</param>
|
||||
/// <param name="scopes">A collection of filters that must match each
|
||||
/// object tracked by a quota. If not specified, the quota matches all
|
||||
/// objects.</param>
|
||||
public V1ResourceQuotaSpec(IDictionary<string, ResourceQuantity> hard = default(IDictionary<string, ResourceQuantity>), IList<string> scopes = default(IList<string>))
|
||||
public V1ResourceQuotaSpec(IDictionary<string, ResourceQuantity> hard = default(IDictionary<string, ResourceQuantity>), V1ScopeSelector scopeSelector = default(V1ScopeSelector), IList<string> scopes = default(IList<string>))
|
||||
{
|
||||
Hard = hard;
|
||||
ScopeSelector = scopeSelector;
|
||||
Scopes = scopes;
|
||||
CustomInit();
|
||||
}
|
||||
@@ -53,6 +59,16 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "hard")]
|
||||
public IDictionary<string, ResourceQuantity> Hard { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets scopeSelector is also a collection of filters like
|
||||
/// scopes that must match each object tracked by a quota but expressed
|
||||
/// using ScopeSelectorOperator in combination with possible values.
|
||||
/// For a resource to match, both scopes AND scopeSelector (if
|
||||
/// specified in spec), must be matched.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "scopeSelector")]
|
||||
public V1ScopeSelector ScopeSelector { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a collection of filters that must match each object
|
||||
/// tracked by a quota. If not specified, the quota matches all
|
||||
|
||||
@@ -35,8 +35,6 @@ namespace k8s.Models
|
||||
/// <param name="roleRef">RoleRef can reference a Role in the current
|
||||
/// namespace or a ClusterRole in the global namespace. If the RoleRef
|
||||
/// cannot be resolved, the Authorizer must return an error.</param>
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
@@ -48,7 +46,9 @@ namespace k8s.Models
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">Standard object's metadata.</param>
|
||||
public V1RoleBinding(V1RoleRef roleRef, IList<V1Subject> subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
public V1RoleBinding(V1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<V1Subject> subjects = default(IList<V1Subject>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -116,10 +116,6 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "RoleRef");
|
||||
}
|
||||
if (Subjects == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Subjects");
|
||||
}
|
||||
if (Metadata != null)
|
||||
{
|
||||
Metadata.Validate();
|
||||
|
||||
@@ -30,10 +30,10 @@ namespace k8s.Models
|
||||
/// absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
|
||||
/// This can not be 0 if MaxUnavailable is 0. Absolute number is
|
||||
/// calculated from percentage by rounding up. Defaults to 25%.
|
||||
/// Example: when this is set to 30%, the new RC can be scaled up
|
||||
/// immediately when the rolling update starts, such that the total
|
||||
/// Example: when this is set to 30%, the new ReplicaSet can be scaled
|
||||
/// up immediately when the rolling update starts, such that the total
|
||||
/// number of old and new pods do not exceed 130% of desired pods. Once
|
||||
/// old pods have been killed, new RC can be scaled up further,
|
||||
/// old pods have been killed, new ReplicaSet can be scaled up further,
|
||||
/// ensuring that total number of pods running at any time during the
|
||||
/// update is at most 130% of desired pods.</param>
|
||||
/// <param name="maxUnavailable">The maximum number of pods that can be
|
||||
@@ -41,11 +41,12 @@ namespace k8s.Models
|
||||
/// 5) or a percentage of desired pods (ex: 10%). Absolute number is
|
||||
/// calculated from percentage by rounding down. This can not be 0 if
|
||||
/// MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%,
|
||||
/// the old RC can be scaled down to 70% of desired pods immediately
|
||||
/// when the rolling update starts. Once new pods are ready, old RC can
|
||||
/// be scaled down further, followed by scaling up the new RC, ensuring
|
||||
/// that the total number of pods available at all times during the
|
||||
/// update is at least 70% of desired pods.</param>
|
||||
/// the old ReplicaSet can be scaled down to 70% of desired pods
|
||||
/// immediately when the rolling update starts. Once new pods are
|
||||
/// ready, old ReplicaSet can be scaled down further, followed by
|
||||
/// scaling up the new ReplicaSet, ensuring that the total number of
|
||||
/// pods available at all times during the update is at least 70% of
|
||||
/// desired pods.</param>
|
||||
public V1RollingUpdateDeployment(IntstrIntOrString maxSurge = default(IntstrIntOrString), IntstrIntOrString maxUnavailable = default(IntstrIntOrString))
|
||||
{
|
||||
MaxSurge = maxSurge;
|
||||
@@ -64,12 +65,12 @@ namespace k8s.Models
|
||||
/// or a percentage of desired pods (ex: 10%). This can not be 0 if
|
||||
/// MaxUnavailable is 0. Absolute number is calculated from percentage
|
||||
/// by rounding up. Defaults to 25%. Example: when this is set to 30%,
|
||||
/// the new RC can be scaled up immediately when the rolling update
|
||||
/// starts, such that the total number of old and new pods do not
|
||||
/// exceed 130% of desired pods. Once old pods have been killed, new RC
|
||||
/// can be scaled up further, ensuring that total number of pods
|
||||
/// running at any time during the update is at most 130% of desired
|
||||
/// pods.
|
||||
/// the new ReplicaSet can be scaled up immediately when the rolling
|
||||
/// update starts, such that the total number of old and new pods do
|
||||
/// not exceed 130% of desired pods. Once old pods have been killed,
|
||||
/// new ReplicaSet can be scaled up further, ensuring that total number
|
||||
/// of pods running at any time during the update is at most 130% of
|
||||
/// desired pods.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maxSurge")]
|
||||
public IntstrIntOrString MaxSurge { get; set; }
|
||||
@@ -79,12 +80,12 @@ namespace k8s.Models
|
||||
/// during the update. Value can be an absolute number (ex: 5) or a
|
||||
/// percentage of desired pods (ex: 10%). Absolute number is calculated
|
||||
/// from percentage by rounding down. This can not be 0 if MaxSurge is
|
||||
/// 0. Defaults to 25%. Example: when this is set to 30%, the old RC
|
||||
/// can be scaled down to 70% of desired pods immediately when the
|
||||
/// rolling update starts. Once new pods are ready, old RC can be
|
||||
/// scaled down further, followed by scaling up the new RC, ensuring
|
||||
/// that the total number of pods available at all times during the
|
||||
/// update is at least 70% of desired pods.
|
||||
/// 0. Defaults to 25%. Example: when this is set to 30%, the old
|
||||
/// ReplicaSet can be scaled down to 70% of desired pods immediately
|
||||
/// when the rolling update starts. Once new pods are ready, old
|
||||
/// ReplicaSet can be scaled down further, followed by scaling up the
|
||||
/// new ReplicaSet, ensuring that the total number of pods available at
|
||||
/// all times during the update is at least 70% of desired pods.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maxUnavailable")]
|
||||
public IntstrIntOrString MaxUnavailable { get; set; }
|
||||
|
||||
52
src/KubernetesClient/generated/Models/V1ScopeSelector.cs
Normal file
52
src/KubernetesClient/generated/Models/V1ScopeSelector.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// A scope selector represents the AND of the selectors represented by the
|
||||
/// scoped-resource selector requirements.
|
||||
/// </summary>
|
||||
public partial class V1ScopeSelector
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1ScopeSelector class.
|
||||
/// </summary>
|
||||
public V1ScopeSelector()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1ScopeSelector class.
|
||||
/// </summary>
|
||||
/// <param name="matchExpressions">A list of scope selector
|
||||
/// requirements by scope of the resources.</param>
|
||||
public V1ScopeSelector(IList<V1ScopedResourceSelectorRequirement> matchExpressions = default(IList<V1ScopedResourceSelectorRequirement>))
|
||||
{
|
||||
MatchExpressions = matchExpressions;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a list of scope selector requirements by scope of the
|
||||
/// resources.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "matchExpressions")]
|
||||
public IList<V1ScopedResourceSelectorRequirement> MatchExpressions { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// A scoped-resource selector requirement is a selector that contains
|
||||
/// values, a scope name, and an operator that relates the scope name and
|
||||
/// values.
|
||||
/// </summary>
|
||||
public partial class V1ScopedResourceSelectorRequirement
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1ScopedResourceSelectorRequirement class.
|
||||
/// </summary>
|
||||
public V1ScopedResourceSelectorRequirement()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1ScopedResourceSelectorRequirement class.
|
||||
/// </summary>
|
||||
/// <param name="operatorProperty">Represents a scope's relationship to
|
||||
/// a set of values. Valid operators are In, NotIn, Exists,
|
||||
/// DoesNotExist.</param>
|
||||
/// <param name="scopeName">The name of the scope that the selector
|
||||
/// applies to.</param>
|
||||
/// <param name="values">An array of string values. If the operator is
|
||||
/// In or NotIn, the values array must be non-empty. If the operator is
|
||||
/// Exists or DoesNotExist, the values array must be empty. This array
|
||||
/// is replaced during a strategic merge patch.</param>
|
||||
public V1ScopedResourceSelectorRequirement(string operatorProperty, string scopeName, IList<string> values = default(IList<string>))
|
||||
{
|
||||
OperatorProperty = operatorProperty;
|
||||
ScopeName = scopeName;
|
||||
Values = values;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets represents a scope's relationship to a set of values.
|
||||
/// Valid operators are In, NotIn, Exists, DoesNotExist.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "operator")]
|
||||
public string OperatorProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the scope that the selector applies to.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "scopeName")]
|
||||
public string ScopeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an array of string values. If the operator is In or
|
||||
/// NotIn, the values array must be non-empty. If the operator is
|
||||
/// Exists or DoesNotExist, the values array must be empty. This array
|
||||
/// is replaced during a strategic merge patch.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "values")]
|
||||
public IList<string> Values { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (OperatorProperty == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "OperatorProperty");
|
||||
}
|
||||
if (ScopeName == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "ScopeName");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// ServiceAccountTokenProjection represents a projected service account
|
||||
/// token volume. This projection can be used to insert a service account
|
||||
/// token into the pods runtime filesystem for use against APIs (Kubernetes
|
||||
/// API Server or otherwise).
|
||||
/// </summary>
|
||||
public partial class V1ServiceAccountTokenProjection
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1ServiceAccountTokenProjection
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1ServiceAccountTokenProjection()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1ServiceAccountTokenProjection
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="path">Path is the path relative to the mount point of
|
||||
/// the file to project the token into.</param>
|
||||
/// <param name="audience">Audience is the intended audience of the
|
||||
/// token. A recipient of a token must identify itself with an
|
||||
/// identifier specified in the audience of the token, and otherwise
|
||||
/// should reject the token. The audience defaults to the identifier of
|
||||
/// the apiserver.</param>
|
||||
/// <param name="expirationSeconds">ExpirationSeconds is the requested
|
||||
/// duration of validity of the service account token. As the token
|
||||
/// approaches expiration, the kubelet volume plugin will proactively
|
||||
/// rotate the service account token. The kubelet will start trying to
|
||||
/// rotate the token if the token is older than 80 percent of its time
|
||||
/// to live or if the token is older than 24 hours.Defaults to 1 hour
|
||||
/// and must be at least 10 minutes.</param>
|
||||
public V1ServiceAccountTokenProjection(string path, string audience = default(string), long? expirationSeconds = default(long?))
|
||||
{
|
||||
Audience = audience;
|
||||
ExpirationSeconds = expirationSeconds;
|
||||
Path = path;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets audience is the intended audience of the token. A
|
||||
/// recipient of a token must identify itself with an identifier
|
||||
/// specified in the audience of the token, and otherwise should reject
|
||||
/// the token. The audience defaults to the identifier of the
|
||||
/// apiserver.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "audience")]
|
||||
public string Audience { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets expirationSeconds is the requested duration of
|
||||
/// validity of the service account token. As the token approaches
|
||||
/// expiration, the kubelet volume plugin will proactively rotate the
|
||||
/// service account token. The kubelet will start trying to rotate the
|
||||
/// token if the token is older than 80 percent of its time to live or
|
||||
/// if the token is older than 24 hours.Defaults to 1 hour and must be
|
||||
/// at least 10 minutes.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "expirationSeconds")]
|
||||
public long? ExpirationSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets path is the path relative to the mount point of the
|
||||
/// file to project the token into.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "path")]
|
||||
public string Path { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Path == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Path");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -82,10 +82,7 @@ namespace k8s.Models
|
||||
/// the Service. The default value is false. The primary use case for
|
||||
/// setting this field is to use a StatefulSet's Headless Service to
|
||||
/// propagate SRV records for its Pods without respect to their
|
||||
/// readiness for purpose of peer discovery. This field will replace
|
||||
/// the service.alpha.kubernetes.io/tolerate-unready-endpoints when
|
||||
/// that annotation is deprecated and all clients have been converted
|
||||
/// to use this field.</param>
|
||||
/// readiness for purpose of peer discovery.</param>
|
||||
/// <param name="selector">Route service traffic to pods with label
|
||||
/// keys and values matching this selector. If empty or not present,
|
||||
/// the service is assumed to have an external process managing its
|
||||
@@ -231,10 +228,7 @@ namespace k8s.Models
|
||||
/// value is false. The primary use case for setting this field is to
|
||||
/// use a StatefulSet's Headless Service to propagate SRV records for
|
||||
/// its Pods without respect to their readiness for purpose of peer
|
||||
/// discovery. This field will replace the
|
||||
/// service.alpha.kubernetes.io/tolerate-unready-endpoints when that
|
||||
/// annotation is deprecated and all clients have been converted to use
|
||||
/// this field.
|
||||
/// discovery.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "publishNotReadyAddresses")]
|
||||
public bool? PublishNotReadyAddresses { get; set; }
|
||||
|
||||
@@ -36,6 +36,12 @@ namespace k8s.Models
|
||||
/// provisioner.</param>
|
||||
/// <param name="allowVolumeExpansion">AllowVolumeExpansion shows
|
||||
/// whether the storage class allow volume expand</param>
|
||||
/// <param name="allowedTopologies">Restrict the node topologies where
|
||||
/// volumes can be dynamically provisioned. Each volume plugin defines
|
||||
/// its own supported topology specifications. An empty
|
||||
/// TopologySelectorTerm list means there is no topology restriction.
|
||||
/// This field is alpha-level and is only honored by servers that
|
||||
/// enable the DynamicProvisioningScheduling feature.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
@@ -63,9 +69,10 @@ namespace k8s.Models
|
||||
/// unset, VolumeBindingImmediate is used. This field is alpha-level
|
||||
/// and is only honored by servers that enable the VolumeScheduling
|
||||
/// feature.</param>
|
||||
public V1StorageClass(string provisioner, bool? allowVolumeExpansion = default(bool?), string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<string> mountOptions = default(IList<string>), IDictionary<string, string> parameters = default(IDictionary<string, string>), string reclaimPolicy = default(string), string volumeBindingMode = default(string))
|
||||
public V1StorageClass(string provisioner, bool? allowVolumeExpansion = default(bool?), IList<V1TopologySelectorTerm> allowedTopologies = default(IList<V1TopologySelectorTerm>), string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<string> mountOptions = default(IList<string>), IDictionary<string, string> parameters = default(IDictionary<string, string>), string reclaimPolicy = default(string), string volumeBindingMode = default(string))
|
||||
{
|
||||
AllowVolumeExpansion = allowVolumeExpansion;
|
||||
AllowedTopologies = allowedTopologies;
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
@@ -89,6 +96,17 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "allowVolumeExpansion")]
|
||||
public bool? AllowVolumeExpansion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets restrict the node topologies where volumes can be
|
||||
/// dynamically provisioned. Each volume plugin defines its own
|
||||
/// supported topology specifications. An empty TopologySelectorTerm
|
||||
/// list means there is no topology restriction. This field is
|
||||
/// alpha-level and is only honored by servers that enable the
|
||||
/// DynamicProvisioningScheduling feature.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allowedTopologies")]
|
||||
public IList<V1TopologySelectorTerm> AllowedTopologies { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
|
||||
@@ -11,28 +11,27 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value.
|
||||
/// Defaults to true for the boolean property.
|
||||
/// Sysctl defines a kernel parameter to be set
|
||||
/// </summary>
|
||||
public partial class V1beta1JSONSchemaPropsOrBool
|
||||
public partial class V1Sysctl
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1JSONSchemaPropsOrBool
|
||||
/// class.
|
||||
/// Initializes a new instance of the V1Sysctl class.
|
||||
/// </summary>
|
||||
public V1beta1JSONSchemaPropsOrBool()
|
||||
public V1Sysctl()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1JSONSchemaPropsOrBool
|
||||
/// class.
|
||||
/// Initializes a new instance of the V1Sysctl class.
|
||||
/// </summary>
|
||||
public V1beta1JSONSchemaPropsOrBool(bool allows, V1beta1JSONSchemaProps schema)
|
||||
/// <param name="name">Name of a property to set</param>
|
||||
/// <param name="value">Value of a property to set</param>
|
||||
public V1Sysctl(string name, string value)
|
||||
{
|
||||
Allows = allows;
|
||||
Schema = schema;
|
||||
Name = name;
|
||||
Value = value;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -42,14 +41,16 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name of a property to set
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "Allows")]
|
||||
public bool Allows { get; set; }
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets value of a property to set
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "Schema")]
|
||||
public V1beta1JSONSchemaProps Schema { get; set; }
|
||||
[JsonProperty(PropertyName = "value")]
|
||||
public string Value { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
@@ -59,13 +60,13 @@ namespace k8s.Models
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Schema == null)
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Schema");
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
if (Schema != null)
|
||||
if (Value == null)
|
||||
{
|
||||
Schema.Validate();
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Value");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,28 +13,33 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string
|
||||
/// array.
|
||||
/// A topology selector requirement is a selector that matches given label.
|
||||
/// This is an alpha feature and may change in the future.
|
||||
/// </summary>
|
||||
public partial class V1beta1JSONSchemaPropsOrStringArray
|
||||
public partial class V1TopologySelectorLabelRequirement
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1JSONSchemaPropsOrStringArray class.
|
||||
/// V1TopologySelectorLabelRequirement class.
|
||||
/// </summary>
|
||||
public V1beta1JSONSchemaPropsOrStringArray()
|
||||
public V1TopologySelectorLabelRequirement()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1JSONSchemaPropsOrStringArray class.
|
||||
/// V1TopologySelectorLabelRequirement class.
|
||||
/// </summary>
|
||||
public V1beta1JSONSchemaPropsOrStringArray(IList<string> property, V1beta1JSONSchemaProps schema)
|
||||
/// <param name="key">The label key that the selector applies
|
||||
/// to.</param>
|
||||
/// <param name="values">An array of string values. One value must
|
||||
/// match the label to be selected. Each entry in Values is
|
||||
/// ORed.</param>
|
||||
public V1TopologySelectorLabelRequirement(string key, IList<string> values)
|
||||
{
|
||||
Property = property;
|
||||
Schema = schema;
|
||||
Key = key;
|
||||
Values = values;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -44,14 +49,17 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the label key that the selector applies to.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "Property")]
|
||||
public IList<string> Property { get; set; }
|
||||
[JsonProperty(PropertyName = "key")]
|
||||
public string Key { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an array of string values. One value must match the
|
||||
/// label to be selected. Each entry in Values is ORed.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "Schema")]
|
||||
public V1beta1JSONSchemaProps Schema { get; set; }
|
||||
[JsonProperty(PropertyName = "values")]
|
||||
public IList<string> Values { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
@@ -61,17 +69,13 @@ namespace k8s.Models
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Property == null)
|
||||
if (Key == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Property");
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Key");
|
||||
}
|
||||
if (Schema == null)
|
||||
if (Values == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Schema");
|
||||
}
|
||||
if (Schema != null)
|
||||
{
|
||||
Schema.Validate();
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Values");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// A topology selector term represents the result of label queries. A null
|
||||
/// or empty topology selector term matches no objects. The requirements of
|
||||
/// them are ANDed. It provides a subset of functionality as
|
||||
/// NodeSelectorTerm. This is an alpha feature and may change in the
|
||||
/// future.
|
||||
/// </summary>
|
||||
public partial class V1TopologySelectorTerm
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1TopologySelectorTerm class.
|
||||
/// </summary>
|
||||
public V1TopologySelectorTerm()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1TopologySelectorTerm class.
|
||||
/// </summary>
|
||||
/// <param name="matchLabelExpressions">A list of topology selector
|
||||
/// requirements by labels.</param>
|
||||
public V1TopologySelectorTerm(IList<V1TopologySelectorLabelRequirement> matchLabelExpressions = default(IList<V1TopologySelectorLabelRequirement>))
|
||||
{
|
||||
MatchLabelExpressions = matchLabelExpressions;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a list of topology selector requirements by labels.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "matchLabelExpressions")]
|
||||
public IList<V1TopologySelectorLabelRequirement> MatchLabelExpressions { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -64,7 +64,10 @@ namespace k8s.Models
|
||||
/// exposed to the pod. More info:
|
||||
/// https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk</param>
|
||||
/// <param name="gitRepo">GitRepo represents a git repository at a
|
||||
/// particular revision.</param>
|
||||
/// particular revision. DEPRECATED: GitRepo is deprecated. To
|
||||
/// provision a container with a git repo, mount an EmptyDir into an
|
||||
/// InitContainer that clones the repo using git, then mount the
|
||||
/// EmptyDir into the Pod's container.</param>
|
||||
/// <param name="glusterfs">Glusterfs represents a Glusterfs mount on
|
||||
/// the host that shares a pod's lifetime. More info:
|
||||
/// https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md</param>
|
||||
@@ -238,7 +241,10 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets gitRepo represents a git repository at a particular
|
||||
/// revision.
|
||||
/// revision. DEPRECATED: GitRepo is deprecated. To provision a
|
||||
/// container with a git repo, mount an EmptyDir into an InitContainer
|
||||
/// that clones the repo using git, then mount the EmptyDir into the
|
||||
/// Pod's container.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "gitRepo")]
|
||||
public V1GitRepoVolumeSource GitRepo { get; set; }
|
||||
|
||||
@@ -32,11 +32,14 @@ namespace k8s.Models
|
||||
/// project</param>
|
||||
/// <param name="secret">information about the secret data to
|
||||
/// project</param>
|
||||
public V1VolumeProjection(V1ConfigMapProjection configMap = default(V1ConfigMapProjection), V1DownwardAPIProjection downwardAPI = default(V1DownwardAPIProjection), V1SecretProjection secret = default(V1SecretProjection))
|
||||
/// <param name="serviceAccountToken">information about the
|
||||
/// serviceAccountToken data to project</param>
|
||||
public V1VolumeProjection(V1ConfigMapProjection configMap = default(V1ConfigMapProjection), V1DownwardAPIProjection downwardAPI = default(V1DownwardAPIProjection), V1SecretProjection secret = default(V1SecretProjection), V1ServiceAccountTokenProjection serviceAccountToken = default(V1ServiceAccountTokenProjection))
|
||||
{
|
||||
ConfigMap = configMap;
|
||||
DownwardAPI = downwardAPI;
|
||||
Secret = secret;
|
||||
ServiceAccountToken = serviceAccountToken;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -63,5 +66,25 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "secret")]
|
||||
public V1SecretProjection Secret { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets information about the serviceAccountToken data to
|
||||
/// project
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "serviceAccountToken")]
|
||||
public V1ServiceAccountTokenProjection ServiceAccountToken { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (ServiceAccountToken != null)
|
||||
{
|
||||
ServiceAccountToken.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,8 +33,6 @@ namespace k8s.Models
|
||||
/// <param name="roleRef">RoleRef can only reference a ClusterRole in
|
||||
/// the global namespace. If the RoleRef cannot be resolved, the
|
||||
/// Authorizer must return an error.</param>
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
@@ -46,7 +44,9 @@ namespace k8s.Models
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">Standard object's metadata.</param>
|
||||
public V1alpha1ClusterRoleBinding(V1alpha1RoleRef roleRef, IList<V1alpha1Subject> subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
public V1alpha1ClusterRoleBinding(V1alpha1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<V1alpha1Subject> subjects = default(IList<V1alpha1Subject>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -114,10 +114,6 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "RoleRef");
|
||||
}
|
||||
if (Subjects == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Subjects");
|
||||
}
|
||||
if (Metadata != null)
|
||||
{
|
||||
Metadata.Validate();
|
||||
|
||||
@@ -35,8 +35,6 @@ namespace k8s.Models
|
||||
/// <param name="roleRef">RoleRef can reference a Role in the current
|
||||
/// namespace or a ClusterRole in the global namespace. If the RoleRef
|
||||
/// cannot be resolved, the Authorizer must return an error.</param>
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
@@ -48,7 +46,9 @@ namespace k8s.Models
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">Standard object's metadata.</param>
|
||||
public V1alpha1RoleBinding(V1alpha1RoleRef roleRef, IList<V1alpha1Subject> subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
public V1alpha1RoleBinding(V1alpha1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<V1alpha1Subject> subjects = default(IList<V1alpha1Subject>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -116,10 +116,6 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "RoleRef");
|
||||
}
|
||||
if (Subjects == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Subjects");
|
||||
}
|
||||
if (Metadata != null)
|
||||
{
|
||||
Metadata.Validate();
|
||||
|
||||
@@ -28,9 +28,6 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1APIServiceSpec class.
|
||||
/// </summary>
|
||||
/// <param name="caBundle">CABundle is a PEM encoded CA bundle which
|
||||
/// will be used to validate an API server's serving
|
||||
/// certificate.</param>
|
||||
/// <param name="groupPriorityMinimum">GroupPriorityMininum is the
|
||||
/// priority this group should have at least. Higher priority means
|
||||
/// that the group is preferred by clients over lower priority ones.
|
||||
@@ -50,10 +47,22 @@ namespace k8s.Models
|
||||
/// <param name="versionPriority">VersionPriority controls the ordering
|
||||
/// of this API version inside of its group. Must be greater than
|
||||
/// zero. The primary sort is based on VersionPriority, ordered highest
|
||||
/// to lowest (20 before 10). The secondary sort is based on the
|
||||
/// alphabetical comparison of the name of the object. (v1.bar before
|
||||
/// v1.foo) Since it's inside of a group, the number can be small,
|
||||
/// probably in the 10s.</param>
|
||||
/// to lowest (20 before 10). Since it's inside of a group, the number
|
||||
/// can be small, probably in the 10s. In case of equal version
|
||||
/// priorities, the version string will be used to compute the order
|
||||
/// inside a group. If the version string is "kube-like", it will sort
|
||||
/// above non "kube-like" version strings, which are ordered
|
||||
/// lexicographically. "Kube-like" versions start with a "v", then are
|
||||
/// followed by a number (the major version), then optionally the
|
||||
/// string "alpha" or "beta" and another number (the minor version).
|
||||
/// These are sorted first by GA > beta > alpha (where GA is a
|
||||
/// version with no suffix such as beta or alpha), and then by
|
||||
/// comparing major version, then minor version. An example sorted list
|
||||
/// of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1,
|
||||
/// v11alpha2, foo1, foo10.</param>
|
||||
/// <param name="caBundle">CABundle is a PEM encoded CA bundle which
|
||||
/// will be used to validate an API server's serving
|
||||
/// certificate.</param>
|
||||
/// <param name="group">Group is the API group name this server
|
||||
/// hosts</param>
|
||||
/// <param name="insecureSkipTLSVerify">InsecureSkipTLSVerify disables
|
||||
@@ -62,7 +71,7 @@ namespace k8s.Models
|
||||
/// instead.</param>
|
||||
/// <param name="version">Version is the API version this server hosts.
|
||||
/// For example, "v1"</param>
|
||||
public V1beta1APIServiceSpec(byte[] caBundle, int groupPriorityMinimum, Apiregistrationv1beta1ServiceReference service, int versionPriority, string group = default(string), bool? insecureSkipTLSVerify = default(bool?), string version = default(string))
|
||||
public V1beta1APIServiceSpec(int groupPriorityMinimum, Apiregistrationv1beta1ServiceReference service, int versionPriority, byte[] caBundle = default(byte[]), string group = default(string), bool? insecureSkipTLSVerify = default(bool?), string version = default(string))
|
||||
{
|
||||
CaBundle = caBundle;
|
||||
Group = group;
|
||||
@@ -136,10 +145,19 @@ namespace k8s.Models
|
||||
/// Gets or sets versionPriority controls the ordering of this API
|
||||
/// version inside of its group. Must be greater than zero. The
|
||||
/// primary sort is based on VersionPriority, ordered highest to lowest
|
||||
/// (20 before 10). The secondary sort is based on the alphabetical
|
||||
/// comparison of the name of the object. (v1.bar before v1.foo) Since
|
||||
/// it's inside of a group, the number can be small, probably in the
|
||||
/// 10s.
|
||||
/// (20 before 10). Since it's inside of a group, the number can be
|
||||
/// small, probably in the 10s. In case of equal version priorities,
|
||||
/// the version string will be used to compute the order inside a
|
||||
/// group. If the version string is "kube-like", it will sort above non
|
||||
/// "kube-like" version strings, which are ordered lexicographically.
|
||||
/// "Kube-like" versions start with a "v", then are followed by a
|
||||
/// number (the major version), then optionally the string "alpha" or
|
||||
/// "beta" and another number (the minor version). These are sorted
|
||||
/// first by GA &gt; beta &gt; alpha (where GA is a version
|
||||
/// with no suffix such as beta or alpha), and then by comparing major
|
||||
/// version, then minor version. An example sorted list of versions:
|
||||
/// v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2,
|
||||
/// foo1, foo10.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "versionPriority")]
|
||||
public int VersionPriority { get; set; }
|
||||
@@ -152,10 +170,6 @@ namespace k8s.Models
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (CaBundle == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "CaBundle");
|
||||
}
|
||||
if (Service == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Service");
|
||||
|
||||
@@ -33,8 +33,6 @@ namespace k8s.Models
|
||||
/// <param name="roleRef">RoleRef can only reference a ClusterRole in
|
||||
/// the global namespace. If the RoleRef cannot be resolved, the
|
||||
/// Authorizer must return an error.</param>
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
@@ -46,7 +44,9 @@ namespace k8s.Models
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">Standard object's metadata.</param>
|
||||
public V1beta1ClusterRoleBinding(V1beta1RoleRef roleRef, IList<V1beta1Subject> subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
public V1beta1ClusterRoleBinding(V1beta1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<V1beta1Subject> subjects = default(IList<V1beta1Subject>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -114,10 +114,6 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "RoleRef");
|
||||
}
|
||||
if (Subjects == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Subjects");
|
||||
}
|
||||
if (Metadata != null)
|
||||
{
|
||||
Metadata.Validate();
|
||||
|
||||
@@ -0,0 +1,139 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// CustomResourceColumnDefinition specifies a column for server side
|
||||
/// printing.
|
||||
/// </summary>
|
||||
public partial class V1beta1CustomResourceColumnDefinition
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1CustomResourceColumnDefinition class.
|
||||
/// </summary>
|
||||
public V1beta1CustomResourceColumnDefinition()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1CustomResourceColumnDefinition class.
|
||||
/// </summary>
|
||||
/// <param name="jSONPath">JSONPath is a simple JSON path, i.e. with
|
||||
/// array notation.</param>
|
||||
/// <param name="name">name is a human readable name for the
|
||||
/// column.</param>
|
||||
/// <param name="type">type is an OpenAPI type definition for this
|
||||
/// column. See
|
||||
/// https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types
|
||||
/// for more.</param>
|
||||
/// <param name="description">description is a human readable
|
||||
/// description of this column.</param>
|
||||
/// <param name="format">format is an optional OpenAPI type definition
|
||||
/// for this column. The 'name' format is applied to the primary
|
||||
/// identifier column to assist in clients identifying column is the
|
||||
/// resource name. See
|
||||
/// https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types
|
||||
/// for more.</param>
|
||||
/// <param name="priority">priority is an integer defining the relative
|
||||
/// importance of this column compared to others. Lower numbers are
|
||||
/// considered higher priority. Columns that may be omitted in limited
|
||||
/// space scenarios should be given a higher priority.</param>
|
||||
public V1beta1CustomResourceColumnDefinition(string jSONPath, string name, string type, string description = default(string), string format = default(string), int? priority = default(int?))
|
||||
{
|
||||
JSONPath = jSONPath;
|
||||
Description = description;
|
||||
Format = format;
|
||||
Name = name;
|
||||
Priority = priority;
|
||||
Type = type;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets jSONPath is a simple JSON path, i.e. with array
|
||||
/// notation.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "JSONPath")]
|
||||
public string JSONPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets description is a human readable description of this
|
||||
/// column.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets format is an optional OpenAPI type definition for this
|
||||
/// column. The 'name' format is applied to the primary identifier
|
||||
/// column to assist in clients identifying column is the resource
|
||||
/// name. See
|
||||
/// https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types
|
||||
/// for more.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "format")]
|
||||
public string Format { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name is a human readable name for the column.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets priority is an integer defining the relative
|
||||
/// importance of this column compared to others. Lower numbers are
|
||||
/// considered higher priority. Columns that may be omitted in limited
|
||||
/// space scenarios should be given a higher priority.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "priority")]
|
||||
public int? Priority { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type is an OpenAPI type definition for this column.
|
||||
/// See
|
||||
/// https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types
|
||||
/// for more.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (JSONPath == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "JSONPath");
|
||||
}
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
if (Type == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,8 @@ namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
@@ -35,22 +37,42 @@ namespace k8s.Models
|
||||
/// custom resource</param>
|
||||
/// <param name="scope">Scope indicates whether this resource is
|
||||
/// cluster or namespace scoped. Default is namespaced</param>
|
||||
/// <param name="version">Version is the version this resource belongs
|
||||
/// in</param>
|
||||
/// <param name="additionalPrinterColumns">AdditionalPrinterColumns are
|
||||
/// additional columns shown e.g. in kubectl next to the name. Defaults
|
||||
/// to a created-at column.</param>
|
||||
/// <param name="subresources">Subresources describes the subresources
|
||||
/// for CustomResources This field is alpha-level and should only be
|
||||
/// sent to servers that enable subresources via the
|
||||
/// CustomResourceSubresources feature gate.</param>
|
||||
/// for CustomResources</param>
|
||||
/// <param name="validation">Validation describes the validation
|
||||
/// methods for CustomResources</param>
|
||||
public V1beta1CustomResourceDefinitionSpec(string group, V1beta1CustomResourceDefinitionNames names, string scope, string version, V1beta1CustomResourceSubresources subresources = default(V1beta1CustomResourceSubresources), V1beta1CustomResourceValidation validation = default(V1beta1CustomResourceValidation))
|
||||
/// <param name="version">Version is the version this resource belongs
|
||||
/// in Should be always first item in Versions field if provided.
|
||||
/// Optional, but at least one of Version or Versions must be set.
|
||||
/// Deprecated: Please use `Versions`.</param>
|
||||
/// <param name="versions">Versions is the list of all supported
|
||||
/// versions for this resource. If Version field is provided, this
|
||||
/// field is optional. Validation: All versions must use the same
|
||||
/// validation schema for now. i.e., top level Validation field is
|
||||
/// applied to all of these versions. Order: The version name will be
|
||||
/// used to compute the order. If the version string is "kube-like", it
|
||||
/// will sort above non "kube-like" version strings, which are ordered
|
||||
/// lexicographically. "Kube-like" versions start with a "v", then are
|
||||
/// followed by a number (the major version), then optionally the
|
||||
/// string "alpha" or "beta" and another number (the minor version).
|
||||
/// These are sorted first by GA > beta > alpha (where GA is a
|
||||
/// version with no suffix such as beta or alpha), and then by
|
||||
/// comparing major version, then minor version. An example sorted list
|
||||
/// of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1,
|
||||
/// v11alpha2, foo1, foo10.</param>
|
||||
public V1beta1CustomResourceDefinitionSpec(string group, V1beta1CustomResourceDefinitionNames names, string scope, IList<V1beta1CustomResourceColumnDefinition> additionalPrinterColumns = default(IList<V1beta1CustomResourceColumnDefinition>), V1beta1CustomResourceSubresources subresources = default(V1beta1CustomResourceSubresources), V1beta1CustomResourceValidation validation = default(V1beta1CustomResourceValidation), string version = default(string), IList<V1beta1CustomResourceDefinitionVersion> versions = default(IList<V1beta1CustomResourceDefinitionVersion>))
|
||||
{
|
||||
AdditionalPrinterColumns = additionalPrinterColumns;
|
||||
Group = group;
|
||||
Names = names;
|
||||
Scope = scope;
|
||||
Subresources = subresources;
|
||||
Validation = validation;
|
||||
Version = version;
|
||||
Versions = versions;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -59,6 +81,13 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets additionalPrinterColumns are additional columns shown
|
||||
/// e.g. in kubectl next to the name. Defaults to a created-at column.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "additionalPrinterColumns")]
|
||||
public IList<V1beta1CustomResourceColumnDefinition> AdditionalPrinterColumns { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets group is the group this resource belongs in
|
||||
/// </summary>
|
||||
@@ -81,9 +110,7 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets subresources describes the subresources for
|
||||
/// CustomResources This field is alpha-level and should only be sent
|
||||
/// to servers that enable subresources via the
|
||||
/// CustomResourceSubresources feature gate.
|
||||
/// CustomResources
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "subresources")]
|
||||
public V1beta1CustomResourceSubresources Subresources { get; set; }
|
||||
@@ -96,11 +123,34 @@ namespace k8s.Models
|
||||
public V1beta1CustomResourceValidation Validation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets version is the version this resource belongs in
|
||||
/// Gets or sets version is the version this resource belongs in Should
|
||||
/// be always first item in Versions field if provided. Optional, but
|
||||
/// at least one of Version or Versions must be set. Deprecated: Please
|
||||
/// use `Versions`.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "version")]
|
||||
public string Version { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets versions is the list of all supported versions for
|
||||
/// this resource. If Version field is provided, this field is
|
||||
/// optional. Validation: All versions must use the same validation
|
||||
/// schema for now. i.e., top level Validation field is applied to all
|
||||
/// of these versions. Order: The version name will be used to compute
|
||||
/// the order. If the version string is "kube-like", it will sort above
|
||||
/// non "kube-like" version strings, which are ordered
|
||||
/// lexicographically. "Kube-like" versions start with a "v", then are
|
||||
/// followed by a number (the major version), then optionally the
|
||||
/// string "alpha" or "beta" and another number (the minor version).
|
||||
/// These are sorted first by GA &gt; beta &gt; alpha (where GA
|
||||
/// is a version with no suffix such as beta or alpha), and then by
|
||||
/// comparing major version, then minor version. An example sorted list
|
||||
/// of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1,
|
||||
/// v11alpha2, foo1, foo10.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "versions")]
|
||||
public IList<V1beta1CustomResourceDefinitionVersion> Versions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
@@ -121,9 +171,15 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Scope");
|
||||
}
|
||||
if (Version == null)
|
||||
if (AdditionalPrinterColumns != null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Version");
|
||||
foreach (var element in AdditionalPrinterColumns)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Names != null)
|
||||
{
|
||||
@@ -133,9 +189,15 @@ namespace k8s.Models
|
||||
{
|
||||
Subresources.Validate();
|
||||
}
|
||||
if (Validation != null)
|
||||
if (Versions != null)
|
||||
{
|
||||
Validation.Validate();
|
||||
foreach (var element1 in Versions)
|
||||
{
|
||||
if (element1 != null)
|
||||
{
|
||||
element1.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,10 +36,19 @@ namespace k8s.Models
|
||||
/// the names in spec.</param>
|
||||
/// <param name="conditions">Conditions indicate state for particular
|
||||
/// aspects of a CustomResourceDefinition</param>
|
||||
public V1beta1CustomResourceDefinitionStatus(V1beta1CustomResourceDefinitionNames acceptedNames, IList<V1beta1CustomResourceDefinitionCondition> conditions)
|
||||
/// <param name="storedVersions">StoredVersions are all versions of
|
||||
/// CustomResources that were ever persisted. Tracking these versions
|
||||
/// allows a migration path for stored versions in etcd. The field is
|
||||
/// mutable so the migration controller can first finish a migration to
|
||||
/// another version (i.e. that no old objects are left in the storage),
|
||||
/// and then remove the rest of the versions from this list. None of
|
||||
/// the versions in this list can be removed from the spec.Versions
|
||||
/// field.</param>
|
||||
public V1beta1CustomResourceDefinitionStatus(V1beta1CustomResourceDefinitionNames acceptedNames, IList<V1beta1CustomResourceDefinitionCondition> conditions, IList<string> storedVersions)
|
||||
{
|
||||
AcceptedNames = acceptedNames;
|
||||
Conditions = conditions;
|
||||
StoredVersions = storedVersions;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -63,6 +72,18 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
public IList<V1beta1CustomResourceDefinitionCondition> Conditions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets storedVersions are all versions of CustomResources
|
||||
/// that were ever persisted. Tracking these versions allows a
|
||||
/// migration path for stored versions in etcd. The field is mutable so
|
||||
/// the migration controller can first finish a migration to another
|
||||
/// version (i.e. that no old objects are left in the storage), and
|
||||
/// then remove the rest of the versions from this list. None of the
|
||||
/// versions in this list can be removed from the spec.Versions field.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "storedVersions")]
|
||||
public IList<string> StoredVersions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
@@ -79,6 +100,10 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Conditions");
|
||||
}
|
||||
if (StoredVersions == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "StoredVersions");
|
||||
}
|
||||
if (AcceptedNames != null)
|
||||
{
|
||||
AcceptedNames.Validate();
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
public partial class V1beta1CustomResourceDefinitionVersion
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1CustomResourceDefinitionVersion class.
|
||||
/// </summary>
|
||||
public V1beta1CustomResourceDefinitionVersion()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1CustomResourceDefinitionVersion class.
|
||||
/// </summary>
|
||||
/// <param name="name">Name is the version name, e.g. “v1”, “v2beta1”,
|
||||
/// etc.</param>
|
||||
/// <param name="served">Served is a flag enabling/disabling this
|
||||
/// version from being served via REST APIs</param>
|
||||
/// <param name="storage">Storage flags the version as storage version.
|
||||
/// There must be exactly one flagged as storage version.</param>
|
||||
public V1beta1CustomResourceDefinitionVersion(string name, bool served, bool storage)
|
||||
{
|
||||
Name = name;
|
||||
Served = served;
|
||||
Storage = storage;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name is the version name, e.g. “v1”, “v2beta1”, etc.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets served is a flag enabling/disabling this version from
|
||||
/// being served via REST APIs
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "served")]
|
||||
public bool Served { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets storage flags the version as storage version. There
|
||||
/// must be exactly one flagged as storage version.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "storage")]
|
||||
public bool Storage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,18 +48,5 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "openAPIV3Schema")]
|
||||
public V1beta1JSONSchemaProps OpenAPIV3Schema { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (OpenAPIV3Schema != null)
|
||||
{
|
||||
OpenAPIV3Schema.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,22 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1JSONSchemaProps class.
|
||||
/// </summary>
|
||||
public V1beta1JSONSchemaProps(string refProperty = default(string), string schema = default(string), V1beta1JSONSchemaPropsOrBool additionalItems = default(V1beta1JSONSchemaPropsOrBool), V1beta1JSONSchemaPropsOrBool additionalProperties = default(V1beta1JSONSchemaPropsOrBool), IList<V1beta1JSONSchemaProps> allOf = default(IList<V1beta1JSONSchemaProps>), IList<V1beta1JSONSchemaProps> anyOf = default(IList<V1beta1JSONSchemaProps>), V1beta1JSON defaultProperty = default(V1beta1JSON), IDictionary<string, V1beta1JSONSchemaProps> definitions = default(IDictionary<string, V1beta1JSONSchemaProps>), IDictionary<string, V1beta1JSONSchemaPropsOrStringArray> dependencies = default(IDictionary<string, V1beta1JSONSchemaPropsOrStringArray>), string description = default(string), IList<V1beta1JSON> enumProperty = default(IList<V1beta1JSON>), V1beta1JSON example = default(V1beta1JSON), bool? exclusiveMaximum = default(bool?), bool? exclusiveMinimum = default(bool?), V1beta1ExternalDocumentation externalDocs = default(V1beta1ExternalDocumentation), string format = default(string), string id = default(string), V1beta1JSONSchemaPropsOrArray items = default(V1beta1JSONSchemaPropsOrArray), long? maxItems = default(long?), long? maxLength = default(long?), long? maxProperties = default(long?), double? maximum = default(double?), long? minItems = default(long?), long? minLength = default(long?), long? minProperties = default(long?), double? minimum = default(double?), double? multipleOf = default(double?), V1beta1JSONSchemaProps not = default(V1beta1JSONSchemaProps), IList<V1beta1JSONSchemaProps> oneOf = default(IList<V1beta1JSONSchemaProps>), string pattern = default(string), IDictionary<string, V1beta1JSONSchemaProps> patternProperties = default(IDictionary<string, V1beta1JSONSchemaProps>), IDictionary<string, V1beta1JSONSchemaProps> properties = default(IDictionary<string, V1beta1JSONSchemaProps>), IList<string> required = default(IList<string>), string title = default(string), string type = default(string), bool? uniqueItems = default(bool?))
|
||||
/// <param name="additionalItems">JSONSchemaPropsOrBool represents
|
||||
/// JSONSchemaProps or a boolean value. Defaults to true for the
|
||||
/// boolean property.</param>
|
||||
/// <param name="additionalProperties">JSONSchemaPropsOrBool represents
|
||||
/// JSONSchemaProps or a boolean value. Defaults to true for the
|
||||
/// boolean property.</param>
|
||||
/// <param name="defaultProperty">JSON represents any valid JSON value.
|
||||
/// These types are supported: bool, int64, float64, string,
|
||||
/// []interface{}, map[string]interface{} and nil.</param>
|
||||
/// <param name="example">JSON represents any valid JSON value. These
|
||||
/// types are supported: bool, int64, float64, string, []interface{},
|
||||
/// map[string]interface{} and nil.</param>
|
||||
/// <param name="items">JSONSchemaPropsOrArray represents a value that
|
||||
/// can either be a JSONSchemaProps or an array of JSONSchemaProps.
|
||||
/// Mainly here for serialization purposes.</param>
|
||||
public V1beta1JSONSchemaProps(string refProperty = default(string), string schema = default(string), object additionalItems = default(object), object additionalProperties = default(object), IList<V1beta1JSONSchemaProps> allOf = default(IList<V1beta1JSONSchemaProps>), IList<V1beta1JSONSchemaProps> anyOf = default(IList<V1beta1JSONSchemaProps>), object defaultProperty = default(object), IDictionary<string, V1beta1JSONSchemaProps> definitions = default(IDictionary<string, V1beta1JSONSchemaProps>), IDictionary<string, object> dependencies = default(IDictionary<string, object>), string description = default(string), IList<object> enumProperty = default(IList<object>), object example = default(object), bool? exclusiveMaximum = default(bool?), bool? exclusiveMinimum = default(bool?), V1beta1ExternalDocumentation externalDocs = default(V1beta1ExternalDocumentation), string format = default(string), string id = default(string), object items = default(object), long? maxItems = default(long?), long? maxLength = default(long?), long? maxProperties = default(long?), double? maximum = default(double?), long? minItems = default(long?), long? minLength = default(long?), long? minProperties = default(long?), double? minimum = default(double?), double? multipleOf = default(double?), V1beta1JSONSchemaProps not = default(V1beta1JSONSchemaProps), IList<V1beta1JSONSchemaProps> oneOf = default(IList<V1beta1JSONSchemaProps>), string pattern = default(string), IDictionary<string, V1beta1JSONSchemaProps> patternProperties = default(IDictionary<string, V1beta1JSONSchemaProps>), IDictionary<string, V1beta1JSONSchemaProps> properties = default(IDictionary<string, V1beta1JSONSchemaProps>), IList<string> required = default(IList<string>), string title = default(string), string type = default(string), bool? uniqueItems = default(bool?))
|
||||
{
|
||||
RefProperty = refProperty;
|
||||
Schema = schema;
|
||||
@@ -85,14 +100,18 @@ namespace k8s.Models
|
||||
public string Schema { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets jSONSchemaPropsOrBool represents JSONSchemaProps or a
|
||||
/// boolean value. Defaults to true for the boolean property.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "additionalItems")]
|
||||
public V1beta1JSONSchemaPropsOrBool AdditionalItems { get; set; }
|
||||
public object AdditionalItems { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets jSONSchemaPropsOrBool represents JSONSchemaProps or a
|
||||
/// boolean value. Defaults to true for the boolean property.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "additionalProperties")]
|
||||
public V1beta1JSONSchemaPropsOrBool AdditionalProperties { get; set; }
|
||||
public object AdditionalProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
@@ -105,9 +124,12 @@ namespace k8s.Models
|
||||
public IList<V1beta1JSONSchemaProps> AnyOf { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets JSON represents any valid JSON value. These types are
|
||||
/// supported: bool, int64, float64, string, []interface{},
|
||||
/// map[string]interface{} and nil.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "default")]
|
||||
public V1beta1JSON DefaultProperty { get; set; }
|
||||
public object DefaultProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
@@ -117,7 +139,7 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "dependencies")]
|
||||
public IDictionary<string, V1beta1JSONSchemaPropsOrStringArray> Dependencies { get; set; }
|
||||
public IDictionary<string, object> Dependencies { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
@@ -127,12 +149,15 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "enum")]
|
||||
public IList<V1beta1JSON> EnumProperty { get; set; }
|
||||
public IList<object> EnumProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets JSON represents any valid JSON value. These types are
|
||||
/// supported: bool, int64, float64, string, []interface{},
|
||||
/// map[string]interface{} and nil.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "example")]
|
||||
public V1beta1JSON Example { get; set; }
|
||||
public object Example { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
@@ -160,9 +185,12 @@ namespace k8s.Models
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets jSONSchemaPropsOrArray represents a value that can
|
||||
/// either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly
|
||||
/// here for serialization purposes.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public V1beta1JSONSchemaPropsOrArray Items { get; set; }
|
||||
public object Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
@@ -254,118 +282,5 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "uniqueItems")]
|
||||
public bool? UniqueItems { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (AdditionalItems != null)
|
||||
{
|
||||
AdditionalItems.Validate();
|
||||
}
|
||||
if (AdditionalProperties != null)
|
||||
{
|
||||
AdditionalProperties.Validate();
|
||||
}
|
||||
if (AllOf != null)
|
||||
{
|
||||
foreach (var element in AllOf)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (AnyOf != null)
|
||||
{
|
||||
foreach (var element1 in AnyOf)
|
||||
{
|
||||
if (element1 != null)
|
||||
{
|
||||
element1.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (DefaultProperty != null)
|
||||
{
|
||||
DefaultProperty.Validate();
|
||||
}
|
||||
if (Definitions != null)
|
||||
{
|
||||
foreach (var valueElement in Definitions.Values)
|
||||
{
|
||||
if (valueElement != null)
|
||||
{
|
||||
valueElement.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Dependencies != null)
|
||||
{
|
||||
foreach (var valueElement1 in Dependencies.Values)
|
||||
{
|
||||
if (valueElement1 != null)
|
||||
{
|
||||
valueElement1.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (EnumProperty != null)
|
||||
{
|
||||
foreach (var element2 in EnumProperty)
|
||||
{
|
||||
if (element2 != null)
|
||||
{
|
||||
element2.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Example != null)
|
||||
{
|
||||
Example.Validate();
|
||||
}
|
||||
if (Items != null)
|
||||
{
|
||||
Items.Validate();
|
||||
}
|
||||
if (Not != null)
|
||||
{
|
||||
Not.Validate();
|
||||
}
|
||||
if (OneOf != null)
|
||||
{
|
||||
foreach (var element3 in OneOf)
|
||||
{
|
||||
if (element3 != null)
|
||||
{
|
||||
element3.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (PatternProperties != null)
|
||||
{
|
||||
foreach (var valueElement2 in PatternProperties.Values)
|
||||
{
|
||||
if (valueElement2 != null)
|
||||
{
|
||||
valueElement2.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Properties != null)
|
||||
{
|
||||
foreach (var valueElement3 in Properties.Values)
|
||||
{
|
||||
if (valueElement3 != null)
|
||||
{
|
||||
valueElement3.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// JSONSchemaPropsOrArray represents a value that can either be a
|
||||
/// JSONSchemaProps or an array of JSONSchemaProps. Mainly here for
|
||||
/// serialization purposes.
|
||||
/// </summary>
|
||||
public partial class V1beta1JSONSchemaPropsOrArray
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1JSONSchemaPropsOrArray
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1beta1JSONSchemaPropsOrArray()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1JSONSchemaPropsOrArray
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1beta1JSONSchemaPropsOrArray(IList<V1beta1JSONSchemaProps> jSONSchemas, V1beta1JSONSchemaProps schema)
|
||||
{
|
||||
JSONSchemas = jSONSchemas;
|
||||
Schema = schema;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "JSONSchemas")]
|
||||
public IList<V1beta1JSONSchemaProps> JSONSchemas { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "Schema")]
|
||||
public V1beta1JSONSchemaProps Schema { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (JSONSchemas == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "JSONSchemas");
|
||||
}
|
||||
if (Schema == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Schema");
|
||||
}
|
||||
if (JSONSchemas != null)
|
||||
{
|
||||
foreach (var element in JSONSchemas)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Schema != null)
|
||||
{
|
||||
Schema.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,16 +27,24 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the V1beta1NetworkPolicyPeer class.
|
||||
/// </summary>
|
||||
/// <param name="ipBlock">IPBlock defines policy on a particular
|
||||
/// IPBlock</param>
|
||||
/// <param name="namespaceSelector">Selects Namespaces using cluster
|
||||
/// scoped-labels. This matches all pods in all namespaces selected by
|
||||
/// this label selector. This field follows standard label selector
|
||||
/// semantics. If present but empty, this selector selects all
|
||||
/// namespaces.</param>
|
||||
/// IPBlock. If this field is set then neither of the other fields can
|
||||
/// be.</param>
|
||||
/// <param name="namespaceSelector">Selects Namespaces using
|
||||
/// cluster-scoped labels. This field follows standard label selector
|
||||
/// semantics; if present but empty, it selects all namespaces.
|
||||
///
|
||||
/// If PodSelector is also set, then the NetworkPolicyPeer as a whole
|
||||
/// selects the Pods matching PodSelector in the Namespaces selected by
|
||||
/// NamespaceSelector. Otherwise it selects all Pods in the Namespaces
|
||||
/// selected by NamespaceSelector.</param>
|
||||
/// <param name="podSelector">This is a label selector which selects
|
||||
/// Pods in this namespace. This field follows standard label selector
|
||||
/// semantics. If present but empty, this selector selects all pods in
|
||||
/// this namespace.</param>
|
||||
/// Pods. This field follows standard label selector semantics; if
|
||||
/// present but empty, it selects all pods.
|
||||
///
|
||||
/// If NamespaceSelector is also set, then the NetworkPolicyPeer as a
|
||||
/// whole selects the Pods matching PodSelector in the Namespaces
|
||||
/// selected by NamespaceSelector. Otherwise it selects the Pods
|
||||
/// matching PodSelector in the policy's own Namespace.</param>
|
||||
public V1beta1NetworkPolicyPeer(V1beta1IPBlock ipBlock = default(V1beta1IPBlock), V1LabelSelector namespaceSelector = default(V1LabelSelector), V1LabelSelector podSelector = default(V1LabelSelector))
|
||||
{
|
||||
IpBlock = ipBlock;
|
||||
@@ -51,25 +59,34 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets iPBlock defines policy on a particular IPBlock
|
||||
/// Gets or sets iPBlock defines policy on a particular IPBlock. If
|
||||
/// this field is set then neither of the other fields can be.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ipBlock")]
|
||||
public V1beta1IPBlock IpBlock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets selects Namespaces using cluster scoped-labels. This
|
||||
/// matches all pods in all namespaces selected by this label selector.
|
||||
/// This field follows standard label selector semantics. If present
|
||||
/// but empty, this selector selects all namespaces.
|
||||
/// Gets or sets selects Namespaces using cluster-scoped labels. This
|
||||
/// field follows standard label selector semantics; if present but
|
||||
/// empty, it selects all namespaces.
|
||||
///
|
||||
/// If PodSelector is also set, then the NetworkPolicyPeer as a whole
|
||||
/// selects the Pods matching PodSelector in the Namespaces selected by
|
||||
/// NamespaceSelector. Otherwise it selects all Pods in the Namespaces
|
||||
/// selected by NamespaceSelector.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "namespaceSelector")]
|
||||
public V1LabelSelector NamespaceSelector { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets this is a label selector which selects Pods in this
|
||||
/// namespace. This field follows standard label selector semantics. If
|
||||
/// present but empty, this selector selects all pods in this
|
||||
/// namespace.
|
||||
/// Gets or sets this is a label selector which selects Pods. This
|
||||
/// field follows standard label selector semantics; if present but
|
||||
/// empty, it selects all pods.
|
||||
///
|
||||
/// If NamespaceSelector is also set, then the NetworkPolicyPeer as a
|
||||
/// whole selects the Pods matching PodSelector in the Namespaces
|
||||
/// selected by NamespaceSelector. Otherwise it selects the Pods
|
||||
/// matching PodSelector in the policy's own Namespace.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "podSelector")]
|
||||
public V1LabelSelector PodSelector { get; set; }
|
||||
|
||||
138
src/KubernetesClient/generated/Models/V1beta1PriorityClass.cs
Normal file
138
src/KubernetesClient/generated/Models/V1beta1PriorityClass.cs
Normal file
@@ -0,0 +1,138 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityClass defines mapping from a priority class name to the
|
||||
/// priority integer value. The value can be any valid integer.
|
||||
/// </summary>
|
||||
public partial class V1beta1PriorityClass
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1PriorityClass class.
|
||||
/// </summary>
|
||||
public V1beta1PriorityClass()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1PriorityClass class.
|
||||
/// </summary>
|
||||
/// <param name="value">The value of this priority class. This is the
|
||||
/// actual priority that pods receive when they have the name of this
|
||||
/// class in their pod spec.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources</param>
|
||||
/// <param name="description">description is an arbitrary string that
|
||||
/// usually provides guidelines on when this priority class should be
|
||||
/// used.</param>
|
||||
/// <param name="globalDefault">globalDefault specifies whether this
|
||||
/// PriorityClass should be considered as the default priority for pods
|
||||
/// that do not have any priority class. Only one PriorityClass can be
|
||||
/// marked as `globalDefault`. However, if more than one
|
||||
/// PriorityClasses exists with their `globalDefault` field set to
|
||||
/// true, the smallest value of such global default PriorityClasses
|
||||
/// will be used as the default priority.</param>
|
||||
/// <param name="kind">Kind is a string value representing the REST
|
||||
/// resource this object represents. Servers may infer this from the
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">Standard object's metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
|
||||
public V1beta1PriorityClass(int value, string apiVersion = default(string), string description = default(string), bool? globalDefault = default(bool?), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Description = description;
|
||||
GlobalDefault = globalDefault;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
Value = value;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiVersion")]
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets description is an arbitrary string that usually
|
||||
/// provides guidelines on when this priority class should be used.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets globalDefault specifies whether this PriorityClass
|
||||
/// should be considered as the default priority for pods that do not
|
||||
/// have any priority class. Only one PriorityClass can be marked as
|
||||
/// `globalDefault`. However, if more than one PriorityClasses exists
|
||||
/// with their `globalDefault` field set to true, the smallest value of
|
||||
/// such global default PriorityClasses will be used as the default
|
||||
/// priority.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "globalDefault")]
|
||||
public bool? GlobalDefault { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
/// this object represents. Servers may infer this from the endpoint
|
||||
/// the client submits requests to. Cannot be updated. In CamelCase.
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets standard object's metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ObjectMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of this priority class. This is the actual
|
||||
/// priority that pods receive when they have the name of this class in
|
||||
/// their pod spec.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "value")]
|
||||
public int Value { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Metadata != null)
|
||||
{
|
||||
Metadata.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityClassList is a collection of priority classes.
|
||||
/// </summary>
|
||||
public partial class V1beta1PriorityClassList
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1PriorityClassList class.
|
||||
/// </summary>
|
||||
public V1beta1PriorityClassList()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1PriorityClassList class.
|
||||
/// </summary>
|
||||
/// <param name="items">items is the list of PriorityClasses</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources</param>
|
||||
/// <param name="kind">Kind is a string value representing the REST
|
||||
/// resource this object represents. Servers may infer this from the
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">Standard list metadata More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
|
||||
public V1beta1PriorityClassList(IList<V1beta1PriorityClass> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Items = items;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiVersion")]
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets items is the list of PriorityClasses
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V1beta1PriorityClass> Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
/// this object represents. Servers may infer this from the endpoint
|
||||
/// the client submits requests to. Cannot be updated. In CamelCase.
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets standard list metadata More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ListMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Items == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Items");
|
||||
}
|
||||
if (Items != null)
|
||||
{
|
||||
foreach (var element in Items)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,8 +35,6 @@ namespace k8s.Models
|
||||
/// <param name="roleRef">RoleRef can reference a Role in the current
|
||||
/// namespace or a ClusterRole in the global namespace. If the RoleRef
|
||||
/// cannot be resolved, the Authorizer must return an error.</param>
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
@@ -48,7 +46,9 @@ namespace k8s.Models
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">Standard object's metadata.</param>
|
||||
public V1beta1RoleBinding(V1beta1RoleRef roleRef, IList<V1beta1Subject> subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
public V1beta1RoleBinding(V1beta1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<V1beta1Subject> subjects = default(IList<V1beta1Subject>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -116,10 +116,6 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "RoleRef");
|
||||
}
|
||||
if (Subjects == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Subjects");
|
||||
}
|
||||
if (Metadata != null)
|
||||
{
|
||||
Metadata.Validate();
|
||||
|
||||
@@ -36,6 +36,12 @@ namespace k8s.Models
|
||||
/// provisioner.</param>
|
||||
/// <param name="allowVolumeExpansion">AllowVolumeExpansion shows
|
||||
/// whether the storage class allow volume expand</param>
|
||||
/// <param name="allowedTopologies">Restrict the node topologies where
|
||||
/// volumes can be dynamically provisioned. Each volume plugin defines
|
||||
/// its own supported topology specifications. An empty
|
||||
/// TopologySelectorTerm list means there is no topology restriction.
|
||||
/// This field is alpha-level and is only honored by servers that
|
||||
/// enable the DynamicProvisioningScheduling feature.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
@@ -63,9 +69,10 @@ namespace k8s.Models
|
||||
/// unset, VolumeBindingImmediate is used. This field is alpha-level
|
||||
/// and is only honored by servers that enable the VolumeScheduling
|
||||
/// feature.</param>
|
||||
public V1beta1StorageClass(string provisioner, bool? allowVolumeExpansion = default(bool?), string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<string> mountOptions = default(IList<string>), IDictionary<string, string> parameters = default(IDictionary<string, string>), string reclaimPolicy = default(string), string volumeBindingMode = default(string))
|
||||
public V1beta1StorageClass(string provisioner, bool? allowVolumeExpansion = default(bool?), IList<V1TopologySelectorTerm> allowedTopologies = default(IList<V1TopologySelectorTerm>), string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<string> mountOptions = default(IList<string>), IDictionary<string, string> parameters = default(IDictionary<string, string>), string reclaimPolicy = default(string), string volumeBindingMode = default(string))
|
||||
{
|
||||
AllowVolumeExpansion = allowVolumeExpansion;
|
||||
AllowedTopologies = allowedTopologies;
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
@@ -89,6 +96,17 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "allowVolumeExpansion")]
|
||||
public bool? AllowVolumeExpansion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets restrict the node topologies where volumes can be
|
||||
/// dynamically provisioned. Each volume plugin defines its own
|
||||
/// supported topology specifications. An empty TopologySelectorTerm
|
||||
/// list means there is no topology restriction. This field is
|
||||
/// alpha-level and is only honored by servers that enable the
|
||||
/// DynamicProvisioningScheduling feature.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allowedTopologies")]
|
||||
public IList<V1TopologySelectorTerm> AllowedTopologies { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
|
||||
@@ -36,9 +36,8 @@ namespace k8s.Models
|
||||
/// If the webhook is running within the cluster, then you should use
|
||||
/// `service`.
|
||||
///
|
||||
/// If there is only one port open for the service, that port will be
|
||||
/// used. If there are multiple ports open, port 443 will be used if it
|
||||
/// is open, otherwise it is an error.</param>
|
||||
/// Port 443 will be used if it is open, otherwise it is an
|
||||
/// error.</param>
|
||||
/// <param name="url">`url` gives the location of the webhook, in
|
||||
/// standard URL form (`[scheme://]host:port/path`). Exactly one of
|
||||
/// `url` or `service` must be specified.
|
||||
@@ -91,9 +90,7 @@ namespace k8s.Models
|
||||
/// If the webhook is running within the cluster, then you should use
|
||||
/// `service`.
|
||||
///
|
||||
/// If there is only one port open for the service, that port will be
|
||||
/// used. If there are multiple ports open, port 443 will be used if it
|
||||
/// is open, otherwise it is an error.
|
||||
/// Port 443 will be used if it is open, otherwise it is an error.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "service")]
|
||||
public Admissionregistrationv1beta1ServiceReference Service { get; set; }
|
||||
|
||||
@@ -32,10 +32,10 @@ namespace k8s.Models
|
||||
/// absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
|
||||
/// This can not be 0 if MaxUnavailable is 0. Absolute number is
|
||||
/// calculated from percentage by rounding up. Defaults to 25%.
|
||||
/// Example: when this is set to 30%, the new RC can be scaled up
|
||||
/// immediately when the rolling update starts, such that the total
|
||||
/// Example: when this is set to 30%, the new ReplicaSet can be scaled
|
||||
/// up immediately when the rolling update starts, such that the total
|
||||
/// number of old and new pods do not exceed 130% of desired pods. Once
|
||||
/// old pods have been killed, new RC can be scaled up further,
|
||||
/// old pods have been killed, new ReplicaSet can be scaled up further,
|
||||
/// ensuring that total number of pods running at any time during the
|
||||
/// update is atmost 130% of desired pods.</param>
|
||||
/// <param name="maxUnavailable">The maximum number of pods that can be
|
||||
@@ -43,11 +43,12 @@ namespace k8s.Models
|
||||
/// 5) or a percentage of desired pods (ex: 10%). Absolute number is
|
||||
/// calculated from percentage by rounding down. This can not be 0 if
|
||||
/// MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%,
|
||||
/// the old RC can be scaled down to 70% of desired pods immediately
|
||||
/// when the rolling update starts. Once new pods are ready, old RC can
|
||||
/// be scaled down further, followed by scaling up the new RC, ensuring
|
||||
/// that the total number of pods available at all times during the
|
||||
/// update is at least 70% of desired pods.</param>
|
||||
/// the old ReplicaSet can be scaled down to 70% of desired pods
|
||||
/// immediately when the rolling update starts. Once new pods are
|
||||
/// ready, old ReplicaSet can be scaled down further, followed by
|
||||
/// scaling up the new ReplicaSet, ensuring that the total number of
|
||||
/// pods available at all times during the update is at least 70% of
|
||||
/// desired pods.</param>
|
||||
public V1beta2RollingUpdateDeployment(IntstrIntOrString maxSurge = default(IntstrIntOrString), IntstrIntOrString maxUnavailable = default(IntstrIntOrString))
|
||||
{
|
||||
MaxSurge = maxSurge;
|
||||
@@ -66,12 +67,12 @@ namespace k8s.Models
|
||||
/// or a percentage of desired pods (ex: 10%). This can not be 0 if
|
||||
/// MaxUnavailable is 0. Absolute number is calculated from percentage
|
||||
/// by rounding up. Defaults to 25%. Example: when this is set to 30%,
|
||||
/// the new RC can be scaled up immediately when the rolling update
|
||||
/// starts, such that the total number of old and new pods do not
|
||||
/// exceed 130% of desired pods. Once old pods have been killed, new RC
|
||||
/// can be scaled up further, ensuring that total number of pods
|
||||
/// running at any time during the update is atmost 130% of desired
|
||||
/// pods.
|
||||
/// the new ReplicaSet can be scaled up immediately when the rolling
|
||||
/// update starts, such that the total number of old and new pods do
|
||||
/// not exceed 130% of desired pods. Once old pods have been killed,
|
||||
/// new ReplicaSet can be scaled up further, ensuring that total number
|
||||
/// of pods running at any time during the update is atmost 130% of
|
||||
/// desired pods.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maxSurge")]
|
||||
public IntstrIntOrString MaxSurge { get; set; }
|
||||
@@ -81,12 +82,12 @@ namespace k8s.Models
|
||||
/// during the update. Value can be an absolute number (ex: 5) or a
|
||||
/// percentage of desired pods (ex: 10%). Absolute number is calculated
|
||||
/// from percentage by rounding down. This can not be 0 if MaxSurge is
|
||||
/// 0. Defaults to 25%. Example: when this is set to 30%, the old RC
|
||||
/// can be scaled down to 70% of desired pods immediately when the
|
||||
/// rolling update starts. Once new pods are ready, old RC can be
|
||||
/// scaled down further, followed by scaling up the new RC, ensuring
|
||||
/// that the total number of pods available at all times during the
|
||||
/// update is at least 70% of desired pods.
|
||||
/// 0. Defaults to 25%. Example: when this is set to 30%, the old
|
||||
/// ReplicaSet can be scaled down to 70% of desired pods immediately
|
||||
/// when the rolling update starts. Once new pods are ready, old
|
||||
/// ReplicaSet can be scaled down further, followed by scaling up the
|
||||
/// new ReplicaSet, ensuring that the total number of pods available at
|
||||
/// all times during the update is at least 70% of desired pods.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maxUnavailable")]
|
||||
public IntstrIntOrString MaxUnavailable { get; set; }
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user