k8s-io 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1303) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +14 -0
  3. data/Gemfile.lock +93 -0
  4. data/README.md +1515 -0
  5. data/Rakefile +10 -0
  6. data/docs/AdmissionregistrationApi.md +56 -0
  7. data/docs/AdmissionregistrationV1alpha1Api.md +516 -0
  8. data/docs/AdmissionregistrationV1beta1Api.md +976 -0
  9. data/docs/AdmissionregistrationV1beta1ServiceReference.md +10 -0
  10. data/docs/AdmissionregistrationV1beta1WebhookClientConfig.md +10 -0
  11. data/docs/ApiextensionsApi.md +56 -0
  12. data/docs/ApiextensionsV1beta1Api.md +700 -0
  13. data/docs/ApiextensionsV1beta1ServiceReference.md +10 -0
  14. data/docs/ApiextensionsV1beta1WebhookClientConfig.md +10 -0
  15. data/docs/ApiregistrationApi.md +56 -0
  16. data/docs/ApiregistrationV1Api.md +700 -0
  17. data/docs/ApiregistrationV1beta1Api.md +700 -0
  18. data/docs/ApiregistrationV1beta1ServiceReference.md +9 -0
  19. data/docs/ApisApi.md +56 -0
  20. data/docs/AppsApi.md +56 -0
  21. data/docs/AppsV1Api.md +4167 -0
  22. data/docs/AppsV1beta1Api.md +2552 -0
  23. data/docs/AppsV1beta1Deployment.md +12 -0
  24. data/docs/AppsV1beta1DeploymentCondition.md +13 -0
  25. data/docs/AppsV1beta1DeploymentList.md +11 -0
  26. data/docs/AppsV1beta1DeploymentRollback.md +12 -0
  27. data/docs/AppsV1beta1DeploymentSpec.md +16 -0
  28. data/docs/AppsV1beta1DeploymentStatus.md +15 -0
  29. data/docs/AppsV1beta1DeploymentStrategy.md +9 -0
  30. data/docs/AppsV1beta1RollbackConfig.md +8 -0
  31. data/docs/AppsV1beta1RollingUpdateDeployment.md +9 -0
  32. data/docs/AppsV1beta1Scale.md +12 -0
  33. data/docs/AppsV1beta1ScaleSpec.md +8 -0
  34. data/docs/AppsV1beta1ScaleStatus.md +10 -0
  35. data/docs/AppsV1beta2Api.md +4167 -0
  36. data/docs/AuditregistrationApi.md +56 -0
  37. data/docs/AuditregistrationV1alpha1Api.md +516 -0
  38. data/docs/AuthenticationApi.md +56 -0
  39. data/docs/AuthenticationV1Api.md +118 -0
  40. data/docs/AuthenticationV1beta1Api.md +118 -0
  41. data/docs/AuthorizationApi.md +56 -0
  42. data/docs/AuthorizationV1Api.md +307 -0
  43. data/docs/AuthorizationV1beta1Api.md +307 -0
  44. data/docs/AutoscalingApi.md +56 -0
  45. data/docs/AutoscalingV1Api.md +801 -0
  46. data/docs/AutoscalingV2beta1Api.md +801 -0
  47. data/docs/AutoscalingV2beta2Api.md +801 -0
  48. data/docs/BatchApi.md +56 -0
  49. data/docs/BatchV1Api.md +801 -0
  50. data/docs/BatchV1beta1Api.md +801 -0
  51. data/docs/BatchV2alpha1Api.md +801 -0
  52. data/docs/CertificatesApi.md +56 -0
  53. data/docs/CertificatesV1beta1Api.md +763 -0
  54. data/docs/CoordinationApi.md +56 -0
  55. data/docs/CoordinationV1beta1Api.md +608 -0
  56. data/docs/CoreApi.md +56 -0
  57. data/docs/CoreV1Api.md +13078 -0
  58. data/docs/CustomObjectsApi.md +1640 -0
  59. data/docs/EventsApi.md +56 -0
  60. data/docs/EventsV1beta1Api.md +608 -0
  61. data/docs/ExtensionsApi.md +56 -0
  62. data/docs/ExtensionsV1beta1AllowedFlexVolume.md +8 -0
  63. data/docs/ExtensionsV1beta1AllowedHostPath.md +9 -0
  64. data/docs/ExtensionsV1beta1Api.md +4695 -0
  65. data/docs/ExtensionsV1beta1Deployment.md +12 -0
  66. data/docs/ExtensionsV1beta1DeploymentCondition.md +13 -0
  67. data/docs/ExtensionsV1beta1DeploymentList.md +11 -0
  68. data/docs/ExtensionsV1beta1DeploymentRollback.md +12 -0
  69. data/docs/ExtensionsV1beta1DeploymentSpec.md +16 -0
  70. data/docs/ExtensionsV1beta1DeploymentStatus.md +15 -0
  71. data/docs/ExtensionsV1beta1DeploymentStrategy.md +9 -0
  72. data/docs/ExtensionsV1beta1FSGroupStrategyOptions.md +9 -0
  73. data/docs/ExtensionsV1beta1HostPortRange.md +9 -0
  74. data/docs/ExtensionsV1beta1IDRange.md +9 -0
  75. data/docs/ExtensionsV1beta1PodSecurityPolicy.md +11 -0
  76. data/docs/ExtensionsV1beta1PodSecurityPolicyList.md +11 -0
  77. data/docs/ExtensionsV1beta1PodSecurityPolicySpec.md +29 -0
  78. data/docs/ExtensionsV1beta1RollbackConfig.md +8 -0
  79. data/docs/ExtensionsV1beta1RollingUpdateDeployment.md +9 -0
  80. data/docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md +9 -0
  81. data/docs/ExtensionsV1beta1RunAsUserStrategyOptions.md +9 -0
  82. data/docs/ExtensionsV1beta1SELinuxStrategyOptions.md +9 -0
  83. data/docs/ExtensionsV1beta1Scale.md +12 -0
  84. data/docs/ExtensionsV1beta1ScaleSpec.md +8 -0
  85. data/docs/ExtensionsV1beta1ScaleStatus.md +10 -0
  86. data/docs/ExtensionsV1beta1SupplementalGroupsStrategyOptions.md +9 -0
  87. data/docs/LogsApi.md +104 -0
  88. data/docs/NetworkingApi.md +56 -0
  89. data/docs/NetworkingV1Api.md +608 -0
  90. data/docs/PolicyApi.md +56 -0
  91. data/docs/PolicyV1beta1AllowedFlexVolume.md +8 -0
  92. data/docs/PolicyV1beta1AllowedHostPath.md +9 -0
  93. data/docs/PolicyV1beta1Api.md +1261 -0
  94. data/docs/PolicyV1beta1FSGroupStrategyOptions.md +9 -0
  95. data/docs/PolicyV1beta1HostPortRange.md +9 -0
  96. data/docs/PolicyV1beta1IDRange.md +9 -0
  97. data/docs/PolicyV1beta1PodSecurityPolicy.md +11 -0
  98. data/docs/PolicyV1beta1PodSecurityPolicyList.md +11 -0
  99. data/docs/PolicyV1beta1PodSecurityPolicySpec.md +29 -0
  100. data/docs/PolicyV1beta1RunAsGroupStrategyOptions.md +9 -0
  101. data/docs/PolicyV1beta1RunAsUserStrategyOptions.md +9 -0
  102. data/docs/PolicyV1beta1SELinuxStrategyOptions.md +9 -0
  103. data/docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md +9 -0
  104. data/docs/RbacAuthorizationApi.md +56 -0
  105. data/docs/RbacAuthorizationV1Api.md +2064 -0
  106. data/docs/RbacAuthorizationV1alpha1Api.md +2064 -0
  107. data/docs/RbacAuthorizationV1beta1Api.md +2064 -0
  108. data/docs/RuntimeRawExtension.md +8 -0
  109. data/docs/SchedulingApi.md +56 -0
  110. data/docs/SchedulingV1alpha1Api.md +516 -0
  111. data/docs/SchedulingV1beta1Api.md +516 -0
  112. data/docs/SettingsApi.md +56 -0
  113. data/docs/SettingsV1alpha1Api.md +608 -0
  114. data/docs/StorageApi.md +56 -0
  115. data/docs/StorageV1Api.md +1160 -0
  116. data/docs/StorageV1alpha1Api.md +516 -0
  117. data/docs/StorageV1beta1Api.md +976 -0
  118. data/docs/V1APIGroup.md +13 -0
  119. data/docs/V1APIGroupList.md +10 -0
  120. data/docs/V1APIResource.md +16 -0
  121. data/docs/V1APIResourceList.md +11 -0
  122. data/docs/V1APIService.md +12 -0
  123. data/docs/V1APIServiceCondition.md +12 -0
  124. data/docs/V1APIServiceList.md +11 -0
  125. data/docs/V1APIServiceSpec.md +14 -0
  126. data/docs/V1APIServiceStatus.md +8 -0
  127. data/docs/V1APIVersions.md +11 -0
  128. data/docs/V1AWSElasticBlockStoreVolumeSource.md +11 -0
  129. data/docs/V1Affinity.md +10 -0
  130. data/docs/V1AggregationRule.md +8 -0
  131. data/docs/V1AttachedVolume.md +9 -0
  132. data/docs/V1AzureDiskVolumeSource.md +13 -0
  133. data/docs/V1AzureFilePersistentVolumeSource.md +11 -0
  134. data/docs/V1AzureFileVolumeSource.md +10 -0
  135. data/docs/V1Binding.md +11 -0
  136. data/docs/V1CSIPersistentVolumeSource.md +15 -0
  137. data/docs/V1Capabilities.md +9 -0
  138. data/docs/V1CephFSPersistentVolumeSource.md +13 -0
  139. data/docs/V1CephFSVolumeSource.md +13 -0
  140. data/docs/V1CinderPersistentVolumeSource.md +11 -0
  141. data/docs/V1CinderVolumeSource.md +11 -0
  142. data/docs/V1ClientIPConfig.md +8 -0
  143. data/docs/V1ClusterRole.md +12 -0
  144. data/docs/V1ClusterRoleBinding.md +12 -0
  145. data/docs/V1ClusterRoleBindingList.md +11 -0
  146. data/docs/V1ClusterRoleList.md +11 -0
  147. data/docs/V1ComponentCondition.md +11 -0
  148. data/docs/V1ComponentStatus.md +11 -0
  149. data/docs/V1ComponentStatusList.md +11 -0
  150. data/docs/V1ConfigMap.md +12 -0
  151. data/docs/V1ConfigMapEnvSource.md +9 -0
  152. data/docs/V1ConfigMapKeySelector.md +10 -0
  153. data/docs/V1ConfigMapList.md +11 -0
  154. data/docs/V1ConfigMapNodeConfigSource.md +12 -0
  155. data/docs/V1ConfigMapProjection.md +10 -0
  156. data/docs/V1ConfigMapVolumeSource.md +11 -0
  157. data/docs/V1Container.md +28 -0
  158. data/docs/V1ContainerImage.md +9 -0
  159. data/docs/V1ContainerPort.md +12 -0
  160. data/docs/V1ContainerState.md +10 -0
  161. data/docs/V1ContainerStateRunning.md +8 -0
  162. data/docs/V1ContainerStateTerminated.md +14 -0
  163. data/docs/V1ContainerStateWaiting.md +9 -0
  164. data/docs/V1ContainerStatus.md +15 -0
  165. data/docs/V1ControllerRevision.md +12 -0
  166. data/docs/V1ControllerRevisionList.md +11 -0
  167. data/docs/V1CrossVersionObjectReference.md +10 -0
  168. data/docs/V1DaemonEndpoint.md +8 -0
  169. data/docs/V1DaemonSet.md +12 -0
  170. data/docs/V1DaemonSetCondition.md +12 -0
  171. data/docs/V1DaemonSetList.md +11 -0
  172. data/docs/V1DaemonSetSpec.md +12 -0
  173. data/docs/V1DaemonSetStatus.md +17 -0
  174. data/docs/V1DaemonSetUpdateStrategy.md +9 -0
  175. data/docs/V1DeleteOptions.md +14 -0
  176. data/docs/V1Deployment.md +12 -0
  177. data/docs/V1DeploymentCondition.md +13 -0
  178. data/docs/V1DeploymentList.md +11 -0
  179. data/docs/V1DeploymentSpec.md +15 -0
  180. data/docs/V1DeploymentStatus.md +15 -0
  181. data/docs/V1DeploymentStrategy.md +9 -0
  182. data/docs/V1DownwardAPIProjection.md +8 -0
  183. data/docs/V1DownwardAPIVolumeFile.md +11 -0
  184. data/docs/V1DownwardAPIVolumeSource.md +9 -0
  185. data/docs/V1EmptyDirVolumeSource.md +9 -0
  186. data/docs/V1EndpointAddress.md +11 -0
  187. data/docs/V1EndpointPort.md +10 -0
  188. data/docs/V1EndpointSubset.md +10 -0
  189. data/docs/V1Endpoints.md +11 -0
  190. data/docs/V1EndpointsList.md +11 -0
  191. data/docs/V1EnvFromSource.md +10 -0
  192. data/docs/V1EnvVar.md +10 -0
  193. data/docs/V1EnvVarSource.md +11 -0
  194. data/docs/V1Event.md +24 -0
  195. data/docs/V1EventList.md +11 -0
  196. data/docs/V1EventSeries.md +10 -0
  197. data/docs/V1EventSource.md +9 -0
  198. data/docs/V1ExecAction.md +8 -0
  199. data/docs/V1FCVolumeSource.md +12 -0
  200. data/docs/V1FlexPersistentVolumeSource.md +12 -0
  201. data/docs/V1FlexVolumeSource.md +12 -0
  202. data/docs/V1FlockerVolumeSource.md +9 -0
  203. data/docs/V1GCEPersistentDiskVolumeSource.md +11 -0
  204. data/docs/V1GitRepoVolumeSource.md +10 -0
  205. data/docs/V1GlusterfsPersistentVolumeSource.md +11 -0
  206. data/docs/V1GlusterfsVolumeSource.md +10 -0
  207. data/docs/V1GroupVersionForDiscovery.md +9 -0
  208. data/docs/V1HTTPGetAction.md +12 -0
  209. data/docs/V1HTTPHeader.md +9 -0
  210. data/docs/V1Handler.md +10 -0
  211. data/docs/V1HorizontalPodAutoscaler.md +12 -0
  212. data/docs/V1HorizontalPodAutoscalerList.md +11 -0
  213. data/docs/V1HorizontalPodAutoscalerSpec.md +11 -0
  214. data/docs/V1HorizontalPodAutoscalerStatus.md +12 -0
  215. data/docs/V1HostAlias.md +9 -0
  216. data/docs/V1HostPathVolumeSource.md +9 -0
  217. data/docs/V1IPBlock.md +9 -0
  218. data/docs/V1ISCSIPersistentVolumeSource.md +18 -0
  219. data/docs/V1ISCSIVolumeSource.md +18 -0
  220. data/docs/V1Initializer.md +8 -0
  221. data/docs/V1Initializers.md +9 -0
  222. data/docs/V1Job.md +12 -0
  223. data/docs/V1JobCondition.md +13 -0
  224. data/docs/V1JobList.md +11 -0
  225. data/docs/V1JobSpec.md +15 -0
  226. data/docs/V1JobStatus.md +13 -0
  227. data/docs/V1KeyToPath.md +10 -0
  228. data/docs/V1LabelSelector.md +9 -0
  229. data/docs/V1LabelSelectorRequirement.md +10 -0
  230. data/docs/V1Lifecycle.md +9 -0
  231. data/docs/V1LimitRange.md +11 -0
  232. data/docs/V1LimitRangeItem.md +13 -0
  233. data/docs/V1LimitRangeList.md +11 -0
  234. data/docs/V1LimitRangeSpec.md +8 -0
  235. data/docs/V1ListMeta.md +10 -0
  236. data/docs/V1LoadBalancerIngress.md +9 -0
  237. data/docs/V1LoadBalancerStatus.md +8 -0
  238. data/docs/V1LocalObjectReference.md +8 -0
  239. data/docs/V1LocalSubjectAccessReview.md +12 -0
  240. data/docs/V1LocalVolumeSource.md +9 -0
  241. data/docs/V1NFSVolumeSource.md +10 -0
  242. data/docs/V1Namespace.md +12 -0
  243. data/docs/V1NamespaceList.md +11 -0
  244. data/docs/V1NamespaceSpec.md +8 -0
  245. data/docs/V1NamespaceStatus.md +8 -0
  246. data/docs/V1NetworkPolicy.md +11 -0
  247. data/docs/V1NetworkPolicyEgressRule.md +9 -0
  248. data/docs/V1NetworkPolicyIngressRule.md +9 -0
  249. data/docs/V1NetworkPolicyList.md +11 -0
  250. data/docs/V1NetworkPolicyPeer.md +10 -0
  251. data/docs/V1NetworkPolicyPort.md +9 -0
  252. data/docs/V1NetworkPolicySpec.md +11 -0
  253. data/docs/V1Node.md +12 -0
  254. data/docs/V1NodeAddress.md +9 -0
  255. data/docs/V1NodeAffinity.md +9 -0
  256. data/docs/V1NodeCondition.md +13 -0
  257. data/docs/V1NodeConfigSource.md +8 -0
  258. data/docs/V1NodeConfigStatus.md +11 -0
  259. data/docs/V1NodeDaemonEndpoints.md +8 -0
  260. data/docs/V1NodeList.md +11 -0
  261. data/docs/V1NodeSelector.md +8 -0
  262. data/docs/V1NodeSelectorRequirement.md +10 -0
  263. data/docs/V1NodeSelectorTerm.md +9 -0
  264. data/docs/V1NodeSpec.md +13 -0
  265. data/docs/V1NodeStatus.md +18 -0
  266. data/docs/V1NodeSystemInfo.md +17 -0
  267. data/docs/V1NonResourceAttributes.md +9 -0
  268. data/docs/V1NonResourceRule.md +9 -0
  269. data/docs/V1ObjectFieldSelector.md +9 -0
  270. data/docs/V1ObjectMeta.md +23 -0
  271. data/docs/V1ObjectReference.md +14 -0
  272. data/docs/V1OwnerReference.md +13 -0
  273. data/docs/V1PersistentVolume.md +12 -0
  274. data/docs/V1PersistentVolumeClaim.md +12 -0
  275. data/docs/V1PersistentVolumeClaimCondition.md +13 -0
  276. data/docs/V1PersistentVolumeClaimList.md +11 -0
  277. data/docs/V1PersistentVolumeClaimSpec.md +14 -0
  278. data/docs/V1PersistentVolumeClaimStatus.md +11 -0
  279. data/docs/V1PersistentVolumeClaimVolumeSource.md +9 -0
  280. data/docs/V1PersistentVolumeList.md +11 -0
  281. data/docs/V1PersistentVolumeSpec.md +37 -0
  282. data/docs/V1PersistentVolumeStatus.md +10 -0
  283. data/docs/V1PhotonPersistentDiskVolumeSource.md +9 -0
  284. data/docs/V1Pod.md +12 -0
  285. data/docs/V1PodAffinity.md +9 -0
  286. data/docs/V1PodAffinityTerm.md +10 -0
  287. data/docs/V1PodAntiAffinity.md +9 -0
  288. data/docs/V1PodCondition.md +13 -0
  289. data/docs/V1PodDNSConfig.md +10 -0
  290. data/docs/V1PodDNSConfigOption.md +9 -0
  291. data/docs/V1PodList.md +11 -0
  292. data/docs/V1PodReadinessGate.md +8 -0
  293. data/docs/V1PodSecurityContext.md +14 -0
  294. data/docs/V1PodSpec.md +37 -0
  295. data/docs/V1PodStatus.md +18 -0
  296. data/docs/V1PodTemplate.md +11 -0
  297. data/docs/V1PodTemplateList.md +11 -0
  298. data/docs/V1PodTemplateSpec.md +9 -0
  299. data/docs/V1PolicyRule.md +12 -0
  300. data/docs/V1PortworxVolumeSource.md +10 -0
  301. data/docs/V1Preconditions.md +8 -0
  302. data/docs/V1PreferredSchedulingTerm.md +9 -0
  303. data/docs/V1Probe.md +15 -0
  304. data/docs/V1ProjectedVolumeSource.md +9 -0
  305. data/docs/V1QuobyteVolumeSource.md +12 -0
  306. data/docs/V1RBDPersistentVolumeSource.md +15 -0
  307. data/docs/V1RBDVolumeSource.md +15 -0
  308. data/docs/V1ReplicaSet.md +12 -0
  309. data/docs/V1ReplicaSetCondition.md +12 -0
  310. data/docs/V1ReplicaSetList.md +11 -0
  311. data/docs/V1ReplicaSetSpec.md +11 -0
  312. data/docs/V1ReplicaSetStatus.md +13 -0
  313. data/docs/V1ReplicationController.md +12 -0
  314. data/docs/V1ReplicationControllerCondition.md +12 -0
  315. data/docs/V1ReplicationControllerList.md +11 -0
  316. data/docs/V1ReplicationControllerSpec.md +11 -0
  317. data/docs/V1ReplicationControllerStatus.md +13 -0
  318. data/docs/V1ResourceAttributes.md +14 -0
  319. data/docs/V1ResourceFieldSelector.md +10 -0
  320. data/docs/V1ResourceQuota.md +12 -0
  321. data/docs/V1ResourceQuotaList.md +11 -0
  322. data/docs/V1ResourceQuotaSpec.md +10 -0
  323. data/docs/V1ResourceQuotaStatus.md +9 -0
  324. data/docs/V1ResourceRequirements.md +9 -0
  325. data/docs/V1ResourceRule.md +11 -0
  326. data/docs/V1Role.md +11 -0
  327. data/docs/V1RoleBinding.md +12 -0
  328. data/docs/V1RoleBindingList.md +11 -0
  329. data/docs/V1RoleList.md +11 -0
  330. data/docs/V1RoleRef.md +10 -0
  331. data/docs/V1RollingUpdateDaemonSet.md +8 -0
  332. data/docs/V1RollingUpdateDeployment.md +9 -0
  333. data/docs/V1RollingUpdateStatefulSetStrategy.md +8 -0
  334. data/docs/V1SELinuxOptions.md +11 -0
  335. data/docs/V1Scale.md +12 -0
  336. data/docs/V1ScaleIOPersistentVolumeSource.md +17 -0
  337. data/docs/V1ScaleIOVolumeSource.md +17 -0
  338. data/docs/V1ScaleSpec.md +8 -0
  339. data/docs/V1ScaleStatus.md +9 -0
  340. data/docs/V1ScopeSelector.md +8 -0
  341. data/docs/V1ScopedResourceSelectorRequirement.md +10 -0
  342. data/docs/V1Secret.md +13 -0
  343. data/docs/V1SecretEnvSource.md +9 -0
  344. data/docs/V1SecretKeySelector.md +10 -0
  345. data/docs/V1SecretList.md +11 -0
  346. data/docs/V1SecretProjection.md +10 -0
  347. data/docs/V1SecretReference.md +9 -0
  348. data/docs/V1SecretVolumeSource.md +11 -0
  349. data/docs/V1SecurityContext.md +16 -0
  350. data/docs/V1SelfSubjectAccessReview.md +12 -0
  351. data/docs/V1SelfSubjectAccessReviewSpec.md +9 -0
  352. data/docs/V1SelfSubjectRulesReview.md +12 -0
  353. data/docs/V1SelfSubjectRulesReviewSpec.md +8 -0
  354. data/docs/V1ServerAddressByClientCIDR.md +9 -0
  355. data/docs/V1Service.md +12 -0
  356. data/docs/V1ServiceAccount.md +13 -0
  357. data/docs/V1ServiceAccountList.md +11 -0
  358. data/docs/V1ServiceAccountTokenProjection.md +10 -0
  359. data/docs/V1ServiceList.md +11 -0
  360. data/docs/V1ServicePort.md +12 -0
  361. data/docs/V1ServiceReference.md +9 -0
  362. data/docs/V1ServiceSpec.md +20 -0
  363. data/docs/V1ServiceStatus.md +8 -0
  364. data/docs/V1SessionAffinityConfig.md +8 -0
  365. data/docs/V1StatefulSet.md +12 -0
  366. data/docs/V1StatefulSetCondition.md +12 -0
  367. data/docs/V1StatefulSetList.md +11 -0
  368. data/docs/V1StatefulSetSpec.md +15 -0
  369. data/docs/V1StatefulSetStatus.md +16 -0
  370. data/docs/V1StatefulSetUpdateStrategy.md +9 -0
  371. data/docs/V1Status.md +15 -0
  372. data/docs/V1StatusCause.md +10 -0
  373. data/docs/V1StatusDetails.md +13 -0
  374. data/docs/V1StorageClass.md +17 -0
  375. data/docs/V1StorageClassList.md +11 -0
  376. data/docs/V1StorageOSPersistentVolumeSource.md +12 -0
  377. data/docs/V1StorageOSVolumeSource.md +12 -0
  378. data/docs/V1Subject.md +11 -0
  379. data/docs/V1SubjectAccessReview.md +12 -0
  380. data/docs/V1SubjectAccessReviewSpec.md +13 -0
  381. data/docs/V1SubjectAccessReviewStatus.md +11 -0
  382. data/docs/V1SubjectRulesReviewStatus.md +11 -0
  383. data/docs/V1Sysctl.md +9 -0
  384. data/docs/V1TCPSocketAction.md +9 -0
  385. data/docs/V1Taint.md +11 -0
  386. data/docs/V1TokenReview.md +12 -0
  387. data/docs/V1TokenReviewSpec.md +9 -0
  388. data/docs/V1TokenReviewStatus.md +11 -0
  389. data/docs/V1Toleration.md +12 -0
  390. data/docs/V1TopologySelectorLabelRequirement.md +9 -0
  391. data/docs/V1TopologySelectorTerm.md +8 -0
  392. data/docs/V1TypedLocalObjectReference.md +10 -0
  393. data/docs/V1UserInfo.md +11 -0
  394. data/docs/V1Volume.md +35 -0
  395. data/docs/V1VolumeAttachment.md +12 -0
  396. data/docs/V1VolumeAttachmentList.md +11 -0
  397. data/docs/V1VolumeAttachmentSource.md +8 -0
  398. data/docs/V1VolumeAttachmentSpec.md +10 -0
  399. data/docs/V1VolumeAttachmentStatus.md +11 -0
  400. data/docs/V1VolumeDevice.md +9 -0
  401. data/docs/V1VolumeError.md +9 -0
  402. data/docs/V1VolumeMount.md +12 -0
  403. data/docs/V1VolumeNodeAffinity.md +8 -0
  404. data/docs/V1VolumeProjection.md +11 -0
  405. data/docs/V1VsphereVirtualDiskVolumeSource.md +11 -0
  406. data/docs/V1WatchEvent.md +9 -0
  407. data/docs/V1WeightedPodAffinityTerm.md +9 -0
  408. data/docs/V1alpha1AggregationRule.md +8 -0
  409. data/docs/V1alpha1AuditSink.md +11 -0
  410. data/docs/V1alpha1AuditSinkList.md +11 -0
  411. data/docs/V1alpha1AuditSinkSpec.md +9 -0
  412. data/docs/V1alpha1ClusterRole.md +12 -0
  413. data/docs/V1alpha1ClusterRoleBinding.md +12 -0
  414. data/docs/V1alpha1ClusterRoleBindingList.md +11 -0
  415. data/docs/V1alpha1ClusterRoleList.md +11 -0
  416. data/docs/V1alpha1Initializer.md +9 -0
  417. data/docs/V1alpha1InitializerConfiguration.md +11 -0
  418. data/docs/V1alpha1InitializerConfigurationList.md +11 -0
  419. data/docs/V1alpha1PodPreset.md +11 -0
  420. data/docs/V1alpha1PodPresetList.md +11 -0
  421. data/docs/V1alpha1PodPresetSpec.md +12 -0
  422. data/docs/V1alpha1Policy.md +9 -0
  423. data/docs/V1alpha1PolicyRule.md +12 -0
  424. data/docs/V1alpha1PriorityClass.md +13 -0
  425. data/docs/V1alpha1PriorityClassList.md +11 -0
  426. data/docs/V1alpha1Role.md +11 -0
  427. data/docs/V1alpha1RoleBinding.md +12 -0
  428. data/docs/V1alpha1RoleBindingList.md +11 -0
  429. data/docs/V1alpha1RoleList.md +11 -0
  430. data/docs/V1alpha1RoleRef.md +10 -0
  431. data/docs/V1alpha1Rule.md +10 -0
  432. data/docs/V1alpha1ServiceReference.md +10 -0
  433. data/docs/V1alpha1Subject.md +11 -0
  434. data/docs/V1alpha1VolumeAttachment.md +12 -0
  435. data/docs/V1alpha1VolumeAttachmentList.md +11 -0
  436. data/docs/V1alpha1VolumeAttachmentSource.md +8 -0
  437. data/docs/V1alpha1VolumeAttachmentSpec.md +10 -0
  438. data/docs/V1alpha1VolumeAttachmentStatus.md +11 -0
  439. data/docs/V1alpha1VolumeError.md +9 -0
  440. data/docs/V1alpha1Webhook.md +9 -0
  441. data/docs/V1alpha1WebhookClientConfig.md +10 -0
  442. data/docs/V1alpha1WebhookThrottleConfig.md +9 -0
  443. data/docs/V1beta1APIService.md +12 -0
  444. data/docs/V1beta1APIServiceCondition.md +12 -0
  445. data/docs/V1beta1APIServiceList.md +11 -0
  446. data/docs/V1beta1APIServiceSpec.md +14 -0
  447. data/docs/V1beta1APIServiceStatus.md +8 -0
  448. data/docs/V1beta1AggregationRule.md +8 -0
  449. data/docs/V1beta1CertificateSigningRequest.md +12 -0
  450. data/docs/V1beta1CertificateSigningRequestCondition.md +11 -0
  451. data/docs/V1beta1CertificateSigningRequestList.md +11 -0
  452. data/docs/V1beta1CertificateSigningRequestSpec.md +13 -0
  453. data/docs/V1beta1CertificateSigningRequestStatus.md +9 -0
  454. data/docs/V1beta1ClusterRole.md +12 -0
  455. data/docs/V1beta1ClusterRoleBinding.md +12 -0
  456. data/docs/V1beta1ClusterRoleBindingList.md +11 -0
  457. data/docs/V1beta1ClusterRoleList.md +11 -0
  458. data/docs/V1beta1ControllerRevision.md +12 -0
  459. data/docs/V1beta1ControllerRevisionList.md +11 -0
  460. data/docs/V1beta1CronJob.md +12 -0
  461. data/docs/V1beta1CronJobList.md +11 -0
  462. data/docs/V1beta1CronJobSpec.md +14 -0
  463. data/docs/V1beta1CronJobStatus.md +9 -0
  464. data/docs/V1beta1CustomResourceColumnDefinition.md +13 -0
  465. data/docs/V1beta1CustomResourceConversion.md +9 -0
  466. data/docs/V1beta1CustomResourceDefinition.md +12 -0
  467. data/docs/V1beta1CustomResourceDefinitionCondition.md +12 -0
  468. data/docs/V1beta1CustomResourceDefinitionList.md +11 -0
  469. data/docs/V1beta1CustomResourceDefinitionNames.md +13 -0
  470. data/docs/V1beta1CustomResourceDefinitionSpec.md +16 -0
  471. data/docs/V1beta1CustomResourceDefinitionStatus.md +10 -0
  472. data/docs/V1beta1CustomResourceDefinitionVersion.md +13 -0
  473. data/docs/V1beta1CustomResourceSubresourceScale.md +10 -0
  474. data/docs/V1beta1CustomResourceSubresources.md +9 -0
  475. data/docs/V1beta1CustomResourceValidation.md +8 -0
  476. data/docs/V1beta1DaemonSet.md +12 -0
  477. data/docs/V1beta1DaemonSetCondition.md +12 -0
  478. data/docs/V1beta1DaemonSetList.md +11 -0
  479. data/docs/V1beta1DaemonSetSpec.md +13 -0
  480. data/docs/V1beta1DaemonSetStatus.md +17 -0
  481. data/docs/V1beta1DaemonSetUpdateStrategy.md +9 -0
  482. data/docs/V1beta1Event.md +24 -0
  483. data/docs/V1beta1EventList.md +11 -0
  484. data/docs/V1beta1EventSeries.md +10 -0
  485. data/docs/V1beta1Eviction.md +11 -0
  486. data/docs/V1beta1ExternalDocumentation.md +9 -0
  487. data/docs/V1beta1HTTPIngressPath.md +9 -0
  488. data/docs/V1beta1HTTPIngressRuleValue.md +8 -0
  489. data/docs/V1beta1IPBlock.md +9 -0
  490. data/docs/V1beta1Ingress.md +12 -0
  491. data/docs/V1beta1IngressBackend.md +9 -0
  492. data/docs/V1beta1IngressList.md +11 -0
  493. data/docs/V1beta1IngressRule.md +9 -0
  494. data/docs/V1beta1IngressSpec.md +10 -0
  495. data/docs/V1beta1IngressStatus.md +8 -0
  496. data/docs/V1beta1IngressTLS.md +9 -0
  497. data/docs/V1beta1JSONSchemaProps.md +43 -0
  498. data/docs/V1beta1JobTemplateSpec.md +9 -0
  499. data/docs/V1beta1Lease.md +11 -0
  500. data/docs/V1beta1LeaseList.md +11 -0
  501. data/docs/V1beta1LeaseSpec.md +12 -0
  502. data/docs/V1beta1LocalSubjectAccessReview.md +12 -0
  503. data/docs/V1beta1MutatingWebhookConfiguration.md +11 -0
  504. data/docs/V1beta1MutatingWebhookConfigurationList.md +11 -0
  505. data/docs/V1beta1NetworkPolicy.md +11 -0
  506. data/docs/V1beta1NetworkPolicyEgressRule.md +9 -0
  507. data/docs/V1beta1NetworkPolicyIngressRule.md +9 -0
  508. data/docs/V1beta1NetworkPolicyList.md +11 -0
  509. data/docs/V1beta1NetworkPolicyPeer.md +10 -0
  510. data/docs/V1beta1NetworkPolicyPort.md +9 -0
  511. data/docs/V1beta1NetworkPolicySpec.md +11 -0
  512. data/docs/V1beta1NonResourceAttributes.md +9 -0
  513. data/docs/V1beta1NonResourceRule.md +9 -0
  514. data/docs/V1beta1PodDisruptionBudget.md +12 -0
  515. data/docs/V1beta1PodDisruptionBudgetList.md +11 -0
  516. data/docs/V1beta1PodDisruptionBudgetSpec.md +10 -0
  517. data/docs/V1beta1PodDisruptionBudgetStatus.md +13 -0
  518. data/docs/V1beta1PolicyRule.md +12 -0
  519. data/docs/V1beta1PriorityClass.md +13 -0
  520. data/docs/V1beta1PriorityClassList.md +11 -0
  521. data/docs/V1beta1ReplicaSet.md +12 -0
  522. data/docs/V1beta1ReplicaSetCondition.md +12 -0
  523. data/docs/V1beta1ReplicaSetList.md +11 -0
  524. data/docs/V1beta1ReplicaSetSpec.md +11 -0
  525. data/docs/V1beta1ReplicaSetStatus.md +13 -0
  526. data/docs/V1beta1ResourceAttributes.md +14 -0
  527. data/docs/V1beta1ResourceRule.md +11 -0
  528. data/docs/V1beta1Role.md +11 -0
  529. data/docs/V1beta1RoleBinding.md +12 -0
  530. data/docs/V1beta1RoleBindingList.md +11 -0
  531. data/docs/V1beta1RoleList.md +11 -0
  532. data/docs/V1beta1RoleRef.md +10 -0
  533. data/docs/V1beta1RollingUpdateDaemonSet.md +8 -0
  534. data/docs/V1beta1RollingUpdateStatefulSetStrategy.md +8 -0
  535. data/docs/V1beta1RuleWithOperations.md +11 -0
  536. data/docs/V1beta1SelfSubjectAccessReview.md +12 -0
  537. data/docs/V1beta1SelfSubjectAccessReviewSpec.md +9 -0
  538. data/docs/V1beta1SelfSubjectRulesReview.md +12 -0
  539. data/docs/V1beta1SelfSubjectRulesReviewSpec.md +8 -0
  540. data/docs/V1beta1StatefulSet.md +12 -0
  541. data/docs/V1beta1StatefulSetCondition.md +12 -0
  542. data/docs/V1beta1StatefulSetList.md +11 -0
  543. data/docs/V1beta1StatefulSetSpec.md +15 -0
  544. data/docs/V1beta1StatefulSetStatus.md +16 -0
  545. data/docs/V1beta1StatefulSetUpdateStrategy.md +9 -0
  546. data/docs/V1beta1StorageClass.md +17 -0
  547. data/docs/V1beta1StorageClassList.md +11 -0
  548. data/docs/V1beta1Subject.md +11 -0
  549. data/docs/V1beta1SubjectAccessReview.md +12 -0
  550. data/docs/V1beta1SubjectAccessReviewSpec.md +13 -0
  551. data/docs/V1beta1SubjectAccessReviewStatus.md +11 -0
  552. data/docs/V1beta1SubjectRulesReviewStatus.md +11 -0
  553. data/docs/V1beta1TokenReview.md +12 -0
  554. data/docs/V1beta1TokenReviewSpec.md +9 -0
  555. data/docs/V1beta1TokenReviewStatus.md +11 -0
  556. data/docs/V1beta1UserInfo.md +11 -0
  557. data/docs/V1beta1ValidatingWebhookConfiguration.md +11 -0
  558. data/docs/V1beta1ValidatingWebhookConfigurationList.md +11 -0
  559. data/docs/V1beta1VolumeAttachment.md +12 -0
  560. data/docs/V1beta1VolumeAttachmentList.md +11 -0
  561. data/docs/V1beta1VolumeAttachmentSource.md +8 -0
  562. data/docs/V1beta1VolumeAttachmentSpec.md +10 -0
  563. data/docs/V1beta1VolumeAttachmentStatus.md +11 -0
  564. data/docs/V1beta1VolumeError.md +9 -0
  565. data/docs/V1beta1Webhook.md +13 -0
  566. data/docs/V1beta2ControllerRevision.md +12 -0
  567. data/docs/V1beta2ControllerRevisionList.md +11 -0
  568. data/docs/V1beta2DaemonSet.md +12 -0
  569. data/docs/V1beta2DaemonSetCondition.md +12 -0
  570. data/docs/V1beta2DaemonSetList.md +11 -0
  571. data/docs/V1beta2DaemonSetSpec.md +12 -0
  572. data/docs/V1beta2DaemonSetStatus.md +17 -0
  573. data/docs/V1beta2DaemonSetUpdateStrategy.md +9 -0
  574. data/docs/V1beta2Deployment.md +12 -0
  575. data/docs/V1beta2DeploymentCondition.md +13 -0
  576. data/docs/V1beta2DeploymentList.md +11 -0
  577. data/docs/V1beta2DeploymentSpec.md +15 -0
  578. data/docs/V1beta2DeploymentStatus.md +15 -0
  579. data/docs/V1beta2DeploymentStrategy.md +9 -0
  580. data/docs/V1beta2ReplicaSet.md +12 -0
  581. data/docs/V1beta2ReplicaSetCondition.md +12 -0
  582. data/docs/V1beta2ReplicaSetList.md +11 -0
  583. data/docs/V1beta2ReplicaSetSpec.md +11 -0
  584. data/docs/V1beta2ReplicaSetStatus.md +13 -0
  585. data/docs/V1beta2RollingUpdateDaemonSet.md +8 -0
  586. data/docs/V1beta2RollingUpdateDeployment.md +9 -0
  587. data/docs/V1beta2RollingUpdateStatefulSetStrategy.md +8 -0
  588. data/docs/V1beta2Scale.md +12 -0
  589. data/docs/V1beta2ScaleSpec.md +8 -0
  590. data/docs/V1beta2ScaleStatus.md +10 -0
  591. data/docs/V1beta2StatefulSet.md +12 -0
  592. data/docs/V1beta2StatefulSetCondition.md +12 -0
  593. data/docs/V1beta2StatefulSetList.md +11 -0
  594. data/docs/V1beta2StatefulSetSpec.md +15 -0
  595. data/docs/V1beta2StatefulSetStatus.md +16 -0
  596. data/docs/V1beta2StatefulSetUpdateStrategy.md +9 -0
  597. data/docs/V2alpha1CronJob.md +12 -0
  598. data/docs/V2alpha1CronJobList.md +11 -0
  599. data/docs/V2alpha1CronJobSpec.md +14 -0
  600. data/docs/V2alpha1CronJobStatus.md +9 -0
  601. data/docs/V2alpha1JobTemplateSpec.md +9 -0
  602. data/docs/V2beta1CrossVersionObjectReference.md +10 -0
  603. data/docs/V2beta1ExternalMetricSource.md +11 -0
  604. data/docs/V2beta1ExternalMetricStatus.md +11 -0
  605. data/docs/V2beta1HorizontalPodAutoscaler.md +12 -0
  606. data/docs/V2beta1HorizontalPodAutoscalerCondition.md +12 -0
  607. data/docs/V2beta1HorizontalPodAutoscalerList.md +11 -0
  608. data/docs/V2beta1HorizontalPodAutoscalerSpec.md +11 -0
  609. data/docs/V2beta1HorizontalPodAutoscalerStatus.md +13 -0
  610. data/docs/V2beta1MetricSpec.md +12 -0
  611. data/docs/V2beta1MetricStatus.md +12 -0
  612. data/docs/V2beta1ObjectMetricSource.md +12 -0
  613. data/docs/V2beta1ObjectMetricStatus.md +12 -0
  614. data/docs/V2beta1PodsMetricSource.md +10 -0
  615. data/docs/V2beta1PodsMetricStatus.md +10 -0
  616. data/docs/V2beta1ResourceMetricSource.md +10 -0
  617. data/docs/V2beta1ResourceMetricStatus.md +10 -0
  618. data/docs/V2beta2CrossVersionObjectReference.md +10 -0
  619. data/docs/V2beta2ExternalMetricSource.md +9 -0
  620. data/docs/V2beta2ExternalMetricStatus.md +9 -0
  621. data/docs/V2beta2HorizontalPodAutoscaler.md +12 -0
  622. data/docs/V2beta2HorizontalPodAutoscalerCondition.md +12 -0
  623. data/docs/V2beta2HorizontalPodAutoscalerList.md +11 -0
  624. data/docs/V2beta2HorizontalPodAutoscalerSpec.md +11 -0
  625. data/docs/V2beta2HorizontalPodAutoscalerStatus.md +13 -0
  626. data/docs/V2beta2MetricIdentifier.md +9 -0
  627. data/docs/V2beta2MetricSpec.md +12 -0
  628. data/docs/V2beta2MetricStatus.md +12 -0
  629. data/docs/V2beta2MetricTarget.md +11 -0
  630. data/docs/V2beta2MetricValueStatus.md +10 -0
  631. data/docs/V2beta2ObjectMetricSource.md +10 -0
  632. data/docs/V2beta2ObjectMetricStatus.md +10 -0
  633. data/docs/V2beta2PodsMetricSource.md +9 -0
  634. data/docs/V2beta2PodsMetricStatus.md +9 -0
  635. data/docs/V2beta2ResourceMetricSource.md +9 -0
  636. data/docs/V2beta2ResourceMetricStatus.md +9 -0
  637. data/docs/VersionApi.md +56 -0
  638. data/docs/VersionInfo.md +16 -0
  639. data/git_push.sh +55 -0
  640. data/kubernetes.gemspec +37 -0
  641. data/lib/kubernetes/api/admissionregistration_api.rb +76 -0
  642. data/lib/kubernetes/api/admissionregistration_v1alpha1_api.rb +618 -0
  643. data/lib/kubernetes/api/admissionregistration_v1beta1_api.rb +1165 -0
  644. data/lib/kubernetes/api/apiextensions_api.rb +76 -0
  645. data/lib/kubernetes/api/apiextensions_v1beta1_api.rb +835 -0
  646. data/lib/kubernetes/api/apiregistration_api.rb +76 -0
  647. data/lib/kubernetes/api/apiregistration_v1_api.rb +826 -0
  648. data/lib/kubernetes/api/apiregistration_v1beta1_api.rb +830 -0
  649. data/lib/kubernetes/api/apis_api.rb +76 -0
  650. data/lib/kubernetes/api/apps_api.rb +76 -0
  651. data/lib/kubernetes/api/apps_v1_api.rb +5169 -0
  652. data/lib/kubernetes/api/apps_v1beta1_api.rb +3173 -0
  653. data/lib/kubernetes/api/apps_v1beta2_api.rb +5169 -0
  654. data/lib/kubernetes/api/auditregistration_api.rb +76 -0
  655. data/lib/kubernetes/api/auditregistration_v1alpha1_api.rb +616 -0
  656. data/lib/kubernetes/api/authentication_api.rb +76 -0
  657. data/lib/kubernetes/api/authentication_v1_api.rb +147 -0
  658. data/lib/kubernetes/api/authentication_v1beta1_api.rb +147 -0
  659. data/lib/kubernetes/api/authorization_api.rb +76 -0
  660. data/lib/kubernetes/api/authorization_v1_api.rb +371 -0
  661. data/lib/kubernetes/api/authorization_v1beta1_api.rb +371 -0
  662. data/lib/kubernetes/api/autoscaling_api.rb +76 -0
  663. data/lib/kubernetes/api/autoscaling_v1_api.rb +1011 -0
  664. data/lib/kubernetes/api/autoscaling_v2beta1_api.rb +1011 -0
  665. data/lib/kubernetes/api/autoscaling_v2beta2_api.rb +1011 -0
  666. data/lib/kubernetes/api/batch_api.rb +76 -0
  667. data/lib/kubernetes/api/batch_v1_api.rb +992 -0
  668. data/lib/kubernetes/api/batch_v1beta1_api.rb +998 -0
  669. data/lib/kubernetes/api/batch_v2alpha1_api.rb +998 -0
  670. data/lib/kubernetes/api/certificates_api.rb +76 -0
  671. data/lib/kubernetes/api/certificates_v1beta1_api.rb +912 -0
  672. data/lib/kubernetes/api/coordination_api.rb +76 -0
  673. data/lib/kubernetes/api/coordination_v1beta1_api.rb +757 -0
  674. data/lib/kubernetes/api/core_api.rb +76 -0
  675. data/lib/kubernetes/api/core_v1_api.rb +15779 -0
  676. data/lib/kubernetes/api/custom_objects_api.rb +2254 -0
  677. data/lib/kubernetes/api/events_api.rb +76 -0
  678. data/lib/kubernetes/api/events_v1beta1_api.rb +757 -0
  679. data/lib/kubernetes/api/extensions_api.rb +76 -0
  680. data/lib/kubernetes/api/extensions_v1beta1_api.rb +5797 -0
  681. data/lib/kubernetes/api/logs_api.rb +119 -0
  682. data/lib/kubernetes/api/networking_api.rb +76 -0
  683. data/lib/kubernetes/api/networking_v1_api.rb +761 -0
  684. data/lib/kubernetes/api/policy_api.rb +76 -0
  685. data/lib/kubernetes/api/policy_v1beta1_api.rb +1543 -0
  686. data/lib/kubernetes/api/rbac_authorization_api.rb +76 -0
  687. data/lib/kubernetes/api/rbac_authorization_v1_api.rb +2498 -0
  688. data/lib/kubernetes/api/rbac_authorization_v1alpha1_api.rb +2498 -0
  689. data/lib/kubernetes/api/rbac_authorization_v1beta1_api.rb +2498 -0
  690. data/lib/kubernetes/api/scheduling_api.rb +76 -0
  691. data/lib/kubernetes/api/scheduling_v1alpha1_api.rb +616 -0
  692. data/lib/kubernetes/api/scheduling_v1beta1_api.rb +616 -0
  693. data/lib/kubernetes/api/settings_api.rb +76 -0
  694. data/lib/kubernetes/api/settings_v1alpha1_api.rb +761 -0
  695. data/lib/kubernetes/api/storage_api.rb +76 -0
  696. data/lib/kubernetes/api/storage_v1_api.rb +1363 -0
  697. data/lib/kubernetes/api/storage_v1alpha1_api.rb +616 -0
  698. data/lib/kubernetes/api/storage_v1beta1_api.rb +1152 -0
  699. data/lib/kubernetes/api/version_api.rb +72 -0
  700. data/lib/kubernetes/api_client.rb +389 -0
  701. data/lib/kubernetes/api_error.rb +38 -0
  702. data/lib/kubernetes/configuration.rb +207 -0
  703. data/lib/kubernetes/models/admissionregistration_v1beta1_service_reference.rb +213 -0
  704. data/lib/kubernetes/models/admissionregistration_v1beta1_webhook_client_config.rb +223 -0
  705. data/lib/kubernetes/models/apiextensions_v1beta1_service_reference.rb +213 -0
  706. data/lib/kubernetes/models/apiextensions_v1beta1_webhook_client_config.rb +223 -0
  707. data/lib/kubernetes/models/apiregistration_v1beta1_service_reference.rb +195 -0
  708. data/lib/kubernetes/models/apps_v1beta1_deployment.rb +219 -0
  709. data/lib/kubernetes/models/apps_v1beta1_deployment_condition.rb +237 -0
  710. data/lib/kubernetes/models/apps_v1beta1_deployment_list.rb +218 -0
  711. data/lib/kubernetes/models/apps_v1beta1_deployment_rollback.rb +232 -0
  712. data/lib/kubernetes/models/apps_v1beta1_deployment_spec.rb +263 -0
  713. data/lib/kubernetes/models/apps_v1beta1_deployment_status.rb +254 -0
  714. data/lib/kubernetes/models/apps_v1beta1_deployment_strategy.rb +195 -0
  715. data/lib/kubernetes/models/apps_v1beta1_rollback_config.rb +187 -0
  716. data/lib/kubernetes/models/apps_v1beta1_rolling_update_deployment.rb +197 -0
  717. data/lib/kubernetes/models/apps_v1beta1_scale.rb +219 -0
  718. data/lib/kubernetes/models/apps_v1beta1_scale_spec.rb +187 -0
  719. data/lib/kubernetes/models/apps_v1beta1_scale_status.rb +214 -0
  720. data/lib/kubernetes/models/extensions_v1beta1_allowed_flex_volume.rb +192 -0
  721. data/lib/kubernetes/models/extensions_v1beta1_allowed_host_path.rb +195 -0
  722. data/lib/kubernetes/models/extensions_v1beta1_deployment.rb +219 -0
  723. data/lib/kubernetes/models/extensions_v1beta1_deployment_condition.rb +237 -0
  724. data/lib/kubernetes/models/extensions_v1beta1_deployment_list.rb +218 -0
  725. data/lib/kubernetes/models/extensions_v1beta1_deployment_rollback.rb +232 -0
  726. data/lib/kubernetes/models/extensions_v1beta1_deployment_spec.rb +263 -0
  727. data/lib/kubernetes/models/extensions_v1beta1_deployment_status.rb +254 -0
  728. data/lib/kubernetes/models/extensions_v1beta1_deployment_strategy.rb +195 -0
  729. data/lib/kubernetes/models/extensions_v1beta1_fs_group_strategy_options.rb +197 -0
  730. data/lib/kubernetes/models/extensions_v1beta1_host_port_range.rb +203 -0
  731. data/lib/kubernetes/models/extensions_v1beta1_id_range.rb +203 -0
  732. data/lib/kubernetes/models/extensions_v1beta1_pod_security_policy.rb +211 -0
  733. data/lib/kubernetes/models/extensions_v1beta1_pod_security_policy_list.rb +218 -0
  734. data/lib/kubernetes/models/extensions_v1beta1_pod_security_policy_spec.rb +407 -0
  735. data/lib/kubernetes/models/extensions_v1beta1_rollback_config.rb +187 -0
  736. data/lib/kubernetes/models/extensions_v1beta1_rolling_update_deployment.rb +197 -0
  737. data/lib/kubernetes/models/extensions_v1beta1_run_as_group_strategy_options.rb +202 -0
  738. data/lib/kubernetes/models/extensions_v1beta1_run_as_user_strategy_options.rb +202 -0
  739. data/lib/kubernetes/models/extensions_v1beta1_scale.rb +219 -0
  740. data/lib/kubernetes/models/extensions_v1beta1_scale_spec.rb +187 -0
  741. data/lib/kubernetes/models/extensions_v1beta1_scale_status.rb +214 -0
  742. data/lib/kubernetes/models/extensions_v1beta1_se_linux_strategy_options.rb +202 -0
  743. data/lib/kubernetes/models/extensions_v1beta1_supplemental_groups_strategy_options.rb +197 -0
  744. data/lib/kubernetes/models/policy_v1beta1_allowed_flex_volume.rb +192 -0
  745. data/lib/kubernetes/models/policy_v1beta1_allowed_host_path.rb +195 -0
  746. data/lib/kubernetes/models/policy_v1beta1_fs_group_strategy_options.rb +197 -0
  747. data/lib/kubernetes/models/policy_v1beta1_host_port_range.rb +203 -0
  748. data/lib/kubernetes/models/policy_v1beta1_id_range.rb +203 -0
  749. data/lib/kubernetes/models/policy_v1beta1_pod_security_policy.rb +211 -0
  750. data/lib/kubernetes/models/policy_v1beta1_pod_security_policy_list.rb +218 -0
  751. data/lib/kubernetes/models/policy_v1beta1_pod_security_policy_spec.rb +407 -0
  752. data/lib/kubernetes/models/policy_v1beta1_run_as_group_strategy_options.rb +202 -0
  753. data/lib/kubernetes/models/policy_v1beta1_run_as_user_strategy_options.rb +202 -0
  754. data/lib/kubernetes/models/policy_v1beta1_se_linux_strategy_options.rb +202 -0
  755. data/lib/kubernetes/models/policy_v1beta1_supplemental_groups_strategy_options.rb +197 -0
  756. data/lib/kubernetes/models/runtime_raw_extension.rb +212 -0
  757. data/lib/kubernetes/models/v1_affinity.rb +205 -0
  758. data/lib/kubernetes/models/v1_aggregation_rule.rb +190 -0
  759. data/lib/kubernetes/models/v1_api_group.rb +242 -0
  760. data/lib/kubernetes/models/v1_api_group_list.rb +210 -0
  761. data/lib/kubernetes/models/v1_api_resource.rb +278 -0
  762. data/lib/kubernetes/models/v1_api_resource_list.rb +226 -0
  763. data/lib/kubernetes/models/v1_api_service.rb +218 -0
  764. data/lib/kubernetes/models/v1_api_service_condition.rb +228 -0
  765. data/lib/kubernetes/models/v1_api_service_list.rb +214 -0
  766. data/lib/kubernetes/models/v1_api_service_spec.rb +274 -0
  767. data/lib/kubernetes/models/v1_api_service_status.rb +190 -0
  768. data/lib/kubernetes/models/v1_api_versions.rb +228 -0
  769. data/lib/kubernetes/models/v1_attached_volume.rb +205 -0
  770. data/lib/kubernetes/models/v1_aws_elastic_block_store_volume_source.rb +218 -0
  771. data/lib/kubernetes/models/v1_azure_disk_volume_source.rb +239 -0
  772. data/lib/kubernetes/models/v1_azure_file_persistent_volume_source.rb +223 -0
  773. data/lib/kubernetes/models/v1_azure_file_volume_source.rb +215 -0
  774. data/lib/kubernetes/models/v1_binding.rb +216 -0
  775. data/lib/kubernetes/models/v1_capabilities.rb +200 -0
  776. data/lib/kubernetes/models/v1_ceph_fs_persistent_volume_source.rb +236 -0
  777. data/lib/kubernetes/models/v1_ceph_fs_volume_source.rb +236 -0
  778. data/lib/kubernetes/models/v1_cinder_persistent_volume_source.rb +218 -0
  779. data/lib/kubernetes/models/v1_cinder_volume_source.rb +218 -0
  780. data/lib/kubernetes/models/v1_client_ip_config.rb +189 -0
  781. data/lib/kubernetes/models/v1_cluster_role.rb +227 -0
  782. data/lib/kubernetes/models/v1_cluster_role_binding.rb +229 -0
  783. data/lib/kubernetes/models/v1_cluster_role_binding_list.rb +218 -0
  784. data/lib/kubernetes/models/v1_cluster_role_list.rb +218 -0
  785. data/lib/kubernetes/models/v1_component_condition.rb +219 -0
  786. data/lib/kubernetes/models/v1_component_status.rb +213 -0
  787. data/lib/kubernetes/models/v1_component_status_list.rb +218 -0
  788. data/lib/kubernetes/models/v1_config_map.rb +223 -0
  789. data/lib/kubernetes/models/v1_config_map_env_source.rb +195 -0
  790. data/lib/kubernetes/models/v1_config_map_key_selector.rb +208 -0
  791. data/lib/kubernetes/models/v1_config_map_list.rb +218 -0
  792. data/lib/kubernetes/models/v1_config_map_node_config_source.rb +234 -0
  793. data/lib/kubernetes/models/v1_config_map_projection.rb +205 -0
  794. data/lib/kubernetes/models/v1_config_map_volume_source.rb +213 -0
  795. data/lib/kubernetes/models/v1_container.rb +371 -0
  796. data/lib/kubernetes/models/v1_container_image.rb +202 -0
  797. data/lib/kubernetes/models/v1_container_port.rb +226 -0
  798. data/lib/kubernetes/models/v1_container_state.rb +203 -0
  799. data/lib/kubernetes/models/v1_container_state_running.rb +187 -0
  800. data/lib/kubernetes/models/v1_container_state_terminated.rb +242 -0
  801. data/lib/kubernetes/models/v1_container_state_waiting.rb +195 -0
  802. data/lib/kubernetes/models/v1_container_status.rb +264 -0
  803. data/lib/kubernetes/models/v1_controller_revision.rb +226 -0
  804. data/lib/kubernetes/models/v1_controller_revision_list.rb +218 -0
  805. data/lib/kubernetes/models/v1_cross_version_object_reference.rb +211 -0
  806. data/lib/kubernetes/models/v1_csi_persistent_volume_source.rb +264 -0
  807. data/lib/kubernetes/models/v1_daemon_endpoint.rb +192 -0
  808. data/lib/kubernetes/models/v1_daemon_set.rb +219 -0
  809. data/lib/kubernetes/models/v1_daemon_set_condition.rb +229 -0
  810. data/lib/kubernetes/models/v1_daemon_set_list.rb +218 -0
  811. data/lib/kubernetes/models/v1_daemon_set_spec.rb +235 -0
  812. data/lib/kubernetes/models/v1_daemon_set_status.rb +296 -0
  813. data/lib/kubernetes/models/v1_daemon_set_update_strategy.rb +195 -0
  814. data/lib/kubernetes/models/v1_delete_options.rb +242 -0
  815. data/lib/kubernetes/models/v1_deployment.rb +219 -0
  816. data/lib/kubernetes/models/v1_deployment_condition.rb +237 -0
  817. data/lib/kubernetes/models/v1_deployment_list.rb +218 -0
  818. data/lib/kubernetes/models/v1_deployment_spec.rb +260 -0
  819. data/lib/kubernetes/models/v1_deployment_status.rb +254 -0
  820. data/lib/kubernetes/models/v1_deployment_strategy.rb +195 -0
  821. data/lib/kubernetes/models/v1_downward_api_projection.rb +190 -0
  822. data/lib/kubernetes/models/v1_downward_api_volume_file.rb +218 -0
  823. data/lib/kubernetes/models/v1_downward_api_volume_source.rb +198 -0
  824. data/lib/kubernetes/models/v1_empty_dir_volume_source.rb +195 -0
  825. data/lib/kubernetes/models/v1_endpoint_address.rb +216 -0
  826. data/lib/kubernetes/models/v1_endpoint_port.rb +208 -0
  827. data/lib/kubernetes/models/v1_endpoint_subset.rb +210 -0
  828. data/lib/kubernetes/models/v1_endpoints.rb +214 -0
  829. data/lib/kubernetes/models/v1_endpoints_list.rb +218 -0
  830. data/lib/kubernetes/models/v1_env_from_source.rb +203 -0
  831. data/lib/kubernetes/models/v1_env_var.rb +208 -0
  832. data/lib/kubernetes/models/v1_env_var_source.rb +213 -0
  833. data/lib/kubernetes/models/v1_event.rb +332 -0
  834. data/lib/kubernetes/models/v1_event_list.rb +218 -0
  835. data/lib/kubernetes/models/v1_event_series.rb +203 -0
  836. data/lib/kubernetes/models/v1_event_source.rb +195 -0
  837. data/lib/kubernetes/models/v1_exec_action.rb +190 -0
  838. data/lib/kubernetes/models/v1_fc_volume_source.rb +224 -0
  839. data/lib/kubernetes/models/v1_flex_persistent_volume_source.rb +226 -0
  840. data/lib/kubernetes/models/v1_flex_volume_source.rb +226 -0
  841. data/lib/kubernetes/models/v1_flocker_volume_source.rb +197 -0
  842. data/lib/kubernetes/models/v1_gce_persistent_disk_volume_source.rb +218 -0
  843. data/lib/kubernetes/models/v1_git_repo_volume_source.rb +210 -0
  844. data/lib/kubernetes/models/v1_glusterfs_persistent_volume_source.rb +223 -0
  845. data/lib/kubernetes/models/v1_glusterfs_volume_source.rb +213 -0
  846. data/lib/kubernetes/models/v1_group_version_for_discovery.rb +207 -0
  847. data/lib/kubernetes/models/v1_handler.rb +203 -0
  848. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler.rb +219 -0
  849. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_list.rb +218 -0
  850. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_spec.rb +225 -0
  851. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_status.rb +236 -0
  852. data/lib/kubernetes/models/v1_host_alias.rb +197 -0
  853. data/lib/kubernetes/models/v1_host_path_volume_source.rb +200 -0
  854. data/lib/kubernetes/models/v1_http_get_action.rb +226 -0
  855. data/lib/kubernetes/models/v1_http_header.rb +203 -0
  856. data/lib/kubernetes/models/v1_initializer.rb +192 -0
  857. data/lib/kubernetes/models/v1_initializers.rb +204 -0
  858. data/lib/kubernetes/models/v1_ip_block.rb +203 -0
  859. data/lib/kubernetes/models/v1_iscsi_persistent_volume_source.rb +287 -0
  860. data/lib/kubernetes/models/v1_iscsi_volume_source.rb +287 -0
  861. data/lib/kubernetes/models/v1_job.rb +219 -0
  862. data/lib/kubernetes/models/v1_job_condition.rb +237 -0
  863. data/lib/kubernetes/models/v1_job_list.rb +218 -0
  864. data/lib/kubernetes/models/v1_job_spec.rb +255 -0
  865. data/lib/kubernetes/models/v1_job_status.rb +229 -0
  866. data/lib/kubernetes/models/v1_key_to_path.rb +211 -0
  867. data/lib/kubernetes/models/v1_label_selector.rb +200 -0
  868. data/lib/kubernetes/models/v1_label_selector_requirement.rb +216 -0
  869. data/lib/kubernetes/models/v1_lifecycle.rb +195 -0
  870. data/lib/kubernetes/models/v1_limit_range.rb +211 -0
  871. data/lib/kubernetes/models/v1_limit_range_item.rb +237 -0
  872. data/lib/kubernetes/models/v1_limit_range_list.rb +218 -0
  873. data/lib/kubernetes/models/v1_limit_range_spec.rb +195 -0
  874. data/lib/kubernetes/models/v1_list_meta.rb +203 -0
  875. data/lib/kubernetes/models/v1_load_balancer_ingress.rb +195 -0
  876. data/lib/kubernetes/models/v1_load_balancer_status.rb +190 -0
  877. data/lib/kubernetes/models/v1_local_object_reference.rb +187 -0
  878. data/lib/kubernetes/models/v1_local_subject_access_review.rb +223 -0
  879. data/lib/kubernetes/models/v1_local_volume_source.rb +200 -0
  880. data/lib/kubernetes/models/v1_namespace.rb +219 -0
  881. data/lib/kubernetes/models/v1_namespace_list.rb +218 -0
  882. data/lib/kubernetes/models/v1_namespace_spec.rb +190 -0
  883. data/lib/kubernetes/models/v1_namespace_status.rb +187 -0
  884. data/lib/kubernetes/models/v1_network_policy.rb +211 -0
  885. data/lib/kubernetes/models/v1_network_policy_egress_rule.rb +200 -0
  886. data/lib/kubernetes/models/v1_network_policy_ingress_rule.rb +200 -0
  887. data/lib/kubernetes/models/v1_network_policy_list.rb +218 -0
  888. data/lib/kubernetes/models/v1_network_policy_peer.rb +207 -0
  889. data/lib/kubernetes/models/v1_network_policy_port.rb +195 -0
  890. data/lib/kubernetes/models/v1_network_policy_spec.rb +225 -0
  891. data/lib/kubernetes/models/v1_nfs_volume_source.rb +211 -0
  892. data/lib/kubernetes/models/v1_node.rb +219 -0
  893. data/lib/kubernetes/models/v1_node_address.rb +205 -0
  894. data/lib/kubernetes/models/v1_node_affinity.rb +200 -0
  895. data/lib/kubernetes/models/v1_node_condition.rb +239 -0
  896. data/lib/kubernetes/models/v1_node_config_source.rb +187 -0
  897. data/lib/kubernetes/models/v1_node_config_status.rb +213 -0
  898. data/lib/kubernetes/models/v1_node_daemon_endpoints.rb +189 -0
  899. data/lib/kubernetes/models/v1_node_list.rb +218 -0
  900. data/lib/kubernetes/models/v1_node_selector.rb +197 -0
  901. data/lib/kubernetes/models/v1_node_selector_requirement.rb +216 -0
  902. data/lib/kubernetes/models/v1_node_selector_term.rb +200 -0
  903. data/lib/kubernetes/models/v1_node_spec.rb +231 -0
  904. data/lib/kubernetes/models/v1_node_status.rb +283 -0
  905. data/lib/kubernetes/models/v1_node_system_info.rb +314 -0
  906. data/lib/kubernetes/models/v1_non_resource_attributes.rb +195 -0
  907. data/lib/kubernetes/models/v1_non_resource_rule.rb +205 -0
  908. data/lib/kubernetes/models/v1_object_field_selector.rb +202 -0
  909. data/lib/kubernetes/models/v1_object_meta.rb +322 -0
  910. data/lib/kubernetes/models/v1_object_reference.rb +235 -0
  911. data/lib/kubernetes/models/v1_owner_reference.rb +245 -0
  912. data/lib/kubernetes/models/v1_persistent_volume.rb +219 -0
  913. data/lib/kubernetes/models/v1_persistent_volume_claim.rb +219 -0
  914. data/lib/kubernetes/models/v1_persistent_volume_claim_condition.rb +233 -0
  915. data/lib/kubernetes/models/v1_persistent_volume_claim_list.rb +218 -0
  916. data/lib/kubernetes/models/v1_persistent_volume_claim_spec.rb +238 -0
  917. data/lib/kubernetes/models/v1_persistent_volume_claim_status.rb +217 -0
  918. data/lib/kubernetes/models/v1_persistent_volume_claim_volume_source.rb +202 -0
  919. data/lib/kubernetes/models/v1_persistent_volume_list.rb +218 -0
  920. data/lib/kubernetes/models/v1_persistent_volume_spec.rb +436 -0
  921. data/lib/kubernetes/models/v1_persistent_volume_status.rb +203 -0
  922. data/lib/kubernetes/models/v1_photon_persistent_disk_volume_source.rb +200 -0
  923. data/lib/kubernetes/models/v1_pod.rb +219 -0
  924. data/lib/kubernetes/models/v1_pod_affinity.rb +201 -0
  925. data/lib/kubernetes/models/v1_pod_affinity_term.rb +214 -0
  926. data/lib/kubernetes/models/v1_pod_anti_affinity.rb +200 -0
  927. data/lib/kubernetes/models/v1_pod_condition.rb +237 -0
  928. data/lib/kubernetes/models/v1_pod_dns_config.rb +210 -0
  929. data/lib/kubernetes/models/v1_pod_dns_config_option.rb +194 -0
  930. data/lib/kubernetes/models/v1_pod_list.rb +218 -0
  931. data/lib/kubernetes/models/v1_pod_readiness_gate.rb +196 -0
  932. data/lib/kubernetes/models/v1_pod_security_context.rb +241 -0
  933. data/lib/kubernetes/models/v1_pod_spec.rb +458 -0
  934. data/lib/kubernetes/models/v1_pod_status.rb +276 -0
  935. data/lib/kubernetes/models/v1_pod_template.rb +211 -0
  936. data/lib/kubernetes/models/v1_pod_template_list.rb +218 -0
  937. data/lib/kubernetes/models/v1_pod_template_spec.rb +195 -0
  938. data/lib/kubernetes/models/v1_policy_rule.rb +235 -0
  939. data/lib/kubernetes/models/v1_portworx_volume_source.rb +210 -0
  940. data/lib/kubernetes/models/v1_preconditions.rb +187 -0
  941. data/lib/kubernetes/models/v1_preferred_scheduling_term.rb +205 -0
  942. data/lib/kubernetes/models/v1_probe.rb +248 -0
  943. data/lib/kubernetes/models/v1_projected_volume_source.rb +205 -0
  944. data/lib/kubernetes/models/v1_quobyte_volume_source.rb +229 -0
  945. data/lib/kubernetes/models/v1_rbd_persistent_volume_source.rb +255 -0
  946. data/lib/kubernetes/models/v1_rbd_volume_source.rb +255 -0
  947. data/lib/kubernetes/models/v1_replica_set.rb +219 -0
  948. data/lib/kubernetes/models/v1_replica_set_condition.rb +229 -0
  949. data/lib/kubernetes/models/v1_replica_set_list.rb +218 -0
  950. data/lib/kubernetes/models/v1_replica_set_spec.rb +218 -0
  951. data/lib/kubernetes/models/v1_replica_set_status.rb +243 -0
  952. data/lib/kubernetes/models/v1_replication_controller.rb +219 -0
  953. data/lib/kubernetes/models/v1_replication_controller_condition.rb +229 -0
  954. data/lib/kubernetes/models/v1_replication_controller_list.rb +218 -0
  955. data/lib/kubernetes/models/v1_replication_controller_spec.rb +213 -0
  956. data/lib/kubernetes/models/v1_replication_controller_status.rb +243 -0
  957. data/lib/kubernetes/models/v1_resource_attributes.rb +235 -0
  958. data/lib/kubernetes/models/v1_resource_field_selector.rb +210 -0
  959. data/lib/kubernetes/models/v1_resource_quota.rb +219 -0
  960. data/lib/kubernetes/models/v1_resource_quota_list.rb +218 -0
  961. data/lib/kubernetes/models/v1_resource_quota_spec.rb +208 -0
  962. data/lib/kubernetes/models/v1_resource_quota_status.rb +200 -0
  963. data/lib/kubernetes/models/v1_resource_requirements.rb +200 -0
  964. data/lib/kubernetes/models/v1_resource_rule.rb +225 -0
  965. data/lib/kubernetes/models/v1_role.rb +219 -0
  966. data/lib/kubernetes/models/v1_role_binding.rb +229 -0
  967. data/lib/kubernetes/models/v1_role_binding_list.rb +218 -0
  968. data/lib/kubernetes/models/v1_role_list.rb +218 -0
  969. data/lib/kubernetes/models/v1_role_ref.rb +216 -0
  970. data/lib/kubernetes/models/v1_rolling_update_daemon_set.rb +189 -0
  971. data/lib/kubernetes/models/v1_rolling_update_deployment.rb +197 -0
  972. data/lib/kubernetes/models/v1_rolling_update_stateful_set_strategy.rb +187 -0
  973. data/lib/kubernetes/models/v1_scale.rb +219 -0
  974. data/lib/kubernetes/models/v1_scale_io_persistent_volume_source.rb +275 -0
  975. data/lib/kubernetes/models/v1_scale_io_volume_source.rb +275 -0
  976. data/lib/kubernetes/models/v1_scale_spec.rb +187 -0
  977. data/lib/kubernetes/models/v1_scale_status.rb +202 -0
  978. data/lib/kubernetes/models/v1_scope_selector.rb +190 -0
  979. data/lib/kubernetes/models/v1_scoped_resource_selector_requirement.rb +218 -0
  980. data/lib/kubernetes/models/v1_se_linux_options.rb +211 -0
  981. data/lib/kubernetes/models/v1_secret.rb +231 -0
  982. data/lib/kubernetes/models/v1_secret_env_source.rb +195 -0
  983. data/lib/kubernetes/models/v1_secret_key_selector.rb +208 -0
  984. data/lib/kubernetes/models/v1_secret_list.rb +218 -0
  985. data/lib/kubernetes/models/v1_secret_projection.rb +205 -0
  986. data/lib/kubernetes/models/v1_secret_reference.rb +195 -0
  987. data/lib/kubernetes/models/v1_secret_volume_source.rb +213 -0
  988. data/lib/kubernetes/models/v1_security_context.rb +258 -0
  989. data/lib/kubernetes/models/v1_self_subject_access_review.rb +223 -0
  990. data/lib/kubernetes/models/v1_self_subject_access_review_spec.rb +199 -0
  991. data/lib/kubernetes/models/v1_self_subject_rules_review.rb +223 -0
  992. data/lib/kubernetes/models/v1_self_subject_rules_review_spec.rb +186 -0
  993. data/lib/kubernetes/models/v1_server_address_by_client_cidr.rb +209 -0
  994. data/lib/kubernetes/models/v1_service.rb +219 -0
  995. data/lib/kubernetes/models/v1_service_account.rb +235 -0
  996. data/lib/kubernetes/models/v1_service_account_list.rb +218 -0
  997. data/lib/kubernetes/models/v1_service_account_token_projection.rb +210 -0
  998. data/lib/kubernetes/models/v1_service_list.rb +218 -0
  999. data/lib/kubernetes/models/v1_service_port.rb +224 -0
  1000. data/lib/kubernetes/models/v1_service_reference.rb +195 -0
  1001. data/lib/kubernetes/models/v1_service_spec.rb +300 -0
  1002. data/lib/kubernetes/models/v1_service_status.rb +189 -0
  1003. data/lib/kubernetes/models/v1_session_affinity_config.rb +187 -0
  1004. data/lib/kubernetes/models/v1_stateful_set.rb +218 -0
  1005. data/lib/kubernetes/models/v1_stateful_set_condition.rb +229 -0
  1006. data/lib/kubernetes/models/v1_stateful_set_list.rb +214 -0
  1007. data/lib/kubernetes/models/v1_stateful_set_spec.rb +268 -0
  1008. data/lib/kubernetes/models/v1_stateful_set_status.rb +265 -0
  1009. data/lib/kubernetes/models/v1_stateful_set_update_strategy.rb +195 -0
  1010. data/lib/kubernetes/models/v1_status.rb +243 -0
  1011. data/lib/kubernetes/models/v1_status_cause.rb +203 -0
  1012. data/lib/kubernetes/models/v1_status_details.rb +231 -0
  1013. data/lib/kubernetes/models/v1_storage_class.rb +277 -0
  1014. data/lib/kubernetes/models/v1_storage_class_list.rb +218 -0
  1015. data/lib/kubernetes/models/v1_storage_os_persistent_volume_source.rb +221 -0
  1016. data/lib/kubernetes/models/v1_storage_os_volume_source.rb +221 -0
  1017. data/lib/kubernetes/models/v1_subject.rb +219 -0
  1018. data/lib/kubernetes/models/v1_subject_access_review.rb +223 -0
  1019. data/lib/kubernetes/models/v1_subject_access_review_spec.rb +235 -0
  1020. data/lib/kubernetes/models/v1_subject_access_review_status.rb +218 -0
  1021. data/lib/kubernetes/models/v1_subject_rules_review_status.rb +233 -0
  1022. data/lib/kubernetes/models/v1_sysctl.rb +203 -0
  1023. data/lib/kubernetes/models/v1_taint.rb +219 -0
  1024. data/lib/kubernetes/models/v1_tcp_socket_action.rb +200 -0
  1025. data/lib/kubernetes/models/v1_token_review.rb +223 -0
  1026. data/lib/kubernetes/models/v1_token_review_spec.rb +197 -0
  1027. data/lib/kubernetes/models/v1_token_review_status.rb +213 -0
  1028. data/lib/kubernetes/models/v1_toleration.rb +221 -0
  1029. data/lib/kubernetes/models/v1_topology_selector_label_requirement.rb +206 -0
  1030. data/lib/kubernetes/models/v1_topology_selector_term.rb +190 -0
  1031. data/lib/kubernetes/models/v1_typed_local_object_reference.rb +211 -0
  1032. data/lib/kubernetes/models/v1_user_info.rb +215 -0
  1033. data/lib/kubernetes/models/v1_volume.rb +419 -0
  1034. data/lib/kubernetes/models/v1_volume_attachment.rb +224 -0
  1035. data/lib/kubernetes/models/v1_volume_attachment_list.rb +218 -0
  1036. data/lib/kubernetes/models/v1_volume_attachment_source.rb +189 -0
  1037. data/lib/kubernetes/models/v1_volume_attachment_spec.rb +218 -0
  1038. data/lib/kubernetes/models/v1_volume_attachment_status.rb +222 -0
  1039. data/lib/kubernetes/models/v1_volume_device.rb +205 -0
  1040. data/lib/kubernetes/models/v1_volume_error.rb +195 -0
  1041. data/lib/kubernetes/models/v1_volume_mount.rb +229 -0
  1042. data/lib/kubernetes/models/v1_volume_node_affinity.rb +187 -0
  1043. data/lib/kubernetes/models/v1_volume_projection.rb +213 -0
  1044. data/lib/kubernetes/models/v1_vsphere_virtual_disk_volume_source.rb +220 -0
  1045. data/lib/kubernetes/models/v1_watch_event.rb +202 -0
  1046. data/lib/kubernetes/models/v1_weighted_pod_affinity_term.rb +205 -0
  1047. data/lib/kubernetes/models/v1alpha1_aggregation_rule.rb +190 -0
  1048. data/lib/kubernetes/models/v1alpha1_audit_sink.rb +210 -0
  1049. data/lib/kubernetes/models/v1alpha1_audit_sink_list.rb +217 -0
  1050. data/lib/kubernetes/models/v1alpha1_audit_sink_spec.rb +205 -0
  1051. data/lib/kubernetes/models/v1alpha1_cluster_role.rb +227 -0
  1052. data/lib/kubernetes/models/v1alpha1_cluster_role_binding.rb +229 -0
  1053. data/lib/kubernetes/models/v1alpha1_cluster_role_binding_list.rb +218 -0
  1054. data/lib/kubernetes/models/v1alpha1_cluster_role_list.rb +218 -0
  1055. data/lib/kubernetes/models/v1alpha1_initializer.rb +203 -0
  1056. data/lib/kubernetes/models/v1alpha1_initializer_configuration.rb +213 -0
  1057. data/lib/kubernetes/models/v1alpha1_initializer_configuration_list.rb +218 -0
  1058. data/lib/kubernetes/models/v1alpha1_pod_preset.rb +207 -0
  1059. data/lib/kubernetes/models/v1alpha1_pod_preset_list.rb +218 -0
  1060. data/lib/kubernetes/models/v1alpha1_pod_preset_spec.rb +228 -0
  1061. data/lib/kubernetes/models/v1alpha1_policy.rb +203 -0
  1062. data/lib/kubernetes/models/v1alpha1_policy_rule.rb +235 -0
  1063. data/lib/kubernetes/models/v1alpha1_priority_class.rb +232 -0
  1064. data/lib/kubernetes/models/v1alpha1_priority_class_list.rb +218 -0
  1065. data/lib/kubernetes/models/v1alpha1_role.rb +219 -0
  1066. data/lib/kubernetes/models/v1alpha1_role_binding.rb +229 -0
  1067. data/lib/kubernetes/models/v1alpha1_role_binding_list.rb +218 -0
  1068. data/lib/kubernetes/models/v1alpha1_role_list.rb +218 -0
  1069. data/lib/kubernetes/models/v1alpha1_role_ref.rb +216 -0
  1070. data/lib/kubernetes/models/v1alpha1_rule.rb +210 -0
  1071. data/lib/kubernetes/models/v1alpha1_service_reference.rb +213 -0
  1072. data/lib/kubernetes/models/v1alpha1_subject.rb +219 -0
  1073. data/lib/kubernetes/models/v1alpha1_volume_attachment.rb +224 -0
  1074. data/lib/kubernetes/models/v1alpha1_volume_attachment_list.rb +218 -0
  1075. data/lib/kubernetes/models/v1alpha1_volume_attachment_source.rb +189 -0
  1076. data/lib/kubernetes/models/v1alpha1_volume_attachment_spec.rb +218 -0
  1077. data/lib/kubernetes/models/v1alpha1_volume_attachment_status.rb +222 -0
  1078. data/lib/kubernetes/models/v1alpha1_volume_error.rb +195 -0
  1079. data/lib/kubernetes/models/v1alpha1_webhook.rb +202 -0
  1080. data/lib/kubernetes/models/v1alpha1_webhook_client_config.rb +223 -0
  1081. data/lib/kubernetes/models/v1alpha1_webhook_throttle_config.rb +195 -0
  1082. data/lib/kubernetes/models/v1beta1_aggregation_rule.rb +190 -0
  1083. data/lib/kubernetes/models/v1beta1_api_service.rb +218 -0
  1084. data/lib/kubernetes/models/v1beta1_api_service_condition.rb +228 -0
  1085. data/lib/kubernetes/models/v1beta1_api_service_list.rb +214 -0
  1086. data/lib/kubernetes/models/v1beta1_api_service_spec.rb +274 -0
  1087. data/lib/kubernetes/models/v1beta1_api_service_status.rb +190 -0
  1088. data/lib/kubernetes/models/v1beta1_certificate_signing_request.rb +218 -0
  1089. data/lib/kubernetes/models/v1beta1_certificate_signing_request_condition.rb +215 -0
  1090. data/lib/kubernetes/models/v1beta1_certificate_signing_request_list.rb +213 -0
  1091. data/lib/kubernetes/models/v1beta1_certificate_signing_request_spec.rb +260 -0
  1092. data/lib/kubernetes/models/v1beta1_certificate_signing_request_status.rb +219 -0
  1093. data/lib/kubernetes/models/v1beta1_cluster_role.rb +227 -0
  1094. data/lib/kubernetes/models/v1beta1_cluster_role_binding.rb +229 -0
  1095. data/lib/kubernetes/models/v1beta1_cluster_role_binding_list.rb +218 -0
  1096. data/lib/kubernetes/models/v1beta1_cluster_role_list.rb +218 -0
  1097. data/lib/kubernetes/models/v1beta1_controller_revision.rb +226 -0
  1098. data/lib/kubernetes/models/v1beta1_controller_revision_list.rb +218 -0
  1099. data/lib/kubernetes/models/v1beta1_cron_job.rb +219 -0
  1100. data/lib/kubernetes/models/v1beta1_cron_job_list.rb +218 -0
  1101. data/lib/kubernetes/models/v1beta1_cron_job_spec.rb +256 -0
  1102. data/lib/kubernetes/models/v1beta1_cron_job_status.rb +199 -0
  1103. data/lib/kubernetes/models/v1beta1_custom_resource_column_definition.rb +240 -0
  1104. data/lib/kubernetes/models/v1beta1_custom_resource_conversion.rb +204 -0
  1105. data/lib/kubernetes/models/v1beta1_custom_resource_definition.rb +223 -0
  1106. data/lib/kubernetes/models/v1beta1_custom_resource_definition_condition.rb +229 -0
  1107. data/lib/kubernetes/models/v1beta1_custom_resource_definition_list.rb +217 -0
  1108. data/lib/kubernetes/models/v1beta1_custom_resource_definition_names.rb +239 -0
  1109. data/lib/kubernetes/models/v1beta1_custom_resource_definition_spec.rb +268 -0
  1110. data/lib/kubernetes/models/v1beta1_custom_resource_definition_status.rb +225 -0
  1111. data/lib/kubernetes/models/v1beta1_custom_resource_definition_version.rb +244 -0
  1112. data/lib/kubernetes/models/v1beta1_custom_resource_subresource_scale.rb +219 -0
  1113. data/lib/kubernetes/models/v1beta1_custom_resource_subresources.rb +195 -0
  1114. data/lib/kubernetes/models/v1beta1_custom_resource_validation.rb +189 -0
  1115. data/lib/kubernetes/models/v1beta1_daemon_set.rb +219 -0
  1116. data/lib/kubernetes/models/v1beta1_daemon_set_condition.rb +229 -0
  1117. data/lib/kubernetes/models/v1beta1_daemon_set_list.rb +218 -0
  1118. data/lib/kubernetes/models/v1beta1_daemon_set_spec.rb +241 -0
  1119. data/lib/kubernetes/models/v1beta1_daemon_set_status.rb +296 -0
  1120. data/lib/kubernetes/models/v1beta1_daemon_set_update_strategy.rb +194 -0
  1121. data/lib/kubernetes/models/v1beta1_event.rb +330 -0
  1122. data/lib/kubernetes/models/v1beta1_event_list.rb +218 -0
  1123. data/lib/kubernetes/models/v1beta1_event_series.rb +216 -0
  1124. data/lib/kubernetes/models/v1beta1_eviction.rb +211 -0
  1125. data/lib/kubernetes/models/v1beta1_external_documentation.rb +191 -0
  1126. data/lib/kubernetes/models/v1beta1_http_ingress_path.rb +202 -0
  1127. data/lib/kubernetes/models/v1beta1_http_ingress_rule_value.rb +195 -0
  1128. data/lib/kubernetes/models/v1beta1_ingress.rb +219 -0
  1129. data/lib/kubernetes/models/v1beta1_ingress_backend.rb +209 -0
  1130. data/lib/kubernetes/models/v1beta1_ingress_list.rb +218 -0
  1131. data/lib/kubernetes/models/v1beta1_ingress_rule.rb +194 -0
  1132. data/lib/kubernetes/models/v1beta1_ingress_spec.rb +208 -0
  1133. data/lib/kubernetes/models/v1beta1_ingress_status.rb +189 -0
  1134. data/lib/kubernetes/models/v1beta1_ingress_tls.rb +197 -0
  1135. data/lib/kubernetes/models/v1beta1_ip_block.rb +203 -0
  1136. data/lib/kubernetes/models/v1beta1_job_template_spec.rb +195 -0
  1137. data/lib/kubernetes/models/v1beta1_json_schema_props.rb +400 -0
  1138. data/lib/kubernetes/models/v1beta1_lease.rb +211 -0
  1139. data/lib/kubernetes/models/v1beta1_lease_list.rb +218 -0
  1140. data/lib/kubernetes/models/v1beta1_lease_spec.rb +221 -0
  1141. data/lib/kubernetes/models/v1beta1_local_subject_access_review.rb +223 -0
  1142. data/lib/kubernetes/models/v1beta1_mutating_webhook_configuration.rb +214 -0
  1143. data/lib/kubernetes/models/v1beta1_mutating_webhook_configuration_list.rb +218 -0
  1144. data/lib/kubernetes/models/v1beta1_network_policy.rb +211 -0
  1145. data/lib/kubernetes/models/v1beta1_network_policy_egress_rule.rb +200 -0
  1146. data/lib/kubernetes/models/v1beta1_network_policy_ingress_rule.rb +200 -0
  1147. data/lib/kubernetes/models/v1beta1_network_policy_list.rb +218 -0
  1148. data/lib/kubernetes/models/v1beta1_network_policy_peer.rb +207 -0
  1149. data/lib/kubernetes/models/v1beta1_network_policy_port.rb +195 -0
  1150. data/lib/kubernetes/models/v1beta1_network_policy_spec.rb +225 -0
  1151. data/lib/kubernetes/models/v1beta1_non_resource_attributes.rb +195 -0
  1152. data/lib/kubernetes/models/v1beta1_non_resource_rule.rb +205 -0
  1153. data/lib/kubernetes/models/v1beta1_pod_disruption_budget.rb +218 -0
  1154. data/lib/kubernetes/models/v1beta1_pod_disruption_budget_list.rb +214 -0
  1155. data/lib/kubernetes/models/v1beta1_pod_disruption_budget_spec.rb +203 -0
  1156. data/lib/kubernetes/models/v1beta1_pod_disruption_budget_status.rb +256 -0
  1157. data/lib/kubernetes/models/v1beta1_policy_rule.rb +235 -0
  1158. data/lib/kubernetes/models/v1beta1_priority_class.rb +232 -0
  1159. data/lib/kubernetes/models/v1beta1_priority_class_list.rb +218 -0
  1160. data/lib/kubernetes/models/v1beta1_replica_set.rb +219 -0
  1161. data/lib/kubernetes/models/v1beta1_replica_set_condition.rb +229 -0
  1162. data/lib/kubernetes/models/v1beta1_replica_set_list.rb +218 -0
  1163. data/lib/kubernetes/models/v1beta1_replica_set_spec.rb +211 -0
  1164. data/lib/kubernetes/models/v1beta1_replica_set_status.rb +243 -0
  1165. data/lib/kubernetes/models/v1beta1_resource_attributes.rb +235 -0
  1166. data/lib/kubernetes/models/v1beta1_resource_rule.rb +225 -0
  1167. data/lib/kubernetes/models/v1beta1_role.rb +219 -0
  1168. data/lib/kubernetes/models/v1beta1_role_binding.rb +229 -0
  1169. data/lib/kubernetes/models/v1beta1_role_binding_list.rb +218 -0
  1170. data/lib/kubernetes/models/v1beta1_role_list.rb +218 -0
  1171. data/lib/kubernetes/models/v1beta1_role_ref.rb +216 -0
  1172. data/lib/kubernetes/models/v1beta1_rolling_update_daemon_set.rb +189 -0
  1173. data/lib/kubernetes/models/v1beta1_rolling_update_stateful_set_strategy.rb +187 -0
  1174. data/lib/kubernetes/models/v1beta1_rule_with_operations.rb +220 -0
  1175. data/lib/kubernetes/models/v1beta1_self_subject_access_review.rb +223 -0
  1176. data/lib/kubernetes/models/v1beta1_self_subject_access_review_spec.rb +199 -0
  1177. data/lib/kubernetes/models/v1beta1_self_subject_rules_review.rb +223 -0
  1178. data/lib/kubernetes/models/v1beta1_self_subject_rules_review_spec.rb +186 -0
  1179. data/lib/kubernetes/models/v1beta1_stateful_set.rb +218 -0
  1180. data/lib/kubernetes/models/v1beta1_stateful_set_condition.rb +229 -0
  1181. data/lib/kubernetes/models/v1beta1_stateful_set_list.rb +214 -0
  1182. data/lib/kubernetes/models/v1beta1_stateful_set_spec.rb +263 -0
  1183. data/lib/kubernetes/models/v1beta1_stateful_set_status.rb +265 -0
  1184. data/lib/kubernetes/models/v1beta1_stateful_set_update_strategy.rb +195 -0
  1185. data/lib/kubernetes/models/v1beta1_storage_class.rb +277 -0
  1186. data/lib/kubernetes/models/v1beta1_storage_class_list.rb +218 -0
  1187. data/lib/kubernetes/models/v1beta1_subject.rb +219 -0
  1188. data/lib/kubernetes/models/v1beta1_subject_access_review.rb +223 -0
  1189. data/lib/kubernetes/models/v1beta1_subject_access_review_spec.rb +235 -0
  1190. data/lib/kubernetes/models/v1beta1_subject_access_review_status.rb +218 -0
  1191. data/lib/kubernetes/models/v1beta1_subject_rules_review_status.rb +233 -0
  1192. data/lib/kubernetes/models/v1beta1_token_review.rb +223 -0
  1193. data/lib/kubernetes/models/v1beta1_token_review_spec.rb +197 -0
  1194. data/lib/kubernetes/models/v1beta1_token_review_status.rb +213 -0
  1195. data/lib/kubernetes/models/v1beta1_user_info.rb +215 -0
  1196. data/lib/kubernetes/models/v1beta1_validating_webhook_configuration.rb +214 -0
  1197. data/lib/kubernetes/models/v1beta1_validating_webhook_configuration_list.rb +218 -0
  1198. data/lib/kubernetes/models/v1beta1_volume_attachment.rb +224 -0
  1199. data/lib/kubernetes/models/v1beta1_volume_attachment_list.rb +218 -0
  1200. data/lib/kubernetes/models/v1beta1_volume_attachment_source.rb +189 -0
  1201. data/lib/kubernetes/models/v1beta1_volume_attachment_spec.rb +218 -0
  1202. data/lib/kubernetes/models/v1beta1_volume_attachment_status.rb +222 -0
  1203. data/lib/kubernetes/models/v1beta1_volume_error.rb +195 -0
  1204. data/lib/kubernetes/models/v1beta1_webhook.rb +243 -0
  1205. data/lib/kubernetes/models/v1beta2_controller_revision.rb +226 -0
  1206. data/lib/kubernetes/models/v1beta2_controller_revision_list.rb +218 -0
  1207. data/lib/kubernetes/models/v1beta2_daemon_set.rb +219 -0
  1208. data/lib/kubernetes/models/v1beta2_daemon_set_condition.rb +229 -0
  1209. data/lib/kubernetes/models/v1beta2_daemon_set_list.rb +218 -0
  1210. data/lib/kubernetes/models/v1beta2_daemon_set_spec.rb +235 -0
  1211. data/lib/kubernetes/models/v1beta2_daemon_set_status.rb +296 -0
  1212. data/lib/kubernetes/models/v1beta2_daemon_set_update_strategy.rb +195 -0
  1213. data/lib/kubernetes/models/v1beta2_deployment.rb +219 -0
  1214. data/lib/kubernetes/models/v1beta2_deployment_condition.rb +237 -0
  1215. data/lib/kubernetes/models/v1beta2_deployment_list.rb +218 -0
  1216. data/lib/kubernetes/models/v1beta2_deployment_spec.rb +260 -0
  1217. data/lib/kubernetes/models/v1beta2_deployment_status.rb +254 -0
  1218. data/lib/kubernetes/models/v1beta2_deployment_strategy.rb +195 -0
  1219. data/lib/kubernetes/models/v1beta2_replica_set.rb +219 -0
  1220. data/lib/kubernetes/models/v1beta2_replica_set_condition.rb +229 -0
  1221. data/lib/kubernetes/models/v1beta2_replica_set_list.rb +218 -0
  1222. data/lib/kubernetes/models/v1beta2_replica_set_spec.rb +218 -0
  1223. data/lib/kubernetes/models/v1beta2_replica_set_status.rb +243 -0
  1224. data/lib/kubernetes/models/v1beta2_rolling_update_daemon_set.rb +189 -0
  1225. data/lib/kubernetes/models/v1beta2_rolling_update_deployment.rb +197 -0
  1226. data/lib/kubernetes/models/v1beta2_rolling_update_stateful_set_strategy.rb +187 -0
  1227. data/lib/kubernetes/models/v1beta2_scale.rb +219 -0
  1228. data/lib/kubernetes/models/v1beta2_scale_spec.rb +187 -0
  1229. data/lib/kubernetes/models/v1beta2_scale_status.rb +214 -0
  1230. data/lib/kubernetes/models/v1beta2_stateful_set.rb +218 -0
  1231. data/lib/kubernetes/models/v1beta2_stateful_set_condition.rb +229 -0
  1232. data/lib/kubernetes/models/v1beta2_stateful_set_list.rb +214 -0
  1233. data/lib/kubernetes/models/v1beta2_stateful_set_spec.rb +268 -0
  1234. data/lib/kubernetes/models/v1beta2_stateful_set_status.rb +265 -0
  1235. data/lib/kubernetes/models/v1beta2_stateful_set_update_strategy.rb +195 -0
  1236. data/lib/kubernetes/models/v2alpha1_cron_job.rb +219 -0
  1237. data/lib/kubernetes/models/v2alpha1_cron_job_list.rb +218 -0
  1238. data/lib/kubernetes/models/v2alpha1_cron_job_spec.rb +256 -0
  1239. data/lib/kubernetes/models/v2alpha1_cron_job_status.rb +199 -0
  1240. data/lib/kubernetes/models/v2alpha1_job_template_spec.rb +195 -0
  1241. data/lib/kubernetes/models/v2beta1_cross_version_object_reference.rb +211 -0
  1242. data/lib/kubernetes/models/v2beta1_external_metric_source.rb +222 -0
  1243. data/lib/kubernetes/models/v2beta1_external_metric_status.rb +227 -0
  1244. data/lib/kubernetes/models/v2beta1_horizontal_pod_autoscaler.rb +219 -0
  1245. data/lib/kubernetes/models/v2beta1_horizontal_pod_autoscaler_condition.rb +229 -0
  1246. data/lib/kubernetes/models/v2beta1_horizontal_pod_autoscaler_list.rb +218 -0
  1247. data/lib/kubernetes/models/v2beta1_horizontal_pod_autoscaler_spec.rb +227 -0
  1248. data/lib/kubernetes/models/v2beta1_horizontal_pod_autoscaler_status.rb +251 -0
  1249. data/lib/kubernetes/models/v2beta1_metric_spec.rb +224 -0
  1250. data/lib/kubernetes/models/v2beta1_metric_status.rb +224 -0
  1251. data/lib/kubernetes/models/v2beta1_object_metric_source.rb +236 -0
  1252. data/lib/kubernetes/models/v2beta1_object_metric_status.rb +234 -0
  1253. data/lib/kubernetes/models/v2beta1_pods_metric_source.rb +217 -0
  1254. data/lib/kubernetes/models/v2beta1_pods_metric_status.rb +217 -0
  1255. data/lib/kubernetes/models/v2beta1_resource_metric_source.rb +212 -0
  1256. data/lib/kubernetes/models/v2beta1_resource_metric_status.rb +217 -0
  1257. data/lib/kubernetes/models/v2beta2_cross_version_object_reference.rb +211 -0
  1258. data/lib/kubernetes/models/v2beta2_external_metric_source.rb +203 -0
  1259. data/lib/kubernetes/models/v2beta2_external_metric_status.rb +205 -0
  1260. data/lib/kubernetes/models/v2beta2_horizontal_pod_autoscaler.rb +219 -0
  1261. data/lib/kubernetes/models/v2beta2_horizontal_pod_autoscaler_condition.rb +229 -0
  1262. data/lib/kubernetes/models/v2beta2_horizontal_pod_autoscaler_list.rb +218 -0
  1263. data/lib/kubernetes/models/v2beta2_horizontal_pod_autoscaler_spec.rb +227 -0
  1264. data/lib/kubernetes/models/v2beta2_horizontal_pod_autoscaler_status.rb +251 -0
  1265. data/lib/kubernetes/models/v2beta2_metric_identifier.rb +200 -0
  1266. data/lib/kubernetes/models/v2beta2_metric_spec.rb +224 -0
  1267. data/lib/kubernetes/models/v2beta2_metric_status.rb +224 -0
  1268. data/lib/kubernetes/models/v2beta2_metric_target.rb +218 -0
  1269. data/lib/kubernetes/models/v2beta2_metric_value_status.rb +205 -0
  1270. data/lib/kubernetes/models/v2beta2_object_metric_source.rb +215 -0
  1271. data/lib/kubernetes/models/v2beta2_object_metric_status.rb +217 -0
  1272. data/lib/kubernetes/models/v2beta2_pods_metric_source.rb +203 -0
  1273. data/lib/kubernetes/models/v2beta2_pods_metric_status.rb +205 -0
  1274. data/lib/kubernetes/models/v2beta2_resource_metric_source.rb +203 -0
  1275. data/lib/kubernetes/models/v2beta2_resource_metric_status.rb +205 -0
  1276. data/lib/kubernetes/models/version_info.rb +271 -0
  1277. data/lib/kubernetes/version.rb +15 -0
  1278. data/lib/kubernetes.rb +679 -0
  1279. data/spec/config/incluster_config_spec.rb +162 -0
  1280. data/spec/config/kube_config_spec.rb +321 -0
  1281. data/spec/config/matchers.rb +29 -0
  1282. data/spec/fixtures/config/kube_config_hash.rb +196 -0
  1283. data/spec/fixtures/files/certs/ca.crt +27 -0
  1284. data/spec/fixtures/files/certs/client.crt +28 -0
  1285. data/spec/fixtures/files/certs/client.key +51 -0
  1286. data/spec/fixtures/files/config/.kube/config +16 -0
  1287. data/spec/fixtures/files/config/config +13 -0
  1288. data/spec/fixtures/files/config/config_2 +15 -0
  1289. data/spec/fixtures/files/config/empty +1 -0
  1290. data/spec/fixtures/files/tokens/token +1 -0
  1291. data/spec/fixtures/files/tokens/token2 +1 -0
  1292. data/spec/helpers/file_fixtures.rb +43 -0
  1293. data/spec/spec_helper.rb +113 -0
  1294. data/spec/utils_spec.rb +117 -0
  1295. data/spec/watch_spec.rb +92 -0
  1296. data/src/kubernetes/config/error.rb +19 -0
  1297. data/src/kubernetes/config/incluster_config.rb +100 -0
  1298. data/src/kubernetes/config/kube_config.rb +190 -0
  1299. data/src/kubernetes/loader.rb +57 -0
  1300. data/src/kubernetes/utils.rb +94 -0
  1301. data/src/kubernetes/watch.rb +60 -0
  1302. data/swagger.json +89546 -0
  1303. metadata +1387 -0
@@ -0,0 +1,2498 @@
1
+ # frozen_string_literal: true
2
+
3
+ # #Kubernetes
4
+ #
5
+ # No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6
+ #
7
+ # OpenAPI spec version: v1.13.4
8
+ #
9
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
10
+ # Swagger Codegen version: 2.2.3
11
+ #
12
+
13
+ require 'uri'
14
+
15
+ module Kubernetes
16
+ class RbacAuthorizationV1Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ #
24
+ # create a ClusterRole
25
+ # @param body
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
28
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
29
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
30
+ # @return [V1ClusterRole]
31
+ def create_cluster_role(body, opts = {})
32
+ data, _status_code, _headers = create_cluster_role_with_http_info(body, opts)
33
+ data
34
+ end
35
+
36
+ #
37
+ # create a ClusterRole
38
+ # @param body
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
41
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
42
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
43
+ # @return [Array<(V1ClusterRole, Fixnum, Hash)>] V1ClusterRole data, response status code and response headers
44
+ def create_cluster_role_with_http_info(body, opts = {})
45
+ if @api_client.config.debugging
46
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.create_cluster_role ...'
47
+ end
48
+ # verify the required parameter 'body' is set
49
+ if @api_client.config.client_side_validation && body.nil?
50
+ raise ArgumentError,
51
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.create_cluster_role"
52
+ end
53
+
54
+ # resource path
55
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles'
56
+
57
+ # query parameters
58
+ query_params = {}
59
+ unless opts[:include_uninitialized].nil?
60
+ query_params[:includeUninitialized] =
61
+ opts[:include_uninitialized]
62
+ end
63
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
64
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
65
+
66
+ # header parameters
67
+ header_params = {}
68
+ # HTTP header 'Accept' (if needed)
69
+ header_params['Accept'] =
70
+ @api_client.select_header_accept(['application/json', 'application/yaml',
71
+ 'application/vnd.kubernetes.protobuf'])
72
+ # HTTP header 'Content-Type'
73
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
74
+
75
+ # form parameters
76
+ form_params = {}
77
+
78
+ # http body (model)
79
+ post_body = @api_client.object_to_http_body(body)
80
+ auth_names = ['BearerToken']
81
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
82
+ header_params: header_params,
83
+ query_params: query_params,
84
+ form_params: form_params,
85
+ body: post_body,
86
+ auth_names: auth_names,
87
+ return_type: 'V1ClusterRole')
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#create_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ end
91
+ [data, status_code, headers]
92
+ end
93
+
94
+ #
95
+ # create a ClusterRoleBinding
96
+ # @param body
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
99
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
100
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
101
+ # @return [V1ClusterRoleBinding]
102
+ def create_cluster_role_binding(body, opts = {})
103
+ data, _status_code, _headers = create_cluster_role_binding_with_http_info(body, opts)
104
+ data
105
+ end
106
+
107
+ #
108
+ # create a ClusterRoleBinding
109
+ # @param body
110
+ # @param [Hash] opts the optional parameters
111
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
112
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
113
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
114
+ # @return [Array<(V1ClusterRoleBinding, Fixnum, Hash)>] V1ClusterRoleBinding data, response status code and response headers
115
+ def create_cluster_role_binding_with_http_info(body, opts = {})
116
+ if @api_client.config.debugging
117
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.create_cluster_role_binding ...'
118
+ end
119
+ # verify the required parameter 'body' is set
120
+ if @api_client.config.client_side_validation && body.nil?
121
+ raise ArgumentError,
122
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.create_cluster_role_binding"
123
+ end
124
+
125
+ # resource path
126
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings'
127
+
128
+ # query parameters
129
+ query_params = {}
130
+ unless opts[:include_uninitialized].nil?
131
+ query_params[:includeUninitialized] =
132
+ opts[:include_uninitialized]
133
+ end
134
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
135
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
136
+
137
+ # header parameters
138
+ header_params = {}
139
+ # HTTP header 'Accept' (if needed)
140
+ header_params['Accept'] =
141
+ @api_client.select_header_accept(['application/json', 'application/yaml',
142
+ 'application/vnd.kubernetes.protobuf'])
143
+ # HTTP header 'Content-Type'
144
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
145
+
146
+ # form parameters
147
+ form_params = {}
148
+
149
+ # http body (model)
150
+ post_body = @api_client.object_to_http_body(body)
151
+ auth_names = ['BearerToken']
152
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
153
+ header_params: header_params,
154
+ query_params: query_params,
155
+ form_params: form_params,
156
+ body: post_body,
157
+ auth_names: auth_names,
158
+ return_type: 'V1ClusterRoleBinding')
159
+ if @api_client.config.debugging
160
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#create_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
161
+ end
162
+ [data, status_code, headers]
163
+ end
164
+
165
+ #
166
+ # create a Role
167
+ # @param namespace object name and auth scope, such as for teams and projects
168
+ # @param body
169
+ # @param [Hash] opts the optional parameters
170
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
171
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
172
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
173
+ # @return [V1Role]
174
+ def create_namespaced_role(namespace, body, opts = {})
175
+ data, _status_code, _headers = create_namespaced_role_with_http_info(namespace, body, opts)
176
+ data
177
+ end
178
+
179
+ #
180
+ # create a Role
181
+ # @param namespace object name and auth scope, such as for teams and projects
182
+ # @param body
183
+ # @param [Hash] opts the optional parameters
184
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
185
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
186
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
187
+ # @return [Array<(V1Role, Fixnum, Hash)>] V1Role data, response status code and response headers
188
+ def create_namespaced_role_with_http_info(namespace, body, opts = {})
189
+ if @api_client.config.debugging
190
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.create_namespaced_role ...'
191
+ end
192
+ # verify the required parameter 'namespace' is set
193
+ if @api_client.config.client_side_validation && namespace.nil?
194
+ raise ArgumentError,
195
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.create_namespaced_role"
196
+ end
197
+ # verify the required parameter 'body' is set
198
+ if @api_client.config.client_side_validation && body.nil?
199
+ raise ArgumentError,
200
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.create_namespaced_role"
201
+ end
202
+
203
+ # resource path
204
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles'.sub(
205
+ '{namespace}', namespace.to_s
206
+ )
207
+
208
+ # query parameters
209
+ query_params = {}
210
+ unless opts[:include_uninitialized].nil?
211
+ query_params[:includeUninitialized] =
212
+ opts[:include_uninitialized]
213
+ end
214
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
215
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
216
+
217
+ # header parameters
218
+ header_params = {}
219
+ # HTTP header 'Accept' (if needed)
220
+ header_params['Accept'] =
221
+ @api_client.select_header_accept(['application/json', 'application/yaml',
222
+ 'application/vnd.kubernetes.protobuf'])
223
+ # HTTP header 'Content-Type'
224
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
225
+
226
+ # form parameters
227
+ form_params = {}
228
+
229
+ # http body (model)
230
+ post_body = @api_client.object_to_http_body(body)
231
+ auth_names = ['BearerToken']
232
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
233
+ header_params: header_params,
234
+ query_params: query_params,
235
+ form_params: form_params,
236
+ body: post_body,
237
+ auth_names: auth_names,
238
+ return_type: 'V1Role')
239
+ if @api_client.config.debugging
240
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#create_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
+ end
242
+ [data, status_code, headers]
243
+ end
244
+
245
+ #
246
+ # create a RoleBinding
247
+ # @param namespace object name and auth scope, such as for teams and projects
248
+ # @param body
249
+ # @param [Hash] opts the optional parameters
250
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
251
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
252
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
253
+ # @return [V1RoleBinding]
254
+ def create_namespaced_role_binding(namespace, body, opts = {})
255
+ data, _status_code, _headers = create_namespaced_role_binding_with_http_info(namespace, body,
256
+ opts)
257
+ data
258
+ end
259
+
260
+ #
261
+ # create a RoleBinding
262
+ # @param namespace object name and auth scope, such as for teams and projects
263
+ # @param body
264
+ # @param [Hash] opts the optional parameters
265
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
266
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
267
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
268
+ # @return [Array<(V1RoleBinding, Fixnum, Hash)>] V1RoleBinding data, response status code and response headers
269
+ def create_namespaced_role_binding_with_http_info(namespace, body, opts = {})
270
+ if @api_client.config.debugging
271
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.create_namespaced_role_binding ...'
272
+ end
273
+ # verify the required parameter 'namespace' is set
274
+ if @api_client.config.client_side_validation && namespace.nil?
275
+ raise ArgumentError,
276
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.create_namespaced_role_binding"
277
+ end
278
+ # verify the required parameter 'body' is set
279
+ if @api_client.config.client_side_validation && body.nil?
280
+ raise ArgumentError,
281
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.create_namespaced_role_binding"
282
+ end
283
+
284
+ # resource path
285
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings'.sub(
286
+ '{namespace}', namespace.to_s
287
+ )
288
+
289
+ # query parameters
290
+ query_params = {}
291
+ unless opts[:include_uninitialized].nil?
292
+ query_params[:includeUninitialized] =
293
+ opts[:include_uninitialized]
294
+ end
295
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
296
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
297
+
298
+ # header parameters
299
+ header_params = {}
300
+ # HTTP header 'Accept' (if needed)
301
+ header_params['Accept'] =
302
+ @api_client.select_header_accept(['application/json', 'application/yaml',
303
+ 'application/vnd.kubernetes.protobuf'])
304
+ # HTTP header 'Content-Type'
305
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
306
+
307
+ # form parameters
308
+ form_params = {}
309
+
310
+ # http body (model)
311
+ post_body = @api_client.object_to_http_body(body)
312
+ auth_names = ['BearerToken']
313
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
314
+ header_params: header_params,
315
+ query_params: query_params,
316
+ form_params: form_params,
317
+ body: post_body,
318
+ auth_names: auth_names,
319
+ return_type: 'V1RoleBinding')
320
+ if @api_client.config.debugging
321
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#create_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
322
+ end
323
+ [data, status_code, headers]
324
+ end
325
+
326
+ #
327
+ # delete a ClusterRole
328
+ # @param name name of the ClusterRole
329
+ # @param [Hash] opts the optional parameters
330
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
331
+ # @option opts [V1DeleteOptions] :body
332
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
333
+ # @option opts [Integer] :grace_period_seconds 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.
334
+ # @option opts [BOOLEAN] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
335
+ # @option opts [String] :propagation_policy 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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
336
+ # @return [V1Status]
337
+ def delete_cluster_role(name, opts = {})
338
+ data, _status_code, _headers = delete_cluster_role_with_http_info(name, opts)
339
+ data
340
+ end
341
+
342
+ #
343
+ # delete a ClusterRole
344
+ # @param name name of the ClusterRole
345
+ # @param [Hash] opts the optional parameters
346
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
347
+ # @option opts [V1DeleteOptions] :body
348
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
349
+ # @option opts [Integer] :grace_period_seconds 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.
350
+ # @option opts [BOOLEAN] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
351
+ # @option opts [String] :propagation_policy 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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
352
+ # @return [Array<(V1Status, Fixnum, Hash)>] V1Status data, response status code and response headers
353
+ def delete_cluster_role_with_http_info(name, opts = {})
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_cluster_role ...'
356
+ end
357
+ # verify the required parameter 'name' is set
358
+ if @api_client.config.client_side_validation && name.nil?
359
+ raise ArgumentError,
360
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.delete_cluster_role"
361
+ end
362
+
363
+ # resource path
364
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}'.sub(
365
+ '{name}', name.to_s
366
+ )
367
+
368
+ # query parameters
369
+ query_params = {}
370
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
371
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
372
+ unless opts[:grace_period_seconds].nil?
373
+ query_params[:gracePeriodSeconds] =
374
+ opts[:grace_period_seconds]
375
+ end
376
+ unless opts[:orphan_dependents].nil?
377
+ query_params[:orphanDependents] =
378
+ opts[:orphan_dependents]
379
+ end
380
+ unless opts[:propagation_policy].nil?
381
+ query_params[:propagationPolicy] =
382
+ opts[:propagation_policy]
383
+ end
384
+
385
+ # header parameters
386
+ header_params = {}
387
+ # HTTP header 'Accept' (if needed)
388
+ header_params['Accept'] =
389
+ @api_client.select_header_accept(['application/json', 'application/yaml',
390
+ 'application/vnd.kubernetes.protobuf'])
391
+ # HTTP header 'Content-Type'
392
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
393
+
394
+ # form parameters
395
+ form_params = {}
396
+
397
+ # http body (model)
398
+ post_body = @api_client.object_to_http_body(opts[:body])
399
+ auth_names = ['BearerToken']
400
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
401
+ header_params: header_params,
402
+ query_params: query_params,
403
+ form_params: form_params,
404
+ body: post_body,
405
+ auth_names: auth_names,
406
+ return_type: 'V1Status')
407
+ if @api_client.config.debugging
408
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#delete_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
409
+ end
410
+ [data, status_code, headers]
411
+ end
412
+
413
+ #
414
+ # delete a ClusterRoleBinding
415
+ # @param name name of the ClusterRoleBinding
416
+ # @param [Hash] opts the optional parameters
417
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
418
+ # @option opts [V1DeleteOptions] :body
419
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
420
+ # @option opts [Integer] :grace_period_seconds 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.
421
+ # @option opts [BOOLEAN] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
422
+ # @option opts [String] :propagation_policy 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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
423
+ # @return [V1Status]
424
+ def delete_cluster_role_binding(name, opts = {})
425
+ data, _status_code, _headers = delete_cluster_role_binding_with_http_info(name, opts)
426
+ data
427
+ end
428
+
429
+ #
430
+ # delete a ClusterRoleBinding
431
+ # @param name name of the ClusterRoleBinding
432
+ # @param [Hash] opts the optional parameters
433
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
434
+ # @option opts [V1DeleteOptions] :body
435
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
436
+ # @option opts [Integer] :grace_period_seconds 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.
437
+ # @option opts [BOOLEAN] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
438
+ # @option opts [String] :propagation_policy 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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
439
+ # @return [Array<(V1Status, Fixnum, Hash)>] V1Status data, response status code and response headers
440
+ def delete_cluster_role_binding_with_http_info(name, opts = {})
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_cluster_role_binding ...'
443
+ end
444
+ # verify the required parameter 'name' is set
445
+ if @api_client.config.client_side_validation && name.nil?
446
+ raise ArgumentError,
447
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.delete_cluster_role_binding"
448
+ end
449
+
450
+ # resource path
451
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}'.sub(
452
+ '{name}', name.to_s
453
+ )
454
+
455
+ # query parameters
456
+ query_params = {}
457
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
458
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
459
+ unless opts[:grace_period_seconds].nil?
460
+ query_params[:gracePeriodSeconds] =
461
+ opts[:grace_period_seconds]
462
+ end
463
+ unless opts[:orphan_dependents].nil?
464
+ query_params[:orphanDependents] =
465
+ opts[:orphan_dependents]
466
+ end
467
+ unless opts[:propagation_policy].nil?
468
+ query_params[:propagationPolicy] =
469
+ opts[:propagation_policy]
470
+ end
471
+
472
+ # header parameters
473
+ header_params = {}
474
+ # HTTP header 'Accept' (if needed)
475
+ header_params['Accept'] =
476
+ @api_client.select_header_accept(['application/json', 'application/yaml',
477
+ 'application/vnd.kubernetes.protobuf'])
478
+ # HTTP header 'Content-Type'
479
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
480
+
481
+ # form parameters
482
+ form_params = {}
483
+
484
+ # http body (model)
485
+ post_body = @api_client.object_to_http_body(opts[:body])
486
+ auth_names = ['BearerToken']
487
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
488
+ header_params: header_params,
489
+ query_params: query_params,
490
+ form_params: form_params,
491
+ body: post_body,
492
+ auth_names: auth_names,
493
+ return_type: 'V1Status')
494
+ if @api_client.config.debugging
495
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#delete_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
496
+ end
497
+ [data, status_code, headers]
498
+ end
499
+
500
+ #
501
+ # delete collection of ClusterRole
502
+ # @param [Hash] opts the optional parameters
503
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
504
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
505
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
506
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
507
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
508
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
509
+ # @option opts [String] :resource_version 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&#39;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.
510
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
511
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
512
+ # @return [V1Status]
513
+ def delete_collection_cluster_role(opts = {})
514
+ data, _status_code, _headers = delete_collection_cluster_role_with_http_info(opts)
515
+ data
516
+ end
517
+
518
+ #
519
+ # delete collection of ClusterRole
520
+ # @param [Hash] opts the optional parameters
521
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
522
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
523
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
524
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
525
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
526
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
527
+ # @option opts [String] :resource_version 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&#39;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.
528
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
529
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
530
+ # @return [Array<(V1Status, Fixnum, Hash)>] V1Status data, response status code and response headers
531
+ def delete_collection_cluster_role_with_http_info(opts = {})
532
+ if @api_client.config.debugging
533
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_collection_cluster_role ...'
534
+ end
535
+ # resource path
536
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles'
537
+
538
+ # query parameters
539
+ query_params = {}
540
+ unless opts[:include_uninitialized].nil?
541
+ query_params[:includeUninitialized] =
542
+ opts[:include_uninitialized]
543
+ end
544
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
545
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
546
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
547
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
548
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
549
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
550
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
551
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
552
+
553
+ # header parameters
554
+ header_params = {}
555
+ # HTTP header 'Accept' (if needed)
556
+ header_params['Accept'] =
557
+ @api_client.select_header_accept(['application/json', 'application/yaml',
558
+ 'application/vnd.kubernetes.protobuf'])
559
+ # HTTP header 'Content-Type'
560
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
561
+
562
+ # form parameters
563
+ form_params = {}
564
+
565
+ # http body (model)
566
+ post_body = nil
567
+ auth_names = ['BearerToken']
568
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
569
+ header_params: header_params,
570
+ query_params: query_params,
571
+ form_params: form_params,
572
+ body: post_body,
573
+ auth_names: auth_names,
574
+ return_type: 'V1Status')
575
+ if @api_client.config.debugging
576
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#delete_collection_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
577
+ end
578
+ [data, status_code, headers]
579
+ end
580
+
581
+ #
582
+ # delete collection of ClusterRoleBinding
583
+ # @param [Hash] opts the optional parameters
584
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
585
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
586
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
587
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
588
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
589
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
590
+ # @option opts [String] :resource_version 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&#39;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.
591
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
592
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
593
+ # @return [V1Status]
594
+ def delete_collection_cluster_role_binding(opts = {})
595
+ data, _status_code, _headers = delete_collection_cluster_role_binding_with_http_info(opts)
596
+ data
597
+ end
598
+
599
+ #
600
+ # delete collection of ClusterRoleBinding
601
+ # @param [Hash] opts the optional parameters
602
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
603
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
604
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
605
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
606
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
607
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
608
+ # @option opts [String] :resource_version 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&#39;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.
609
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
610
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
611
+ # @return [Array<(V1Status, Fixnum, Hash)>] V1Status data, response status code and response headers
612
+ def delete_collection_cluster_role_binding_with_http_info(opts = {})
613
+ if @api_client.config.debugging
614
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_collection_cluster_role_binding ...'
615
+ end
616
+ # resource path
617
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings'
618
+
619
+ # query parameters
620
+ query_params = {}
621
+ unless opts[:include_uninitialized].nil?
622
+ query_params[:includeUninitialized] =
623
+ opts[:include_uninitialized]
624
+ end
625
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
626
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
627
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
628
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
629
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
630
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
631
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
632
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
633
+
634
+ # header parameters
635
+ header_params = {}
636
+ # HTTP header 'Accept' (if needed)
637
+ header_params['Accept'] =
638
+ @api_client.select_header_accept(['application/json', 'application/yaml',
639
+ 'application/vnd.kubernetes.protobuf'])
640
+ # HTTP header 'Content-Type'
641
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
642
+
643
+ # form parameters
644
+ form_params = {}
645
+
646
+ # http body (model)
647
+ post_body = nil
648
+ auth_names = ['BearerToken']
649
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
650
+ header_params: header_params,
651
+ query_params: query_params,
652
+ form_params: form_params,
653
+ body: post_body,
654
+ auth_names: auth_names,
655
+ return_type: 'V1Status')
656
+ if @api_client.config.debugging
657
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#delete_collection_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
658
+ end
659
+ [data, status_code, headers]
660
+ end
661
+
662
+ #
663
+ # delete collection of Role
664
+ # @param namespace object name and auth scope, such as for teams and projects
665
+ # @param [Hash] opts the optional parameters
666
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
667
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
668
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
669
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
670
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
671
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
672
+ # @option opts [String] :resource_version 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&#39;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.
673
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
674
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
675
+ # @return [V1Status]
676
+ def delete_collection_namespaced_role(namespace, opts = {})
677
+ data, _status_code, _headers = delete_collection_namespaced_role_with_http_info(namespace,
678
+ opts)
679
+ data
680
+ end
681
+
682
+ #
683
+ # delete collection of Role
684
+ # @param namespace object name and auth scope, such as for teams and projects
685
+ # @param [Hash] opts the optional parameters
686
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
687
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
688
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
689
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
690
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
691
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
692
+ # @option opts [String] :resource_version 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&#39;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.
693
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
694
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
695
+ # @return [Array<(V1Status, Fixnum, Hash)>] V1Status data, response status code and response headers
696
+ def delete_collection_namespaced_role_with_http_info(namespace, opts = {})
697
+ if @api_client.config.debugging
698
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_collection_namespaced_role ...'
699
+ end
700
+ # verify the required parameter 'namespace' is set
701
+ if @api_client.config.client_side_validation && namespace.nil?
702
+ raise ArgumentError,
703
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.delete_collection_namespaced_role"
704
+ end
705
+
706
+ # resource path
707
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles'.sub(
708
+ '{namespace}', namespace.to_s
709
+ )
710
+
711
+ # query parameters
712
+ query_params = {}
713
+ unless opts[:include_uninitialized].nil?
714
+ query_params[:includeUninitialized] =
715
+ opts[:include_uninitialized]
716
+ end
717
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
718
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
719
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
720
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
721
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
722
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
723
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
724
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
725
+
726
+ # header parameters
727
+ header_params = {}
728
+ # HTTP header 'Accept' (if needed)
729
+ header_params['Accept'] =
730
+ @api_client.select_header_accept(['application/json', 'application/yaml',
731
+ 'application/vnd.kubernetes.protobuf'])
732
+ # HTTP header 'Content-Type'
733
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
734
+
735
+ # form parameters
736
+ form_params = {}
737
+
738
+ # http body (model)
739
+ post_body = nil
740
+ auth_names = ['BearerToken']
741
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
742
+ header_params: header_params,
743
+ query_params: query_params,
744
+ form_params: form_params,
745
+ body: post_body,
746
+ auth_names: auth_names,
747
+ return_type: 'V1Status')
748
+ if @api_client.config.debugging
749
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#delete_collection_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
750
+ end
751
+ [data, status_code, headers]
752
+ end
753
+
754
+ #
755
+ # delete collection of RoleBinding
756
+ # @param namespace object name and auth scope, such as for teams and projects
757
+ # @param [Hash] opts the optional parameters
758
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
759
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
760
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
761
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
762
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
763
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
764
+ # @option opts [String] :resource_version 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&#39;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.
765
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
766
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
767
+ # @return [V1Status]
768
+ def delete_collection_namespaced_role_binding(namespace, opts = {})
769
+ data, _status_code, _headers = delete_collection_namespaced_role_binding_with_http_info(
770
+ namespace, opts
771
+ )
772
+ data
773
+ end
774
+
775
+ #
776
+ # delete collection of RoleBinding
777
+ # @param namespace object name and auth scope, such as for teams and projects
778
+ # @param [Hash] opts the optional parameters
779
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
780
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
781
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
782
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
783
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
784
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
785
+ # @option opts [String] :resource_version 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&#39;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.
786
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
787
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
788
+ # @return [Array<(V1Status, Fixnum, Hash)>] V1Status data, response status code and response headers
789
+ def delete_collection_namespaced_role_binding_with_http_info(namespace, opts = {})
790
+ if @api_client.config.debugging
791
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_collection_namespaced_role_binding ...'
792
+ end
793
+ # verify the required parameter 'namespace' is set
794
+ if @api_client.config.client_side_validation && namespace.nil?
795
+ raise ArgumentError,
796
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.delete_collection_namespaced_role_binding"
797
+ end
798
+
799
+ # resource path
800
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings'.sub(
801
+ '{namespace}', namespace.to_s
802
+ )
803
+
804
+ # query parameters
805
+ query_params = {}
806
+ unless opts[:include_uninitialized].nil?
807
+ query_params[:includeUninitialized] =
808
+ opts[:include_uninitialized]
809
+ end
810
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
811
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
812
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
813
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
814
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
815
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
816
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
817
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
818
+
819
+ # header parameters
820
+ header_params = {}
821
+ # HTTP header 'Accept' (if needed)
822
+ header_params['Accept'] =
823
+ @api_client.select_header_accept(['application/json', 'application/yaml',
824
+ 'application/vnd.kubernetes.protobuf'])
825
+ # HTTP header 'Content-Type'
826
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
827
+
828
+ # form parameters
829
+ form_params = {}
830
+
831
+ # http body (model)
832
+ post_body = nil
833
+ auth_names = ['BearerToken']
834
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
835
+ header_params: header_params,
836
+ query_params: query_params,
837
+ form_params: form_params,
838
+ body: post_body,
839
+ auth_names: auth_names,
840
+ return_type: 'V1Status')
841
+ if @api_client.config.debugging
842
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#delete_collection_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
843
+ end
844
+ [data, status_code, headers]
845
+ end
846
+
847
+ #
848
+ # delete a Role
849
+ # @param name name of the Role
850
+ # @param namespace object name and auth scope, such as for teams and projects
851
+ # @param [Hash] opts the optional parameters
852
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
853
+ # @option opts [V1DeleteOptions] :body
854
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
855
+ # @option opts [Integer] :grace_period_seconds 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.
856
+ # @option opts [BOOLEAN] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
857
+ # @option opts [String] :propagation_policy 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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
858
+ # @return [V1Status]
859
+ def delete_namespaced_role(name, namespace, opts = {})
860
+ data, _status_code, _headers = delete_namespaced_role_with_http_info(name, namespace, opts)
861
+ data
862
+ end
863
+
864
+ #
865
+ # delete a Role
866
+ # @param name name of the Role
867
+ # @param namespace object name and auth scope, such as for teams and projects
868
+ # @param [Hash] opts the optional parameters
869
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
870
+ # @option opts [V1DeleteOptions] :body
871
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
872
+ # @option opts [Integer] :grace_period_seconds 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.
873
+ # @option opts [BOOLEAN] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
874
+ # @option opts [String] :propagation_policy 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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
875
+ # @return [Array<(V1Status, Fixnum, Hash)>] V1Status data, response status code and response headers
876
+ def delete_namespaced_role_with_http_info(name, namespace, opts = {})
877
+ if @api_client.config.debugging
878
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_namespaced_role ...'
879
+ end
880
+ # verify the required parameter 'name' is set
881
+ if @api_client.config.client_side_validation && name.nil?
882
+ raise ArgumentError,
883
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.delete_namespaced_role"
884
+ end
885
+ # verify the required parameter 'namespace' is set
886
+ if @api_client.config.client_side_validation && namespace.nil?
887
+ raise ArgumentError,
888
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.delete_namespaced_role"
889
+ end
890
+
891
+ # resource path
892
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}'.sub('{name}', name.to_s).sub(
893
+ '{namespace}', namespace.to_s
894
+ )
895
+
896
+ # query parameters
897
+ query_params = {}
898
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
899
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
900
+ unless opts[:grace_period_seconds].nil?
901
+ query_params[:gracePeriodSeconds] =
902
+ opts[:grace_period_seconds]
903
+ end
904
+ unless opts[:orphan_dependents].nil?
905
+ query_params[:orphanDependents] =
906
+ opts[:orphan_dependents]
907
+ end
908
+ unless opts[:propagation_policy].nil?
909
+ query_params[:propagationPolicy] =
910
+ opts[:propagation_policy]
911
+ end
912
+
913
+ # header parameters
914
+ header_params = {}
915
+ # HTTP header 'Accept' (if needed)
916
+ header_params['Accept'] =
917
+ @api_client.select_header_accept(['application/json', 'application/yaml',
918
+ 'application/vnd.kubernetes.protobuf'])
919
+ # HTTP header 'Content-Type'
920
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
921
+
922
+ # form parameters
923
+ form_params = {}
924
+
925
+ # http body (model)
926
+ post_body = @api_client.object_to_http_body(opts[:body])
927
+ auth_names = ['BearerToken']
928
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
929
+ header_params: header_params,
930
+ query_params: query_params,
931
+ form_params: form_params,
932
+ body: post_body,
933
+ auth_names: auth_names,
934
+ return_type: 'V1Status')
935
+ if @api_client.config.debugging
936
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#delete_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
937
+ end
938
+ [data, status_code, headers]
939
+ end
940
+
941
+ #
942
+ # delete a RoleBinding
943
+ # @param name name of the RoleBinding
944
+ # @param namespace object name and auth scope, such as for teams and projects
945
+ # @param [Hash] opts the optional parameters
946
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
947
+ # @option opts [V1DeleteOptions] :body
948
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
949
+ # @option opts [Integer] :grace_period_seconds 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.
950
+ # @option opts [BOOLEAN] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
951
+ # @option opts [String] :propagation_policy 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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
952
+ # @return [V1Status]
953
+ def delete_namespaced_role_binding(name, namespace, opts = {})
954
+ data, _status_code, _headers = delete_namespaced_role_binding_with_http_info(name, namespace,
955
+ opts)
956
+ data
957
+ end
958
+
959
+ #
960
+ # delete a RoleBinding
961
+ # @param name name of the RoleBinding
962
+ # @param namespace object name and auth scope, such as for teams and projects
963
+ # @param [Hash] opts the optional parameters
964
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
965
+ # @option opts [V1DeleteOptions] :body
966
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
967
+ # @option opts [Integer] :grace_period_seconds 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.
968
+ # @option opts [BOOLEAN] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
969
+ # @option opts [String] :propagation_policy 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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
970
+ # @return [Array<(V1Status, Fixnum, Hash)>] V1Status data, response status code and response headers
971
+ def delete_namespaced_role_binding_with_http_info(name, namespace, opts = {})
972
+ if @api_client.config.debugging
973
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_namespaced_role_binding ...'
974
+ end
975
+ # verify the required parameter 'name' is set
976
+ if @api_client.config.client_side_validation && name.nil?
977
+ raise ArgumentError,
978
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.delete_namespaced_role_binding"
979
+ end
980
+ # verify the required parameter 'namespace' is set
981
+ if @api_client.config.client_side_validation && namespace.nil?
982
+ raise ArgumentError,
983
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.delete_namespaced_role_binding"
984
+ end
985
+
986
+ # resource path
987
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}'.sub('{name}', name.to_s).sub(
988
+ '{namespace}', namespace.to_s
989
+ )
990
+
991
+ # query parameters
992
+ query_params = {}
993
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
994
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
995
+ unless opts[:grace_period_seconds].nil?
996
+ query_params[:gracePeriodSeconds] =
997
+ opts[:grace_period_seconds]
998
+ end
999
+ unless opts[:orphan_dependents].nil?
1000
+ query_params[:orphanDependents] =
1001
+ opts[:orphan_dependents]
1002
+ end
1003
+ unless opts[:propagation_policy].nil?
1004
+ query_params[:propagationPolicy] =
1005
+ opts[:propagation_policy]
1006
+ end
1007
+
1008
+ # header parameters
1009
+ header_params = {}
1010
+ # HTTP header 'Accept' (if needed)
1011
+ header_params['Accept'] =
1012
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1013
+ 'application/vnd.kubernetes.protobuf'])
1014
+ # HTTP header 'Content-Type'
1015
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
1016
+
1017
+ # form parameters
1018
+ form_params = {}
1019
+
1020
+ # http body (model)
1021
+ post_body = @api_client.object_to_http_body(opts[:body])
1022
+ auth_names = ['BearerToken']
1023
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1024
+ header_params: header_params,
1025
+ query_params: query_params,
1026
+ form_params: form_params,
1027
+ body: post_body,
1028
+ auth_names: auth_names,
1029
+ return_type: 'V1Status')
1030
+ if @api_client.config.debugging
1031
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#delete_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1032
+ end
1033
+ [data, status_code, headers]
1034
+ end
1035
+
1036
+ #
1037
+ # get available resources
1038
+ # @param [Hash] opts the optional parameters
1039
+ # @return [V1APIResourceList]
1040
+ def get_api_resources(opts = {})
1041
+ data, _status_code, _headers = get_api_resources_with_http_info(opts)
1042
+ data
1043
+ end
1044
+
1045
+ #
1046
+ # get available resources
1047
+ # @param [Hash] opts the optional parameters
1048
+ # @return [Array<(V1APIResourceList, Fixnum, Hash)>] V1APIResourceList data, response status code and response headers
1049
+ def get_api_resources_with_http_info(_opts = {})
1050
+ if @api_client.config.debugging
1051
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.get_api_resources ...'
1052
+ end
1053
+ # resource path
1054
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/'
1055
+
1056
+ # query parameters
1057
+ query_params = {}
1058
+
1059
+ # header parameters
1060
+ header_params = {}
1061
+ # HTTP header 'Accept' (if needed)
1062
+ header_params['Accept'] =
1063
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1064
+ 'application/vnd.kubernetes.protobuf'])
1065
+ # HTTP header 'Content-Type'
1066
+ header_params['Content-Type'] =
1067
+ @api_client.select_header_content_type(['application/json', 'application/yaml',
1068
+ 'application/vnd.kubernetes.protobuf'])
1069
+
1070
+ # form parameters
1071
+ form_params = {}
1072
+
1073
+ # http body (model)
1074
+ post_body = nil
1075
+ auth_names = ['BearerToken']
1076
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1077
+ header_params: header_params,
1078
+ query_params: query_params,
1079
+ form_params: form_params,
1080
+ body: post_body,
1081
+ auth_names: auth_names,
1082
+ return_type: 'V1APIResourceList')
1083
+ if @api_client.config.debugging
1084
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#get_api_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1085
+ end
1086
+ [data, status_code, headers]
1087
+ end
1088
+
1089
+ #
1090
+ # list or watch objects of kind ClusterRole
1091
+ # @param [Hash] opts the optional parameters
1092
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1093
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1094
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1095
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1096
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1097
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1098
+ # @option opts [String] :resource_version 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&#39;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.
1099
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1100
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1101
+ # @return [V1ClusterRoleList]
1102
+ def list_cluster_role(opts = {})
1103
+ data, _status_code, _headers = list_cluster_role_with_http_info(opts)
1104
+ data
1105
+ end
1106
+
1107
+ #
1108
+ # list or watch objects of kind ClusterRole
1109
+ # @param [Hash] opts the optional parameters
1110
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1111
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1112
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1113
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1114
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1115
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1116
+ # @option opts [String] :resource_version 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&#39;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.
1117
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1118
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1119
+ # @return [Array<(V1ClusterRoleList, Fixnum, Hash)>] V1ClusterRoleList data, response status code and response headers
1120
+ def list_cluster_role_with_http_info(opts = {})
1121
+ if @api_client.config.debugging
1122
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_cluster_role ...'
1123
+ end
1124
+ # resource path
1125
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles'
1126
+
1127
+ # query parameters
1128
+ query_params = {}
1129
+ unless opts[:include_uninitialized].nil?
1130
+ query_params[:includeUninitialized] =
1131
+ opts[:include_uninitialized]
1132
+ end
1133
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1134
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1135
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1136
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1137
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1138
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1139
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1140
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1141
+
1142
+ # header parameters
1143
+ header_params = {}
1144
+ # HTTP header 'Accept' (if needed)
1145
+ header_params['Accept'] =
1146
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1147
+ 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1148
+ # HTTP header 'Content-Type'
1149
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
1150
+
1151
+ # form parameters
1152
+ form_params = {}
1153
+
1154
+ # http body (model)
1155
+ post_body = nil
1156
+ auth_names = ['BearerToken']
1157
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1158
+ header_params: header_params,
1159
+ query_params: query_params,
1160
+ form_params: form_params,
1161
+ body: post_body,
1162
+ auth_names: auth_names,
1163
+ return_type: 'V1ClusterRoleList')
1164
+ if @api_client.config.debugging
1165
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#list_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1166
+ end
1167
+ [data, status_code, headers]
1168
+ end
1169
+
1170
+ #
1171
+ # list or watch objects of kind ClusterRoleBinding
1172
+ # @param [Hash] opts the optional parameters
1173
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1174
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1175
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1176
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1177
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1178
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1179
+ # @option opts [String] :resource_version 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&#39;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.
1180
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1181
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1182
+ # @return [V1ClusterRoleBindingList]
1183
+ def list_cluster_role_binding(opts = {})
1184
+ data, _status_code, _headers = list_cluster_role_binding_with_http_info(opts)
1185
+ data
1186
+ end
1187
+
1188
+ #
1189
+ # list or watch objects of kind ClusterRoleBinding
1190
+ # @param [Hash] opts the optional parameters
1191
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1192
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1193
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1194
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1195
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1196
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1197
+ # @option opts [String] :resource_version 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&#39;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.
1198
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1199
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1200
+ # @return [Array<(V1ClusterRoleBindingList, Fixnum, Hash)>] V1ClusterRoleBindingList data, response status code and response headers
1201
+ def list_cluster_role_binding_with_http_info(opts = {})
1202
+ if @api_client.config.debugging
1203
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_cluster_role_binding ...'
1204
+ end
1205
+ # resource path
1206
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings'
1207
+
1208
+ # query parameters
1209
+ query_params = {}
1210
+ unless opts[:include_uninitialized].nil?
1211
+ query_params[:includeUninitialized] =
1212
+ opts[:include_uninitialized]
1213
+ end
1214
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1215
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1216
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1217
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1218
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1219
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1220
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1221
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1222
+
1223
+ # header parameters
1224
+ header_params = {}
1225
+ # HTTP header 'Accept' (if needed)
1226
+ header_params['Accept'] =
1227
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1228
+ 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1229
+ # HTTP header 'Content-Type'
1230
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
1231
+
1232
+ # form parameters
1233
+ form_params = {}
1234
+
1235
+ # http body (model)
1236
+ post_body = nil
1237
+ auth_names = ['BearerToken']
1238
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1239
+ header_params: header_params,
1240
+ query_params: query_params,
1241
+ form_params: form_params,
1242
+ body: post_body,
1243
+ auth_names: auth_names,
1244
+ return_type: 'V1ClusterRoleBindingList')
1245
+ if @api_client.config.debugging
1246
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#list_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1247
+ end
1248
+ [data, status_code, headers]
1249
+ end
1250
+
1251
+ #
1252
+ # list or watch objects of kind Role
1253
+ # @param namespace object name and auth scope, such as for teams and projects
1254
+ # @param [Hash] opts the optional parameters
1255
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1256
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1257
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1258
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1259
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1260
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1261
+ # @option opts [String] :resource_version 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&#39;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.
1262
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1263
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1264
+ # @return [V1RoleList]
1265
+ def list_namespaced_role(namespace, opts = {})
1266
+ data, _status_code, _headers = list_namespaced_role_with_http_info(namespace, opts)
1267
+ data
1268
+ end
1269
+
1270
+ #
1271
+ # list or watch objects of kind Role
1272
+ # @param namespace object name and auth scope, such as for teams and projects
1273
+ # @param [Hash] opts the optional parameters
1274
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1275
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1276
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1277
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1278
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1279
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1280
+ # @option opts [String] :resource_version 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&#39;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.
1281
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1282
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1283
+ # @return [Array<(V1RoleList, Fixnum, Hash)>] V1RoleList data, response status code and response headers
1284
+ def list_namespaced_role_with_http_info(namespace, opts = {})
1285
+ if @api_client.config.debugging
1286
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_namespaced_role ...'
1287
+ end
1288
+ # verify the required parameter 'namespace' is set
1289
+ if @api_client.config.client_side_validation && namespace.nil?
1290
+ raise ArgumentError,
1291
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.list_namespaced_role"
1292
+ end
1293
+
1294
+ # resource path
1295
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles'.sub(
1296
+ '{namespace}', namespace.to_s
1297
+ )
1298
+
1299
+ # query parameters
1300
+ query_params = {}
1301
+ unless opts[:include_uninitialized].nil?
1302
+ query_params[:includeUninitialized] =
1303
+ opts[:include_uninitialized]
1304
+ end
1305
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1306
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1307
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1308
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1309
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1310
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1311
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1312
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1313
+
1314
+ # header parameters
1315
+ header_params = {}
1316
+ # HTTP header 'Accept' (if needed)
1317
+ header_params['Accept'] =
1318
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1319
+ 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1320
+ # HTTP header 'Content-Type'
1321
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
1322
+
1323
+ # form parameters
1324
+ form_params = {}
1325
+
1326
+ # http body (model)
1327
+ post_body = nil
1328
+ auth_names = ['BearerToken']
1329
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1330
+ header_params: header_params,
1331
+ query_params: query_params,
1332
+ form_params: form_params,
1333
+ body: post_body,
1334
+ auth_names: auth_names,
1335
+ return_type: 'V1RoleList')
1336
+ if @api_client.config.debugging
1337
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#list_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1338
+ end
1339
+ [data, status_code, headers]
1340
+ end
1341
+
1342
+ #
1343
+ # list or watch objects of kind RoleBinding
1344
+ # @param namespace object name and auth scope, such as for teams and projects
1345
+ # @param [Hash] opts the optional parameters
1346
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1347
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1348
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1349
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1350
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1351
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1352
+ # @option opts [String] :resource_version 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&#39;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.
1353
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1354
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1355
+ # @return [V1RoleBindingList]
1356
+ def list_namespaced_role_binding(namespace, opts = {})
1357
+ data, _status_code, _headers = list_namespaced_role_binding_with_http_info(namespace, opts)
1358
+ data
1359
+ end
1360
+
1361
+ #
1362
+ # list or watch objects of kind RoleBinding
1363
+ # @param namespace object name and auth scope, such as for teams and projects
1364
+ # @param [Hash] opts the optional parameters
1365
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1366
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1367
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1368
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1369
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1370
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1371
+ # @option opts [String] :resource_version 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&#39;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.
1372
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1373
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1374
+ # @return [Array<(V1RoleBindingList, Fixnum, Hash)>] V1RoleBindingList data, response status code and response headers
1375
+ def list_namespaced_role_binding_with_http_info(namespace, opts = {})
1376
+ if @api_client.config.debugging
1377
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_namespaced_role_binding ...'
1378
+ end
1379
+ # verify the required parameter 'namespace' is set
1380
+ if @api_client.config.client_side_validation && namespace.nil?
1381
+ raise ArgumentError,
1382
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.list_namespaced_role_binding"
1383
+ end
1384
+
1385
+ # resource path
1386
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings'.sub(
1387
+ '{namespace}', namespace.to_s
1388
+ )
1389
+
1390
+ # query parameters
1391
+ query_params = {}
1392
+ unless opts[:include_uninitialized].nil?
1393
+ query_params[:includeUninitialized] =
1394
+ opts[:include_uninitialized]
1395
+ end
1396
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1397
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1398
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1399
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1400
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1401
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1402
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1403
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1404
+
1405
+ # header parameters
1406
+ header_params = {}
1407
+ # HTTP header 'Accept' (if needed)
1408
+ header_params['Accept'] =
1409
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1410
+ 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1411
+ # HTTP header 'Content-Type'
1412
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
1413
+
1414
+ # form parameters
1415
+ form_params = {}
1416
+
1417
+ # http body (model)
1418
+ post_body = nil
1419
+ auth_names = ['BearerToken']
1420
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1421
+ header_params: header_params,
1422
+ query_params: query_params,
1423
+ form_params: form_params,
1424
+ body: post_body,
1425
+ auth_names: auth_names,
1426
+ return_type: 'V1RoleBindingList')
1427
+ if @api_client.config.debugging
1428
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#list_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1429
+ end
1430
+ [data, status_code, headers]
1431
+ end
1432
+
1433
+ #
1434
+ # list or watch objects of kind RoleBinding
1435
+ # @param [Hash] opts the optional parameters
1436
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1437
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1438
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1439
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1440
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1441
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1442
+ # @option opts [String] :resource_version 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&#39;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.
1443
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1444
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1445
+ # @return [V1RoleBindingList]
1446
+ def list_role_binding_for_all_namespaces(opts = {})
1447
+ data, _status_code, _headers = list_role_binding_for_all_namespaces_with_http_info(opts)
1448
+ data
1449
+ end
1450
+
1451
+ #
1452
+ # list or watch objects of kind RoleBinding
1453
+ # @param [Hash] opts the optional parameters
1454
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1455
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1456
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1457
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1458
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1459
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1460
+ # @option opts [String] :resource_version 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&#39;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.
1461
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1462
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1463
+ # @return [Array<(V1RoleBindingList, Fixnum, Hash)>] V1RoleBindingList data, response status code and response headers
1464
+ def list_role_binding_for_all_namespaces_with_http_info(opts = {})
1465
+ if @api_client.config.debugging
1466
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_role_binding_for_all_namespaces ...'
1467
+ end
1468
+ # resource path
1469
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/rolebindings'
1470
+
1471
+ # query parameters
1472
+ query_params = {}
1473
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1474
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1475
+ unless opts[:include_uninitialized].nil?
1476
+ query_params[:includeUninitialized] =
1477
+ opts[:include_uninitialized]
1478
+ end
1479
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1480
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1481
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1482
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1483
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1484
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1485
+
1486
+ # header parameters
1487
+ header_params = {}
1488
+ # HTTP header 'Accept' (if needed)
1489
+ header_params['Accept'] =
1490
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1491
+ 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1492
+ # HTTP header 'Content-Type'
1493
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
1494
+
1495
+ # form parameters
1496
+ form_params = {}
1497
+
1498
+ # http body (model)
1499
+ post_body = nil
1500
+ auth_names = ['BearerToken']
1501
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1502
+ header_params: header_params,
1503
+ query_params: query_params,
1504
+ form_params: form_params,
1505
+ body: post_body,
1506
+ auth_names: auth_names,
1507
+ return_type: 'V1RoleBindingList')
1508
+ if @api_client.config.debugging
1509
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#list_role_binding_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1510
+ end
1511
+ [data, status_code, headers]
1512
+ end
1513
+
1514
+ #
1515
+ # list or watch objects of kind Role
1516
+ # @param [Hash] opts the optional parameters
1517
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1518
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1519
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1520
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1521
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1522
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1523
+ # @option opts [String] :resource_version 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&#39;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.
1524
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1525
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1526
+ # @return [V1RoleList]
1527
+ def list_role_for_all_namespaces(opts = {})
1528
+ data, _status_code, _headers = list_role_for_all_namespaces_with_http_info(opts)
1529
+ data
1530
+ end
1531
+
1532
+ #
1533
+ # list or watch objects of kind Role
1534
+ # @param [Hash] opts the optional parameters
1535
+ # @option opts [String] :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 together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. 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.
1536
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1537
+ # @option opts [BOOLEAN] :include_uninitialized If true, partially initialized resources are included in the response.
1538
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1539
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; 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.
1540
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1541
+ # @option opts [String] :resource_version 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&#39;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.
1542
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1543
+ # @option opts [BOOLEAN] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
1544
+ # @return [Array<(V1RoleList, Fixnum, Hash)>] V1RoleList data, response status code and response headers
1545
+ def list_role_for_all_namespaces_with_http_info(opts = {})
1546
+ if @api_client.config.debugging
1547
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_role_for_all_namespaces ...'
1548
+ end
1549
+ # resource path
1550
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/roles'
1551
+
1552
+ # query parameters
1553
+ query_params = {}
1554
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1555
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1556
+ unless opts[:include_uninitialized].nil?
1557
+ query_params[:includeUninitialized] =
1558
+ opts[:include_uninitialized]
1559
+ end
1560
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1561
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1562
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1563
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1564
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1565
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1566
+
1567
+ # header parameters
1568
+ header_params = {}
1569
+ # HTTP header 'Accept' (if needed)
1570
+ header_params['Accept'] =
1571
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1572
+ 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1573
+ # HTTP header 'Content-Type'
1574
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
1575
+
1576
+ # form parameters
1577
+ form_params = {}
1578
+
1579
+ # http body (model)
1580
+ post_body = nil
1581
+ auth_names = ['BearerToken']
1582
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1583
+ header_params: header_params,
1584
+ query_params: query_params,
1585
+ form_params: form_params,
1586
+ body: post_body,
1587
+ auth_names: auth_names,
1588
+ return_type: 'V1RoleList')
1589
+ if @api_client.config.debugging
1590
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#list_role_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1591
+ end
1592
+ [data, status_code, headers]
1593
+ end
1594
+
1595
+ #
1596
+ # partially update the specified ClusterRole
1597
+ # @param name name of the ClusterRole
1598
+ # @param body
1599
+ # @param [Hash] opts the optional parameters
1600
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1601
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1602
+ # @return [V1ClusterRole]
1603
+ def patch_cluster_role(name, body, opts = {})
1604
+ data, _status_code, _headers = patch_cluster_role_with_http_info(name, body, opts)
1605
+ data
1606
+ end
1607
+
1608
+ #
1609
+ # partially update the specified ClusterRole
1610
+ # @param name name of the ClusterRole
1611
+ # @param body
1612
+ # @param [Hash] opts the optional parameters
1613
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1614
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1615
+ # @return [Array<(V1ClusterRole, Fixnum, Hash)>] V1ClusterRole data, response status code and response headers
1616
+ def patch_cluster_role_with_http_info(name, body, opts = {})
1617
+ if @api_client.config.debugging
1618
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.patch_cluster_role ...'
1619
+ end
1620
+ # verify the required parameter 'name' is set
1621
+ if @api_client.config.client_side_validation && name.nil?
1622
+ raise ArgumentError,
1623
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.patch_cluster_role"
1624
+ end
1625
+ # verify the required parameter 'body' is set
1626
+ if @api_client.config.client_side_validation && body.nil?
1627
+ raise ArgumentError,
1628
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.patch_cluster_role"
1629
+ end
1630
+
1631
+ # resource path
1632
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}'.sub(
1633
+ '{name}', name.to_s
1634
+ )
1635
+
1636
+ # query parameters
1637
+ query_params = {}
1638
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1639
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1640
+
1641
+ # header parameters
1642
+ header_params = {}
1643
+ # HTTP header 'Accept' (if needed)
1644
+ header_params['Accept'] =
1645
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1646
+ 'application/vnd.kubernetes.protobuf'])
1647
+ # HTTP header 'Content-Type'
1648
+ header_params['Content-Type'] =
1649
+ @api_client.select_header_content_type(['application/json-patch+json',
1650
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json'])
1651
+
1652
+ # form parameters
1653
+ form_params = {}
1654
+
1655
+ # http body (model)
1656
+ post_body = @api_client.object_to_http_body(body)
1657
+ auth_names = ['BearerToken']
1658
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1659
+ header_params: header_params,
1660
+ query_params: query_params,
1661
+ form_params: form_params,
1662
+ body: post_body,
1663
+ auth_names: auth_names,
1664
+ return_type: 'V1ClusterRole')
1665
+ if @api_client.config.debugging
1666
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#patch_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1667
+ end
1668
+ [data, status_code, headers]
1669
+ end
1670
+
1671
+ #
1672
+ # partially update the specified ClusterRoleBinding
1673
+ # @param name name of the ClusterRoleBinding
1674
+ # @param body
1675
+ # @param [Hash] opts the optional parameters
1676
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1677
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1678
+ # @return [V1ClusterRoleBinding]
1679
+ def patch_cluster_role_binding(name, body, opts = {})
1680
+ data, _status_code, _headers = patch_cluster_role_binding_with_http_info(name, body, opts)
1681
+ data
1682
+ end
1683
+
1684
+ #
1685
+ # partially update the specified ClusterRoleBinding
1686
+ # @param name name of the ClusterRoleBinding
1687
+ # @param body
1688
+ # @param [Hash] opts the optional parameters
1689
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1690
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1691
+ # @return [Array<(V1ClusterRoleBinding, Fixnum, Hash)>] V1ClusterRoleBinding data, response status code and response headers
1692
+ def patch_cluster_role_binding_with_http_info(name, body, opts = {})
1693
+ if @api_client.config.debugging
1694
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.patch_cluster_role_binding ...'
1695
+ end
1696
+ # verify the required parameter 'name' is set
1697
+ if @api_client.config.client_side_validation && name.nil?
1698
+ raise ArgumentError,
1699
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.patch_cluster_role_binding"
1700
+ end
1701
+ # verify the required parameter 'body' is set
1702
+ if @api_client.config.client_side_validation && body.nil?
1703
+ raise ArgumentError,
1704
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.patch_cluster_role_binding"
1705
+ end
1706
+
1707
+ # resource path
1708
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}'.sub(
1709
+ '{name}', name.to_s
1710
+ )
1711
+
1712
+ # query parameters
1713
+ query_params = {}
1714
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1715
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1716
+
1717
+ # header parameters
1718
+ header_params = {}
1719
+ # HTTP header 'Accept' (if needed)
1720
+ header_params['Accept'] =
1721
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1722
+ 'application/vnd.kubernetes.protobuf'])
1723
+ # HTTP header 'Content-Type'
1724
+ header_params['Content-Type'] =
1725
+ @api_client.select_header_content_type(['application/json-patch+json',
1726
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json'])
1727
+
1728
+ # form parameters
1729
+ form_params = {}
1730
+
1731
+ # http body (model)
1732
+ post_body = @api_client.object_to_http_body(body)
1733
+ auth_names = ['BearerToken']
1734
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1735
+ header_params: header_params,
1736
+ query_params: query_params,
1737
+ form_params: form_params,
1738
+ body: post_body,
1739
+ auth_names: auth_names,
1740
+ return_type: 'V1ClusterRoleBinding')
1741
+ if @api_client.config.debugging
1742
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#patch_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1743
+ end
1744
+ [data, status_code, headers]
1745
+ end
1746
+
1747
+ #
1748
+ # partially update the specified Role
1749
+ # @param name name of the Role
1750
+ # @param namespace object name and auth scope, such as for teams and projects
1751
+ # @param body
1752
+ # @param [Hash] opts the optional parameters
1753
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1754
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1755
+ # @return [V1Role]
1756
+ def patch_namespaced_role(name, namespace, body, opts = {})
1757
+ data, _status_code, _headers = patch_namespaced_role_with_http_info(name, namespace, body,
1758
+ opts)
1759
+ data
1760
+ end
1761
+
1762
+ #
1763
+ # partially update the specified Role
1764
+ # @param name name of the Role
1765
+ # @param namespace object name and auth scope, such as for teams and projects
1766
+ # @param body
1767
+ # @param [Hash] opts the optional parameters
1768
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1769
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1770
+ # @return [Array<(V1Role, Fixnum, Hash)>] V1Role data, response status code and response headers
1771
+ def patch_namespaced_role_with_http_info(name, namespace, body, opts = {})
1772
+ if @api_client.config.debugging
1773
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.patch_namespaced_role ...'
1774
+ end
1775
+ # verify the required parameter 'name' is set
1776
+ if @api_client.config.client_side_validation && name.nil?
1777
+ raise ArgumentError,
1778
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.patch_namespaced_role"
1779
+ end
1780
+ # verify the required parameter 'namespace' is set
1781
+ if @api_client.config.client_side_validation && namespace.nil?
1782
+ raise ArgumentError,
1783
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.patch_namespaced_role"
1784
+ end
1785
+ # verify the required parameter 'body' is set
1786
+ if @api_client.config.client_side_validation && body.nil?
1787
+ raise ArgumentError,
1788
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.patch_namespaced_role"
1789
+ end
1790
+
1791
+ # resource path
1792
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}'.sub('{name}', name.to_s).sub(
1793
+ '{namespace}', namespace.to_s
1794
+ )
1795
+
1796
+ # query parameters
1797
+ query_params = {}
1798
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1799
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1800
+
1801
+ # header parameters
1802
+ header_params = {}
1803
+ # HTTP header 'Accept' (if needed)
1804
+ header_params['Accept'] =
1805
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1806
+ 'application/vnd.kubernetes.protobuf'])
1807
+ # HTTP header 'Content-Type'
1808
+ header_params['Content-Type'] =
1809
+ @api_client.select_header_content_type(['application/json-patch+json',
1810
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json'])
1811
+
1812
+ # form parameters
1813
+ form_params = {}
1814
+
1815
+ # http body (model)
1816
+ post_body = @api_client.object_to_http_body(body)
1817
+ auth_names = ['BearerToken']
1818
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1819
+ header_params: header_params,
1820
+ query_params: query_params,
1821
+ form_params: form_params,
1822
+ body: post_body,
1823
+ auth_names: auth_names,
1824
+ return_type: 'V1Role')
1825
+ if @api_client.config.debugging
1826
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#patch_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1827
+ end
1828
+ [data, status_code, headers]
1829
+ end
1830
+
1831
+ #
1832
+ # partially update the specified RoleBinding
1833
+ # @param name name of the RoleBinding
1834
+ # @param namespace object name and auth scope, such as for teams and projects
1835
+ # @param body
1836
+ # @param [Hash] opts the optional parameters
1837
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1838
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1839
+ # @return [V1RoleBinding]
1840
+ def patch_namespaced_role_binding(name, namespace, body, opts = {})
1841
+ data, _status_code, _headers = patch_namespaced_role_binding_with_http_info(name, namespace,
1842
+ body, opts)
1843
+ data
1844
+ end
1845
+
1846
+ #
1847
+ # partially update the specified RoleBinding
1848
+ # @param name name of the RoleBinding
1849
+ # @param namespace object name and auth scope, such as for teams and projects
1850
+ # @param body
1851
+ # @param [Hash] opts the optional parameters
1852
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1853
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1854
+ # @return [Array<(V1RoleBinding, Fixnum, Hash)>] V1RoleBinding data, response status code and response headers
1855
+ def patch_namespaced_role_binding_with_http_info(name, namespace, body, opts = {})
1856
+ if @api_client.config.debugging
1857
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.patch_namespaced_role_binding ...'
1858
+ end
1859
+ # verify the required parameter 'name' is set
1860
+ if @api_client.config.client_side_validation && name.nil?
1861
+ raise ArgumentError,
1862
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.patch_namespaced_role_binding"
1863
+ end
1864
+ # verify the required parameter 'namespace' is set
1865
+ if @api_client.config.client_side_validation && namespace.nil?
1866
+ raise ArgumentError,
1867
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.patch_namespaced_role_binding"
1868
+ end
1869
+ # verify the required parameter 'body' is set
1870
+ if @api_client.config.client_side_validation && body.nil?
1871
+ raise ArgumentError,
1872
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.patch_namespaced_role_binding"
1873
+ end
1874
+
1875
+ # resource path
1876
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}'.sub('{name}', name.to_s).sub(
1877
+ '{namespace}', namespace.to_s
1878
+ )
1879
+
1880
+ # query parameters
1881
+ query_params = {}
1882
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1883
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1884
+
1885
+ # header parameters
1886
+ header_params = {}
1887
+ # HTTP header 'Accept' (if needed)
1888
+ header_params['Accept'] =
1889
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1890
+ 'application/vnd.kubernetes.protobuf'])
1891
+ # HTTP header 'Content-Type'
1892
+ header_params['Content-Type'] =
1893
+ @api_client.select_header_content_type(['application/json-patch+json',
1894
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json'])
1895
+
1896
+ # form parameters
1897
+ form_params = {}
1898
+
1899
+ # http body (model)
1900
+ post_body = @api_client.object_to_http_body(body)
1901
+ auth_names = ['BearerToken']
1902
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1903
+ header_params: header_params,
1904
+ query_params: query_params,
1905
+ form_params: form_params,
1906
+ body: post_body,
1907
+ auth_names: auth_names,
1908
+ return_type: 'V1RoleBinding')
1909
+ if @api_client.config.debugging
1910
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#patch_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1911
+ end
1912
+ [data, status_code, headers]
1913
+ end
1914
+
1915
+ #
1916
+ # read the specified ClusterRole
1917
+ # @param name name of the ClusterRole
1918
+ # @param [Hash] opts the optional parameters
1919
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1920
+ # @return [V1ClusterRole]
1921
+ def read_cluster_role(name, opts = {})
1922
+ data, _status_code, _headers = read_cluster_role_with_http_info(name, opts)
1923
+ data
1924
+ end
1925
+
1926
+ #
1927
+ # read the specified ClusterRole
1928
+ # @param name name of the ClusterRole
1929
+ # @param [Hash] opts the optional parameters
1930
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1931
+ # @return [Array<(V1ClusterRole, Fixnum, Hash)>] V1ClusterRole data, response status code and response headers
1932
+ def read_cluster_role_with_http_info(name, opts = {})
1933
+ if @api_client.config.debugging
1934
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.read_cluster_role ...'
1935
+ end
1936
+ # verify the required parameter 'name' is set
1937
+ if @api_client.config.client_side_validation && name.nil?
1938
+ raise ArgumentError,
1939
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.read_cluster_role"
1940
+ end
1941
+
1942
+ # resource path
1943
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}'.sub(
1944
+ '{name}', name.to_s
1945
+ )
1946
+
1947
+ # query parameters
1948
+ query_params = {}
1949
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1950
+
1951
+ # header parameters
1952
+ header_params = {}
1953
+ # HTTP header 'Accept' (if needed)
1954
+ header_params['Accept'] =
1955
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1956
+ 'application/vnd.kubernetes.protobuf'])
1957
+ # HTTP header 'Content-Type'
1958
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
1959
+
1960
+ # form parameters
1961
+ form_params = {}
1962
+
1963
+ # http body (model)
1964
+ post_body = nil
1965
+ auth_names = ['BearerToken']
1966
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1967
+ header_params: header_params,
1968
+ query_params: query_params,
1969
+ form_params: form_params,
1970
+ body: post_body,
1971
+ auth_names: auth_names,
1972
+ return_type: 'V1ClusterRole')
1973
+ if @api_client.config.debugging
1974
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#read_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1975
+ end
1976
+ [data, status_code, headers]
1977
+ end
1978
+
1979
+ #
1980
+ # read the specified ClusterRoleBinding
1981
+ # @param name name of the ClusterRoleBinding
1982
+ # @param [Hash] opts the optional parameters
1983
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1984
+ # @return [V1ClusterRoleBinding]
1985
+ def read_cluster_role_binding(name, opts = {})
1986
+ data, _status_code, _headers = read_cluster_role_binding_with_http_info(name, opts)
1987
+ data
1988
+ end
1989
+
1990
+ #
1991
+ # read the specified ClusterRoleBinding
1992
+ # @param name name of the ClusterRoleBinding
1993
+ # @param [Hash] opts the optional parameters
1994
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1995
+ # @return [Array<(V1ClusterRoleBinding, Fixnum, Hash)>] V1ClusterRoleBinding data, response status code and response headers
1996
+ def read_cluster_role_binding_with_http_info(name, opts = {})
1997
+ if @api_client.config.debugging
1998
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.read_cluster_role_binding ...'
1999
+ end
2000
+ # verify the required parameter 'name' is set
2001
+ if @api_client.config.client_side_validation && name.nil?
2002
+ raise ArgumentError,
2003
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.read_cluster_role_binding"
2004
+ end
2005
+
2006
+ # resource path
2007
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}'.sub(
2008
+ '{name}', name.to_s
2009
+ )
2010
+
2011
+ # query parameters
2012
+ query_params = {}
2013
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2014
+
2015
+ # header parameters
2016
+ header_params = {}
2017
+ # HTTP header 'Accept' (if needed)
2018
+ header_params['Accept'] =
2019
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2020
+ 'application/vnd.kubernetes.protobuf'])
2021
+ # HTTP header 'Content-Type'
2022
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
2023
+
2024
+ # form parameters
2025
+ form_params = {}
2026
+
2027
+ # http body (model)
2028
+ post_body = nil
2029
+ auth_names = ['BearerToken']
2030
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2031
+ header_params: header_params,
2032
+ query_params: query_params,
2033
+ form_params: form_params,
2034
+ body: post_body,
2035
+ auth_names: auth_names,
2036
+ return_type: 'V1ClusterRoleBinding')
2037
+ if @api_client.config.debugging
2038
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#read_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2039
+ end
2040
+ [data, status_code, headers]
2041
+ end
2042
+
2043
+ #
2044
+ # read the specified Role
2045
+ # @param name name of the Role
2046
+ # @param namespace object name and auth scope, such as for teams and projects
2047
+ # @param [Hash] opts the optional parameters
2048
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2049
+ # @return [V1Role]
2050
+ def read_namespaced_role(name, namespace, opts = {})
2051
+ data, _status_code, _headers = read_namespaced_role_with_http_info(name, namespace, opts)
2052
+ data
2053
+ end
2054
+
2055
+ #
2056
+ # read the specified Role
2057
+ # @param name name of the Role
2058
+ # @param namespace object name and auth scope, such as for teams and projects
2059
+ # @param [Hash] opts the optional parameters
2060
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2061
+ # @return [Array<(V1Role, Fixnum, Hash)>] V1Role data, response status code and response headers
2062
+ def read_namespaced_role_with_http_info(name, namespace, opts = {})
2063
+ if @api_client.config.debugging
2064
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.read_namespaced_role ...'
2065
+ end
2066
+ # verify the required parameter 'name' is set
2067
+ if @api_client.config.client_side_validation && name.nil?
2068
+ raise ArgumentError,
2069
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.read_namespaced_role"
2070
+ end
2071
+ # verify the required parameter 'namespace' is set
2072
+ if @api_client.config.client_side_validation && namespace.nil?
2073
+ raise ArgumentError,
2074
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.read_namespaced_role"
2075
+ end
2076
+
2077
+ # resource path
2078
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}'.sub('{name}', name.to_s).sub(
2079
+ '{namespace}', namespace.to_s
2080
+ )
2081
+
2082
+ # query parameters
2083
+ query_params = {}
2084
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2085
+
2086
+ # header parameters
2087
+ header_params = {}
2088
+ # HTTP header 'Accept' (if needed)
2089
+ header_params['Accept'] =
2090
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2091
+ 'application/vnd.kubernetes.protobuf'])
2092
+ # HTTP header 'Content-Type'
2093
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
2094
+
2095
+ # form parameters
2096
+ form_params = {}
2097
+
2098
+ # http body (model)
2099
+ post_body = nil
2100
+ auth_names = ['BearerToken']
2101
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2102
+ header_params: header_params,
2103
+ query_params: query_params,
2104
+ form_params: form_params,
2105
+ body: post_body,
2106
+ auth_names: auth_names,
2107
+ return_type: 'V1Role')
2108
+ if @api_client.config.debugging
2109
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#read_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2110
+ end
2111
+ [data, status_code, headers]
2112
+ end
2113
+
2114
+ #
2115
+ # read the specified RoleBinding
2116
+ # @param name name of the RoleBinding
2117
+ # @param namespace object name and auth scope, such as for teams and projects
2118
+ # @param [Hash] opts the optional parameters
2119
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2120
+ # @return [V1RoleBinding]
2121
+ def read_namespaced_role_binding(name, namespace, opts = {})
2122
+ data, _status_code, _headers = read_namespaced_role_binding_with_http_info(name, namespace,
2123
+ opts)
2124
+ data
2125
+ end
2126
+
2127
+ #
2128
+ # read the specified RoleBinding
2129
+ # @param name name of the RoleBinding
2130
+ # @param namespace object name and auth scope, such as for teams and projects
2131
+ # @param [Hash] opts the optional parameters
2132
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2133
+ # @return [Array<(V1RoleBinding, Fixnum, Hash)>] V1RoleBinding data, response status code and response headers
2134
+ def read_namespaced_role_binding_with_http_info(name, namespace, opts = {})
2135
+ if @api_client.config.debugging
2136
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.read_namespaced_role_binding ...'
2137
+ end
2138
+ # verify the required parameter 'name' is set
2139
+ if @api_client.config.client_side_validation && name.nil?
2140
+ raise ArgumentError,
2141
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.read_namespaced_role_binding"
2142
+ end
2143
+ # verify the required parameter 'namespace' is set
2144
+ if @api_client.config.client_side_validation && namespace.nil?
2145
+ raise ArgumentError,
2146
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.read_namespaced_role_binding"
2147
+ end
2148
+
2149
+ # resource path
2150
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}'.sub('{name}', name.to_s).sub(
2151
+ '{namespace}', namespace.to_s
2152
+ )
2153
+
2154
+ # query parameters
2155
+ query_params = {}
2156
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2157
+
2158
+ # header parameters
2159
+ header_params = {}
2160
+ # HTTP header 'Accept' (if needed)
2161
+ header_params['Accept'] =
2162
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2163
+ 'application/vnd.kubernetes.protobuf'])
2164
+ # HTTP header 'Content-Type'
2165
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
2166
+
2167
+ # form parameters
2168
+ form_params = {}
2169
+
2170
+ # http body (model)
2171
+ post_body = nil
2172
+ auth_names = ['BearerToken']
2173
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2174
+ header_params: header_params,
2175
+ query_params: query_params,
2176
+ form_params: form_params,
2177
+ body: post_body,
2178
+ auth_names: auth_names,
2179
+ return_type: 'V1RoleBinding')
2180
+ if @api_client.config.debugging
2181
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#read_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2182
+ end
2183
+ [data, status_code, headers]
2184
+ end
2185
+
2186
+ #
2187
+ # replace the specified ClusterRole
2188
+ # @param name name of the ClusterRole
2189
+ # @param body
2190
+ # @param [Hash] opts the optional parameters
2191
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2192
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2193
+ # @return [V1ClusterRole]
2194
+ def replace_cluster_role(name, body, opts = {})
2195
+ data, _status_code, _headers = replace_cluster_role_with_http_info(name, body, opts)
2196
+ data
2197
+ end
2198
+
2199
+ #
2200
+ # replace the specified ClusterRole
2201
+ # @param name name of the ClusterRole
2202
+ # @param body
2203
+ # @param [Hash] opts the optional parameters
2204
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2205
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2206
+ # @return [Array<(V1ClusterRole, Fixnum, Hash)>] V1ClusterRole data, response status code and response headers
2207
+ def replace_cluster_role_with_http_info(name, body, opts = {})
2208
+ if @api_client.config.debugging
2209
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.replace_cluster_role ...'
2210
+ end
2211
+ # verify the required parameter 'name' is set
2212
+ if @api_client.config.client_side_validation && name.nil?
2213
+ raise ArgumentError,
2214
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.replace_cluster_role"
2215
+ end
2216
+ # verify the required parameter 'body' is set
2217
+ if @api_client.config.client_side_validation && body.nil?
2218
+ raise ArgumentError,
2219
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.replace_cluster_role"
2220
+ end
2221
+
2222
+ # resource path
2223
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}'.sub(
2224
+ '{name}', name.to_s
2225
+ )
2226
+
2227
+ # query parameters
2228
+ query_params = {}
2229
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2230
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
2231
+
2232
+ # header parameters
2233
+ header_params = {}
2234
+ # HTTP header 'Accept' (if needed)
2235
+ header_params['Accept'] =
2236
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2237
+ 'application/vnd.kubernetes.protobuf'])
2238
+ # HTTP header 'Content-Type'
2239
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
2240
+
2241
+ # form parameters
2242
+ form_params = {}
2243
+
2244
+ # http body (model)
2245
+ post_body = @api_client.object_to_http_body(body)
2246
+ auth_names = ['BearerToken']
2247
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2248
+ header_params: header_params,
2249
+ query_params: query_params,
2250
+ form_params: form_params,
2251
+ body: post_body,
2252
+ auth_names: auth_names,
2253
+ return_type: 'V1ClusterRole')
2254
+ if @api_client.config.debugging
2255
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#replace_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2256
+ end
2257
+ [data, status_code, headers]
2258
+ end
2259
+
2260
+ #
2261
+ # replace the specified ClusterRoleBinding
2262
+ # @param name name of the ClusterRoleBinding
2263
+ # @param body
2264
+ # @param [Hash] opts the optional parameters
2265
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2266
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2267
+ # @return [V1ClusterRoleBinding]
2268
+ def replace_cluster_role_binding(name, body, opts = {})
2269
+ data, _status_code, _headers = replace_cluster_role_binding_with_http_info(name, body, opts)
2270
+ data
2271
+ end
2272
+
2273
+ #
2274
+ # replace the specified ClusterRoleBinding
2275
+ # @param name name of the ClusterRoleBinding
2276
+ # @param body
2277
+ # @param [Hash] opts the optional parameters
2278
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2279
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2280
+ # @return [Array<(V1ClusterRoleBinding, Fixnum, Hash)>] V1ClusterRoleBinding data, response status code and response headers
2281
+ def replace_cluster_role_binding_with_http_info(name, body, opts = {})
2282
+ if @api_client.config.debugging
2283
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.replace_cluster_role_binding ...'
2284
+ end
2285
+ # verify the required parameter 'name' is set
2286
+ if @api_client.config.client_side_validation && name.nil?
2287
+ raise ArgumentError,
2288
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.replace_cluster_role_binding"
2289
+ end
2290
+ # verify the required parameter 'body' is set
2291
+ if @api_client.config.client_side_validation && body.nil?
2292
+ raise ArgumentError,
2293
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.replace_cluster_role_binding"
2294
+ end
2295
+
2296
+ # resource path
2297
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}'.sub(
2298
+ '{name}', name.to_s
2299
+ )
2300
+
2301
+ # query parameters
2302
+ query_params = {}
2303
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2304
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
2305
+
2306
+ # header parameters
2307
+ header_params = {}
2308
+ # HTTP header 'Accept' (if needed)
2309
+ header_params['Accept'] =
2310
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2311
+ 'application/vnd.kubernetes.protobuf'])
2312
+ # HTTP header 'Content-Type'
2313
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
2314
+
2315
+ # form parameters
2316
+ form_params = {}
2317
+
2318
+ # http body (model)
2319
+ post_body = @api_client.object_to_http_body(body)
2320
+ auth_names = ['BearerToken']
2321
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2322
+ header_params: header_params,
2323
+ query_params: query_params,
2324
+ form_params: form_params,
2325
+ body: post_body,
2326
+ auth_names: auth_names,
2327
+ return_type: 'V1ClusterRoleBinding')
2328
+ if @api_client.config.debugging
2329
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#replace_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2330
+ end
2331
+ [data, status_code, headers]
2332
+ end
2333
+
2334
+ #
2335
+ # replace the specified Role
2336
+ # @param name name of the Role
2337
+ # @param namespace object name and auth scope, such as for teams and projects
2338
+ # @param body
2339
+ # @param [Hash] opts the optional parameters
2340
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2341
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2342
+ # @return [V1Role]
2343
+ def replace_namespaced_role(name, namespace, body, opts = {})
2344
+ data, _status_code, _headers = replace_namespaced_role_with_http_info(name, namespace, body,
2345
+ opts)
2346
+ data
2347
+ end
2348
+
2349
+ #
2350
+ # replace the specified Role
2351
+ # @param name name of the Role
2352
+ # @param namespace object name and auth scope, such as for teams and projects
2353
+ # @param body
2354
+ # @param [Hash] opts the optional parameters
2355
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2356
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2357
+ # @return [Array<(V1Role, Fixnum, Hash)>] V1Role data, response status code and response headers
2358
+ def replace_namespaced_role_with_http_info(name, namespace, body, opts = {})
2359
+ if @api_client.config.debugging
2360
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.replace_namespaced_role ...'
2361
+ end
2362
+ # verify the required parameter 'name' is set
2363
+ if @api_client.config.client_side_validation && name.nil?
2364
+ raise ArgumentError,
2365
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.replace_namespaced_role"
2366
+ end
2367
+ # verify the required parameter 'namespace' is set
2368
+ if @api_client.config.client_side_validation && namespace.nil?
2369
+ raise ArgumentError,
2370
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.replace_namespaced_role"
2371
+ end
2372
+ # verify the required parameter 'body' is set
2373
+ if @api_client.config.client_side_validation && body.nil?
2374
+ raise ArgumentError,
2375
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.replace_namespaced_role"
2376
+ end
2377
+
2378
+ # resource path
2379
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}'.sub('{name}', name.to_s).sub(
2380
+ '{namespace}', namespace.to_s
2381
+ )
2382
+
2383
+ # query parameters
2384
+ query_params = {}
2385
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2386
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
2387
+
2388
+ # header parameters
2389
+ header_params = {}
2390
+ # HTTP header 'Accept' (if needed)
2391
+ header_params['Accept'] =
2392
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2393
+ 'application/vnd.kubernetes.protobuf'])
2394
+ # HTTP header 'Content-Type'
2395
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
2396
+
2397
+ # form parameters
2398
+ form_params = {}
2399
+
2400
+ # http body (model)
2401
+ post_body = @api_client.object_to_http_body(body)
2402
+ auth_names = ['BearerToken']
2403
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2404
+ header_params: header_params,
2405
+ query_params: query_params,
2406
+ form_params: form_params,
2407
+ body: post_body,
2408
+ auth_names: auth_names,
2409
+ return_type: 'V1Role')
2410
+ if @api_client.config.debugging
2411
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#replace_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2412
+ end
2413
+ [data, status_code, headers]
2414
+ end
2415
+
2416
+ #
2417
+ # replace the specified RoleBinding
2418
+ # @param name name of the RoleBinding
2419
+ # @param namespace object name and auth scope, such as for teams and projects
2420
+ # @param body
2421
+ # @param [Hash] opts the optional parameters
2422
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2423
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2424
+ # @return [V1RoleBinding]
2425
+ def replace_namespaced_role_binding(name, namespace, body, opts = {})
2426
+ data, _status_code, _headers = replace_namespaced_role_binding_with_http_info(name,
2427
+ namespace, body, opts)
2428
+ data
2429
+ end
2430
+
2431
+ #
2432
+ # replace the specified RoleBinding
2433
+ # @param name name of the RoleBinding
2434
+ # @param namespace object name and auth scope, such as for teams and projects
2435
+ # @param body
2436
+ # @param [Hash] opts the optional parameters
2437
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2438
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2439
+ # @return [Array<(V1RoleBinding, Fixnum, Hash)>] V1RoleBinding data, response status code and response headers
2440
+ def replace_namespaced_role_binding_with_http_info(name, namespace, body, opts = {})
2441
+ if @api_client.config.debugging
2442
+ @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.replace_namespaced_role_binding ...'
2443
+ end
2444
+ # verify the required parameter 'name' is set
2445
+ if @api_client.config.client_side_validation && name.nil?
2446
+ raise ArgumentError,
2447
+ "Missing the required parameter 'name' when calling RbacAuthorizationV1Api.replace_namespaced_role_binding"
2448
+ end
2449
+ # verify the required parameter 'namespace' is set
2450
+ if @api_client.config.client_side_validation && namespace.nil?
2451
+ raise ArgumentError,
2452
+ "Missing the required parameter 'namespace' when calling RbacAuthorizationV1Api.replace_namespaced_role_binding"
2453
+ end
2454
+ # verify the required parameter 'body' is set
2455
+ if @api_client.config.client_side_validation && body.nil?
2456
+ raise ArgumentError,
2457
+ "Missing the required parameter 'body' when calling RbacAuthorizationV1Api.replace_namespaced_role_binding"
2458
+ end
2459
+
2460
+ # resource path
2461
+ local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}'.sub('{name}', name.to_s).sub(
2462
+ '{namespace}', namespace.to_s
2463
+ )
2464
+
2465
+ # query parameters
2466
+ query_params = {}
2467
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2468
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
2469
+
2470
+ # header parameters
2471
+ header_params = {}
2472
+ # HTTP header 'Accept' (if needed)
2473
+ header_params['Accept'] =
2474
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2475
+ 'application/vnd.kubernetes.protobuf'])
2476
+ # HTTP header 'Content-Type'
2477
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
2478
+
2479
+ # form parameters
2480
+ form_params = {}
2481
+
2482
+ # http body (model)
2483
+ post_body = @api_client.object_to_http_body(body)
2484
+ auth_names = ['BearerToken']
2485
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2486
+ header_params: header_params,
2487
+ query_params: query_params,
2488
+ form_params: form_params,
2489
+ body: post_body,
2490
+ auth_names: auth_names,
2491
+ return_type: 'V1RoleBinding')
2492
+ if @api_client.config.debugging
2493
+ @api_client.config.logger.debug "API called: RbacAuthorizationV1Api#replace_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2494
+ end
2495
+ [data, status_code, headers]
2496
+ end
2497
+ end
2498
+ end