Skip to content

Commit c5f1360

Browse files
Merge pull request #36 from krabhishek8260/generateclient
Regenerated csharp client
2 parents c108799 + 4ef6941 commit c5f1360

File tree

469 files changed

+158948
-38551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

469 files changed

+158948
-38551
lines changed

csharp.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export KUBERNETES_BRANCH=v1.6.0
1+
export KUBERNETES_BRANCH=master
22
export CLIENT_VERSION=0.0.1
33
export PACKAGE_NAME=k8s

src/generated/.swagger-codegen/COMMIT

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Requested Commit: v2.2.3
2+
Actual Commit: 049b1b2bcc904e1179a0e9b11124ed8fa0e3be2e

src/generated/IKubernetes.cs

Lines changed: 13088 additions & 1619 deletions
Large diffs are not rendered by default.

src/generated/Kubernetes.cs

Lines changed: 57019 additions & 12660 deletions
Large diffs are not rendered by default.

src/generated/KubernetesExtensions.cs

Lines changed: 27402 additions & 4844 deletions
Large diffs are not rendered by default.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
// <auto-generated>
2+
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Changes may cause incorrect behavior and will be lost if the code is
4+
// regenerated.
5+
// </auto-generated>
6+
7+
namespace k8s.Models
8+
{
9+
using Microsoft.Rest;
10+
using Newtonsoft.Json;
11+
using System.Linq;
12+
13+
/// <summary>
14+
/// AdmissionHookClientConfig contains the information to make a TLS
15+
/// connection with the webhook
16+
/// </summary>
17+
public partial class Apiadmissionregistrationv1alpha1AdmissionHookClientConfig
18+
{
19+
/// <summary>
20+
/// Initializes a new instance of the
21+
/// Apiadmissionregistrationv1alpha1AdmissionHookClientConfig class.
22+
/// </summary>
23+
public Apiadmissionregistrationv1alpha1AdmissionHookClientConfig()
24+
{
25+
CustomInit();
26+
}
27+
28+
/// <summary>
29+
/// Initializes a new instance of the
30+
/// Apiadmissionregistrationv1alpha1AdmissionHookClientConfig class.
31+
/// </summary>
32+
/// <param name="caBundle">CABundle is a PEM encoded CA bundle which
33+
/// will be used to validate webhook's server certificate.
34+
/// Required</param>
35+
/// <param name="service">Service is a reference to the service for
36+
/// this webhook. If there is only one port open for the service, that
37+
/// port will be used. If there are multiple ports open, port 443 will
38+
/// be used if it is open, otherwise it is an error. Required</param>
39+
public Apiadmissionregistrationv1alpha1AdmissionHookClientConfig(byte[] caBundle, Apiadmissionregistrationv1alpha1ServiceReference service)
40+
{
41+
CaBundle = caBundle;
42+
Service = service;
43+
CustomInit();
44+
}
45+
46+
/// <summary>
47+
/// An initialization method that performs custom operations like setting defaults
48+
/// </summary>
49+
partial void CustomInit();
50+
51+
/// <summary>
52+
/// Gets or sets cABundle is a PEM encoded CA bundle which will be used
53+
/// to validate webhook's server certificate. Required
54+
/// </summary>
55+
[JsonProperty(PropertyName = "caBundle")]
56+
public byte[] CaBundle { get; set; }
57+
58+
/// <summary>
59+
/// Gets or sets service is a reference to the service for this
60+
/// webhook. If there is only one port open for the service, that port
61+
/// will be used. If there are multiple ports open, port 443 will be
62+
/// used if it is open, otherwise it is an error. Required
63+
/// </summary>
64+
[JsonProperty(PropertyName = "service")]
65+
public Apiadmissionregistrationv1alpha1ServiceReference Service { get; set; }
66+
67+
/// <summary>
68+
/// Validate the object.
69+
/// </summary>
70+
/// <exception cref="ValidationException">
71+
/// Thrown if validation fails
72+
/// </exception>
73+
public virtual void Validate()
74+
{
75+
if (CaBundle == null)
76+
{
77+
throw new ValidationException(ValidationRules.CannotBeNull, "CaBundle");
78+
}
79+
if (Service == null)
80+
{
81+
throw new ValidationException(ValidationRules.CannotBeNull, "Service");
82+
}
83+
if (Service != null)
84+
{
85+
Service.Validate();
86+
}
87+
}
88+
}
89+
}
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
// <auto-generated>
2+
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Changes may cause incorrect behavior and will be lost if the code is
4+
// regenerated.
5+
// </auto-generated>
6+
7+
namespace k8s.Models
8+
{
9+
using Microsoft.Rest;
10+
using Newtonsoft.Json;
11+
using System.Collections;
12+
using System.Collections.Generic;
13+
using System.Linq;
14+
15+
/// <summary>
16+
/// ExternalAdmissionHook describes an external admission webhook and the
17+
/// resources and operations it applies to.
18+
/// </summary>
19+
public partial class Apiadmissionregistrationv1alpha1ExternalAdmissionHook
20+
{
21+
/// <summary>
22+
/// Initializes a new instance of the
23+
/// Apiadmissionregistrationv1alpha1ExternalAdmissionHook class.
24+
/// </summary>
25+
public Apiadmissionregistrationv1alpha1ExternalAdmissionHook()
26+
{
27+
CustomInit();
28+
}
29+
30+
/// <summary>
31+
/// Initializes a new instance of the
32+
/// Apiadmissionregistrationv1alpha1ExternalAdmissionHook class.
33+
/// </summary>
34+
/// <param name="clientConfig">ClientConfig defines how to communicate
35+
/// with the hook. Required</param>
36+
/// <param name="name">The name of the external admission webhook. Name
37+
/// should be fully qualified, e.g., imagepolicy.kubernetes.io, where
38+
/// "imagepolicy" is the name of the webhook, and kubernetes.io is the
39+
/// name of the organization. Required.</param>
40+
/// <param name="failurePolicy">FailurePolicy defines how unrecognized
41+
/// errors from the admission endpoint are handled - allowed values are
42+
/// Ignore or Fail. Defaults to Ignore.</param>
43+
/// <param name="rules">Rules describes what operations on what
44+
/// resources/subresources the webhook cares about. The webhook cares
45+
/// about an operation if it matches _any_ Rule.</param>
46+
public Apiadmissionregistrationv1alpha1ExternalAdmissionHook(Apiadmissionregistrationv1alpha1AdmissionHookClientConfig clientConfig, string name, string failurePolicy = default(string), IList<Apiadmissionregistrationv1alpha1RuleWithOperations> rules = default(IList<Apiadmissionregistrationv1alpha1RuleWithOperations>))
47+
{
48+
ClientConfig = clientConfig;
49+
FailurePolicy = failurePolicy;
50+
Name = name;
51+
Rules = rules;
52+
CustomInit();
53+
}
54+
55+
/// <summary>
56+
/// An initialization method that performs custom operations like setting defaults
57+
/// </summary>
58+
partial void CustomInit();
59+
60+
/// <summary>
61+
/// Gets or sets clientConfig defines how to communicate with the hook.
62+
/// Required
63+
/// </summary>
64+
[JsonProperty(PropertyName = "clientConfig")]
65+
public Apiadmissionregistrationv1alpha1AdmissionHookClientConfig ClientConfig { get; set; }
66+
67+
/// <summary>
68+
/// Gets or sets failurePolicy defines how unrecognized errors from the
69+
/// admission endpoint are handled - allowed values are Ignore or Fail.
70+
/// Defaults to Ignore.
71+
/// </summary>
72+
[JsonProperty(PropertyName = "failurePolicy")]
73+
public string FailurePolicy { get; set; }
74+
75+
/// <summary>
76+
/// Gets or sets the name of the external admission webhook. Name
77+
/// should be fully qualified, e.g., imagepolicy.kubernetes.io, where
78+
/// "imagepolicy" is the name of the webhook, and kubernetes.io is the
79+
/// name of the organization. Required.
80+
/// </summary>
81+
[JsonProperty(PropertyName = "name")]
82+
public string Name { get; set; }
83+
84+
/// <summary>
85+
/// Gets or sets rules describes what operations on what
86+
/// resources/subresources the webhook cares about. The webhook cares
87+
/// about an operation if it matches _any_ Rule.
88+
/// </summary>
89+
[JsonProperty(PropertyName = "rules")]
90+
public IList<Apiadmissionregistrationv1alpha1RuleWithOperations> Rules { get; set; }
91+
92+
/// <summary>
93+
/// Validate the object.
94+
/// </summary>
95+
/// <exception cref="ValidationException">
96+
/// Thrown if validation fails
97+
/// </exception>
98+
public virtual void Validate()
99+
{
100+
if (ClientConfig == null)
101+
{
102+
throw new ValidationException(ValidationRules.CannotBeNull, "ClientConfig");
103+
}
104+
if (Name == null)
105+
{
106+
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
107+
}
108+
if (ClientConfig != null)
109+
{
110+
ClientConfig.Validate();
111+
}
112+
}
113+
}
114+
}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
// <auto-generated>
2+
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Changes may cause incorrect behavior and will be lost if the code is
4+
// regenerated.
5+
// </auto-generated>
6+
7+
namespace k8s.Models
8+
{
9+
using Newtonsoft.Json;
10+
using System.Collections;
11+
using System.Collections.Generic;
12+
using System.Linq;
13+
14+
/// <summary>
15+
/// ExternalAdmissionHookConfiguration describes the configuration of
16+
/// initializers.
17+
/// </summary>
18+
public partial class Apiadmissionregistrationv1alpha1ExternalAdmissionHookConfiguration
19+
{
20+
/// <summary>
21+
/// Initializes a new instance of the
22+
/// Apiadmissionregistrationv1alpha1ExternalAdmissionHookConfiguration
23+
/// class.
24+
/// </summary>
25+
public Apiadmissionregistrationv1alpha1ExternalAdmissionHookConfiguration()
26+
{
27+
CustomInit();
28+
}
29+
30+
/// <summary>
31+
/// Initializes a new instance of the
32+
/// Apiadmissionregistrationv1alpha1ExternalAdmissionHookConfiguration
33+
/// class.
34+
/// </summary>
35+
/// <param name="apiVersion">APIVersion defines the versioned schema of
36+
/// this representation of an object. Servers should convert recognized
37+
/// schemas to the latest internal value, and may reject unrecognized
38+
/// values. More info:
39+
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources</param>
40+
/// <param name="externalAdmissionHooks">ExternalAdmissionHooks is a
41+
/// list of external admission webhooks and the affected resources and
42+
/// operations.</param>
43+
/// <param name="kind">Kind is a string value representing the REST
44+
/// resource this object represents. Servers may infer this from the
45+
/// endpoint the client submits requests to. Cannot be updated. In
46+
/// CamelCase. More info:
47+
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
48+
/// <param name="metadata">Standard object metadata; More info:
49+
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.</param>
50+
public Apiadmissionregistrationv1alpha1ExternalAdmissionHookConfiguration(string apiVersion = default(string), IList<Apiadmissionregistrationv1alpha1ExternalAdmissionHook> externalAdmissionHooks = default(IList<Apiadmissionregistrationv1alpha1ExternalAdmissionHook>), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
51+
{
52+
ApiVersion = apiVersion;
53+
ExternalAdmissionHooks = externalAdmissionHooks;
54+
Kind = kind;
55+
Metadata = metadata;
56+
CustomInit();
57+
}
58+
59+
/// <summary>
60+
/// An initialization method that performs custom operations like setting defaults
61+
/// </summary>
62+
partial void CustomInit();
63+
64+
/// <summary>
65+
/// Gets or sets aPIVersion defines the versioned schema of this
66+
/// representation of an object. Servers should convert recognized
67+
/// schemas to the latest internal value, and may reject unrecognized
68+
/// values. More info:
69+
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
70+
/// </summary>
71+
[JsonProperty(PropertyName = "apiVersion")]
72+
public string ApiVersion { get; set; }
73+
74+
/// <summary>
75+
/// Gets or sets externalAdmissionHooks is a list of external admission
76+
/// webhooks and the affected resources and operations.
77+
/// </summary>
78+
[JsonProperty(PropertyName = "externalAdmissionHooks")]
79+
public IList<Apiadmissionregistrationv1alpha1ExternalAdmissionHook> ExternalAdmissionHooks { get; set; }
80+
81+
/// <summary>
82+
/// Gets or sets kind is a string value representing the REST resource
83+
/// this object represents. Servers may infer this from the endpoint
84+
/// the client submits requests to. Cannot be updated. In CamelCase.
85+
/// More info:
86+
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
87+
/// </summary>
88+
[JsonProperty(PropertyName = "kind")]
89+
public string Kind { get; set; }
90+
91+
/// <summary>
92+
/// Gets or sets standard object metadata; More info:
93+
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.
94+
/// </summary>
95+
[JsonProperty(PropertyName = "metadata")]
96+
public V1ObjectMeta Metadata { get; set; }
97+
98+
/// <summary>
99+
/// Validate the object.
100+
/// </summary>
101+
/// <exception cref="Microsoft.Rest.ValidationException">
102+
/// Thrown if validation fails
103+
/// </exception>
104+
public virtual void Validate()
105+
{
106+
if (ExternalAdmissionHooks != null)
107+
{
108+
foreach (var element in ExternalAdmissionHooks)
109+
{
110+
if (element != null)
111+
{
112+
element.Validate();
113+
}
114+
}
115+
}
116+
if (Metadata != null)
117+
{
118+
Metadata.Validate();
119+
}
120+
}
121+
}
122+
}

0 commit comments

Comments
 (0)