Skip to content

Commit f17848d

Browse files
tg123brendandburns
authored andcommitted
regenerate with v1.9.2 (kubernetes-client#88)
1 parent db7ed9c commit f17848d

File tree

128 files changed

+105227
-43398
lines changed

Some content is hidden

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

128 files changed

+105227
-43398
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.8.4
1+
export KUBERNETES_BRANCH=v1.9.2
22
export CLIENT_VERSION=0.0.1
33
export PACKAGE_NAME=k8s

src/generated/IKubernetes.cs

Lines changed: 4835 additions & 1202 deletions
Large diffs are not rendered by default.

src/generated/Kubernetes.cs

Lines changed: 37419 additions & 15368 deletions
Large diffs are not rendered by default.

src/generated/KubernetesExtensions.cs

Lines changed: 10635 additions & 3249 deletions
Large diffs are not rendered by default.

src/generated/Models/V1alpha1ServiceReference.cs renamed to src/generated/Models/Admissionregistrationv1beta1ServiceReference.cs

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,32 @@ namespace k8s.Models
1313
/// <summary>
1414
/// ServiceReference holds a reference to Service.legacy.k8s.io
1515
/// </summary>
16-
public partial class V1alpha1ServiceReference
16+
public partial class Admissionregistrationv1beta1ServiceReference
1717
{
1818
/// <summary>
19-
/// Initializes a new instance of the V1alpha1ServiceReference class.
19+
/// Initializes a new instance of the
20+
/// Admissionregistrationv1beta1ServiceReference class.
2021
/// </summary>
21-
public V1alpha1ServiceReference()
22+
public Admissionregistrationv1beta1ServiceReference()
2223
{
2324
CustomInit();
2425
}
2526

2627
/// <summary>
27-
/// Initializes a new instance of the V1alpha1ServiceReference class.
28+
/// Initializes a new instance of the
29+
/// Admissionregistrationv1beta1ServiceReference class.
2830
/// </summary>
29-
/// <param name="name">Name is the name of the service Required</param>
30-
/// <param name="namespaceProperty">Namespace is the namespace of the
31-
/// service Required</param>
32-
public V1alpha1ServiceReference(string name, string namespaceProperty)
31+
/// <param name="name">`name` is the name of the service.
32+
/// Required</param>
33+
/// <param name="namespaceProperty">`namespace` is the namespace of the
34+
/// service. Required</param>
35+
/// <param name="path">`path` is an optional URL path which will be
36+
/// sent in any request to this service.</param>
37+
public Admissionregistrationv1beta1ServiceReference(string name, string namespaceProperty, string path = default(string))
3338
{
3439
Name = name;
3540
NamespaceProperty = namespaceProperty;
41+
Path = path;
3642
CustomInit();
3743
}
3844

@@ -42,17 +48,24 @@ public V1alpha1ServiceReference(string name, string namespaceProperty)
4248
partial void CustomInit();
4349

4450
/// <summary>
45-
/// Gets or sets name is the name of the service Required
51+
/// Gets or sets `name` is the name of the service. Required
4652
/// </summary>
4753
[JsonProperty(PropertyName = "name")]
4854
public string Name { get; set; }
4955

5056
/// <summary>
51-
/// Gets or sets namespace is the namespace of the service Required
57+
/// Gets or sets `namespace` is the namespace of the service. Required
5258
/// </summary>
5359
[JsonProperty(PropertyName = "namespace")]
5460
public string NamespaceProperty { get; set; }
5561

62+
/// <summary>
63+
/// Gets or sets `path` is an optional URL path which will be sent in
64+
/// any request to this service.
65+
/// </summary>
66+
[JsonProperty(PropertyName = "path")]
67+
public string Path { get; set; }
68+
5669
/// <summary>
5770
/// Validate the object.
5871
/// </summary>

src/generated/Models/V1beta1ServiceReference.cs renamed to src/generated/Models/Apiregistrationv1beta1ServiceReference.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,25 @@ namespace k8s.Models
1212
/// <summary>
1313
/// ServiceReference holds a reference to Service.legacy.k8s.io
1414
/// </summary>
15-
public partial class V1beta1ServiceReference
15+
public partial class Apiregistrationv1beta1ServiceReference
1616
{
1717
/// <summary>
18-
/// Initializes a new instance of the V1beta1ServiceReference class.
18+
/// Initializes a new instance of the
19+
/// Apiregistrationv1beta1ServiceReference class.
1920
/// </summary>
20-
public V1beta1ServiceReference()
21+
public Apiregistrationv1beta1ServiceReference()
2122
{
2223
CustomInit();
2324
}
2425

2526
/// <summary>
26-
/// Initializes a new instance of the V1beta1ServiceReference class.
27+
/// Initializes a new instance of the
28+
/// Apiregistrationv1beta1ServiceReference class.
2729
/// </summary>
2830
/// <param name="name">Name is the name of the service</param>
2931
/// <param name="namespaceProperty">Namespace is the namespace of the
3032
/// service</param>
31-
public V1beta1ServiceReference(string name = default(string), string namespaceProperty = default(string))
33+
public Apiregistrationv1beta1ServiceReference(string name = default(string), string namespaceProperty = default(string))
3234
{
3335
Name = name;
3436
NamespaceProperty = namespaceProperty;
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
/// AggregationRule describes how to locate ClusterRoles to aggregate into
16+
/// the ClusterRole
17+
/// </summary>
18+
public partial class V1AggregationRule
19+
{
20+
/// <summary>
21+
/// Initializes a new instance of the V1AggregationRule class.
22+
/// </summary>
23+
public V1AggregationRule()
24+
{
25+
CustomInit();
26+
}
27+
28+
/// <summary>
29+
/// Initializes a new instance of the V1AggregationRule class.
30+
/// </summary>
31+
/// <param name="clusterRoleSelectors">ClusterRoleSelectors holds a
32+
/// list of selectors which will be used to find ClusterRoles and
33+
/// create the rules. If any of the selectors match, then the
34+
/// ClusterRole's permissions will be added</param>
35+
public V1AggregationRule(IList<V1LabelSelector> clusterRoleSelectors = default(IList<V1LabelSelector>))
36+
{
37+
ClusterRoleSelectors = clusterRoleSelectors;
38+
CustomInit();
39+
}
40+
41+
/// <summary>
42+
/// An initialization method that performs custom operations like setting defaults
43+
/// </summary>
44+
partial void CustomInit();
45+
46+
/// <summary>
47+
/// Gets or sets clusterRoleSelectors holds a list of selectors which
48+
/// will be used to find ClusterRoles and create the rules. If any of
49+
/// the selectors match, then the ClusterRole's permissions will be
50+
/// added
51+
/// </summary>
52+
[JsonProperty(PropertyName = "clusterRoleSelectors")]
53+
public IList<V1LabelSelector> ClusterRoleSelectors { get; set; }
54+
55+
}
56+
}

src/generated/Models/V1AzureDiskVolumeSource.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public V1AzureDiskVolumeSource()
3636
/// <param name="fsType">Filesystem type to mount. Must be a filesystem
3737
/// type supported by the host operating system. Ex. "ext4", "xfs",
3838
/// "ntfs". Implicitly inferred to be "ext4" if unspecified.</param>
39-
/// <param name="kind">Expected values Shared: mulitple blob disks per
39+
/// <param name="kind">Expected values Shared: multiple blob disks per
4040
/// storage account Dedicated: single blob disk per storage account
4141
/// Managed: azure managed data disk (only in managed availability
4242
/// set). defaults to shared</param>
@@ -86,7 +86,7 @@ public V1AzureDiskVolumeSource()
8686
public string FsType { get; set; }
8787

8888
/// <summary>
89-
/// Gets or sets expected values Shared: mulitple blob disks per
89+
/// Gets or sets expected values Shared: multiple blob disks per
9090
/// storage account Dedicated: single blob disk per storage account
9191
/// Managed: azure managed data disk (only in managed availability
9292
/// set). defaults to shared
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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+
/// Represents storage that is managed by an external CSI volume driver
15+
/// </summary>
16+
public partial class V1CSIPersistentVolumeSource
17+
{
18+
/// <summary>
19+
/// Initializes a new instance of the V1CSIPersistentVolumeSource
20+
/// class.
21+
/// </summary>
22+
public V1CSIPersistentVolumeSource()
23+
{
24+
CustomInit();
25+
}
26+
27+
/// <summary>
28+
/// Initializes a new instance of the V1CSIPersistentVolumeSource
29+
/// class.
30+
/// </summary>
31+
/// <param name="driver">Driver is the name of the driver to use for
32+
/// this volume. Required.</param>
33+
/// <param name="volumeHandle">VolumeHandle is the unique volume name
34+
/// returned by the CSI volume plugin’s CreateVolume to refer to the
35+
/// volume on all subsequent calls. Required.</param>
36+
/// <param name="readOnlyProperty">Optional: The value to pass to
37+
/// ControllerPublishVolumeRequest. Defaults to false
38+
/// (read/write).</param>
39+
public V1CSIPersistentVolumeSource(string driver, string volumeHandle, bool? readOnlyProperty = default(bool?))
40+
{
41+
Driver = driver;
42+
ReadOnlyProperty = readOnlyProperty;
43+
VolumeHandle = volumeHandle;
44+
CustomInit();
45+
}
46+
47+
/// <summary>
48+
/// An initialization method that performs custom operations like setting defaults
49+
/// </summary>
50+
partial void CustomInit();
51+
52+
/// <summary>
53+
/// Gets or sets driver is the name of the driver to use for this
54+
/// volume. Required.
55+
/// </summary>
56+
[JsonProperty(PropertyName = "driver")]
57+
public string Driver { get; set; }
58+
59+
/// <summary>
60+
/// Gets or sets optional: The value to pass to
61+
/// ControllerPublishVolumeRequest. Defaults to false (read/write).
62+
/// </summary>
63+
[JsonProperty(PropertyName = "readOnly")]
64+
public bool? ReadOnlyProperty { get; set; }
65+
66+
/// <summary>
67+
/// Gets or sets volumeHandle is the unique volume name returned by the
68+
/// CSI volume plugin’s CreateVolume to refer to the volume on all
69+
/// subsequent calls. Required.
70+
/// </summary>
71+
[JsonProperty(PropertyName = "volumeHandle")]
72+
public string VolumeHandle { get; set; }
73+
74+
/// <summary>
75+
/// Validate the object.
76+
/// </summary>
77+
/// <exception cref="ValidationException">
78+
/// Thrown if validation fails
79+
/// </exception>
80+
public virtual void Validate()
81+
{
82+
if (Driver == null)
83+
{
84+
throw new ValidationException(ValidationRules.CannotBeNull, "Driver");
85+
}
86+
if (VolumeHandle == null)
87+
{
88+
throw new ValidationException(ValidationRules.CannotBeNull, "VolumeHandle");
89+
}
90+
}
91+
}
92+
}

src/generated/Models/V1ClusterRole.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ public V1ClusterRole()
3131
/// </summary>
3232
/// <param name="rules">Rules holds all the PolicyRules for this
3333
/// ClusterRole</param>
34+
/// <param name="aggregationRule">AggregationRule is an optional field
35+
/// that describes how to build the Rules for this ClusterRole. If
36+
/// AggregationRule is set, then the Rules are controller managed and
37+
/// direct changes to Rules will be stomped by the controller.</param>
3438
/// <param name="apiVersion">APIVersion defines the versioned schema of
3539
/// this representation of an object. Servers should convert recognized
3640
/// schemas to the latest internal value, and may reject unrecognized
@@ -42,8 +46,9 @@ public V1ClusterRole()
4246
/// CamelCase. More info:
4347
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
4448
/// <param name="metadata">Standard object's metadata.</param>
45-
public V1ClusterRole(IList<V1PolicyRule> rules, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
49+
public V1ClusterRole(IList<V1PolicyRule> rules, V1AggregationRule aggregationRule = default(V1AggregationRule), string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
4650
{
51+
AggregationRule = aggregationRule;
4752
ApiVersion = apiVersion;
4853
Kind = kind;
4954
Metadata = metadata;
@@ -56,6 +61,15 @@ public V1ClusterRole()
5661
/// </summary>
5762
partial void CustomInit();
5863

64+
/// <summary>
65+
/// Gets or sets aggregationRule is an optional field that describes
66+
/// how to build the Rules for this ClusterRole. If AggregationRule is
67+
/// set, then the Rules are controller managed and direct changes to
68+
/// Rules will be stomped by the controller.
69+
/// </summary>
70+
[JsonProperty(PropertyName = "aggregationRule")]
71+
public V1AggregationRule AggregationRule { get; set; }
72+
5973
/// <summary>
6074
/// Gets or sets aPIVersion defines the versioned schema of this
6175
/// representation of an object. Servers should convert recognized

0 commit comments

Comments
 (0)