generate azure_mgmt_kubernetes_configuration:0.18.0
This commit is contained in:
Родитель
a6574cdc4d
Коммит
1af4e7f94c
|
@ -3,5 +3,5 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
module Azure
|
||||
VERSION = '0.69.1'
|
||||
VERSION = '0.70.0'
|
||||
end
|
||||
|
|
|
@ -1290,7 +1290,7 @@
|
|||
"azure_mgmt_kubernetes_configuration_2021_03_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9cee82c90c9c188dda3cf33a9816bdcdb395f00a/specification/kubernetesconfiguration/resource-manager/readme.md",
|
||||
"namespace": "Azure::KubernetesConfiguration::Mgmt::V2021_03_01",
|
||||
"tag": "package-2021-03-01"
|
||||
"tag": "package-2021-03"
|
||||
},
|
||||
"azure_mgmt_kubernetes_configuration_2019_11_01_preview": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/98127bcfd62a92618a159936e7f05edb84aa9240/specification/kubernetesconfiguration/resource-manager/readme.md",
|
||||
|
|
|
@ -125,7 +125,7 @@ module Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_kubernetes_configuration'
|
||||
sdk_information = "#{sdk_information}/0.17.1"
|
||||
sdk_information = "#{sdk_information}/0.18.0"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
require 'uri'
|
||||
require 'cgi'
|
||||
require 'date'
|
||||
require 'json'
|
||||
require 'base64'
|
||||
require 'erb'
|
||||
require 'securerandom'
|
||||
require 'time'
|
||||
require 'timeliness'
|
||||
require 'faraday'
|
||||
require 'faraday-cookie_jar'
|
||||
require 'concurrent'
|
||||
require 'ms_rest'
|
||||
require '2021-03-01/generated/azure_mgmt_kubernetes_configuration/module_definition'
|
||||
require 'ms_rest_azure'
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
autoload :SourceControlConfigurations, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/source_control_configurations.rb'
|
||||
autoload :Operations, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/operations.rb'
|
||||
autoload :SourceControlConfigurationClient, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/source_control_configuration_client.rb'
|
||||
|
||||
module Models
|
||||
autoload :SourceControlConfigurationList, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/source_control_configuration_list.rb'
|
||||
autoload :ResourceProviderOperationDisplay, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/resource_provider_operation_display.rb'
|
||||
autoload :ErrorDefinition, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/error_definition.rb'
|
||||
autoload :ResourceProviderOperation, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/resource_provider_operation.rb'
|
||||
autoload :ComplianceStatus, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/compliance_status.rb'
|
||||
autoload :ResourceProviderOperationList, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/resource_provider_operation_list.rb'
|
||||
autoload :SystemData, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/system_data.rb'
|
||||
autoload :HelmOperatorProperties, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/helm_operator_properties.rb'
|
||||
autoload :Result, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/result.rb'
|
||||
autoload :Resource, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/resource.rb'
|
||||
autoload :ErrorResponse, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/error_response.rb'
|
||||
autoload :SourceControlConfiguration, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/source_control_configuration.rb'
|
||||
autoload :TrackedResource, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/tracked_resource.rb'
|
||||
autoload :AzureEntityResource, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/azure_entity_resource.rb'
|
||||
autoload :ProxyResource, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/proxy_resource.rb'
|
||||
autoload :ComplianceStateType, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/compliance_state_type.rb'
|
||||
autoload :MessageLevelType, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/message_level_type.rb'
|
||||
autoload :OperatorType, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/operator_type.rb'
|
||||
autoload :OperatorScopeType, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/operator_scope_type.rb'
|
||||
autoload :ProvisioningStateType, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/provisioning_state_type.rb'
|
||||
autoload :CreatedByType, '2021-03-01/generated/azure_mgmt_kubernetes_configuration/models/created_by_type.rb'
|
||||
end
|
||||
end
|
|
@ -0,0 +1,77 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Entity Resource
|
||||
|
||||
# The resource model definition for an Azure Resource Manager resource with
|
||||
# an etag.
|
||||
#
|
||||
class AzureEntityResource < Resource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource Etag.
|
||||
attr_accessor :etag
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureEntityResource class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureEntityResource',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureEntityResource',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
etag: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'etag',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,19 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for ComplianceStateType
|
||||
#
|
||||
module ComplianceStateType
|
||||
Pending = "Pending"
|
||||
Compliant = "Compliant"
|
||||
Noncompliant = "Noncompliant"
|
||||
Installed = "Installed"
|
||||
Failed = "Failed"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,83 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Compliance Status details
|
||||
#
|
||||
class ComplianceStatus
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [ComplianceStateType] The compliance state of the
|
||||
# configuration. Possible values include: 'Pending', 'Compliant',
|
||||
# 'Noncompliant', 'Installed', 'Failed'
|
||||
attr_accessor :compliance_state
|
||||
|
||||
# @return [DateTime] Datetime the configuration was last applied.
|
||||
attr_accessor :last_config_applied
|
||||
|
||||
# @return [String] Message from when the configuration was applied.
|
||||
attr_accessor :message
|
||||
|
||||
# @return [MessageLevelType] Level of the message. Possible values
|
||||
# include: 'Error', 'Warning', 'Information'
|
||||
attr_accessor :message_level
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ComplianceStatus class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ComplianceStatus',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ComplianceStatus',
|
||||
model_properties: {
|
||||
compliance_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'complianceState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_config_applied: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastConfigApplied',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
message: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'message',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
message_level: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'messageLevel',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,18 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for CreatedByType
|
||||
#
|
||||
module CreatedByType
|
||||
User = "User"
|
||||
Application = "Application"
|
||||
ManagedIdentity = "ManagedIdentity"
|
||||
Key = "Key"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,58 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Error definition.
|
||||
#
|
||||
class ErrorDefinition
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Service specific error code which serves as the
|
||||
# substatus for the HTTP error code.
|
||||
attr_accessor :code
|
||||
|
||||
# @return [String] Description of the error.
|
||||
attr_accessor :message
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ErrorDefinition class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ErrorDefinition',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ErrorDefinition',
|
||||
model_properties: {
|
||||
code: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'code',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
message: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'message',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,47 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Error response.
|
||||
#
|
||||
class ErrorResponse
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [ErrorDefinition] Error definition.
|
||||
attr_accessor :error
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ErrorResponse class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ErrorResponse',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ErrorResponse',
|
||||
model_properties: {
|
||||
error: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'error',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ErrorDefinition'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,57 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Properties for Helm operator.
|
||||
#
|
||||
class HelmOperatorProperties
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Version of the operator Helm chart.
|
||||
attr_accessor :chart_version
|
||||
|
||||
# @return [String] Values override for the operator Helm chart.
|
||||
attr_accessor :chart_values
|
||||
|
||||
|
||||
#
|
||||
# Mapper for HelmOperatorProperties class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'HelmOperatorProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'HelmOperatorProperties',
|
||||
model_properties: {
|
||||
chart_version: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'chartVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
chart_values: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'chartValues',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,17 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for MessageLevelType
|
||||
#
|
||||
module MessageLevelType
|
||||
Error = "Error"
|
||||
Warning = "Warning"
|
||||
Information = "Information"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for OperatorScopeType
|
||||
#
|
||||
module OperatorScopeType
|
||||
Cluster = "cluster"
|
||||
Namespace = "namespace"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,15 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for OperatorType
|
||||
#
|
||||
module OperatorType
|
||||
Flux = "Flux"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,19 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for ProvisioningStateType
|
||||
#
|
||||
module ProvisioningStateType
|
||||
Accepted = "Accepted"
|
||||
Deleting = "Deleting"
|
||||
Running = "Running"
|
||||
Succeeded = "Succeeded"
|
||||
Failed = "Failed"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,65 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Proxy Resource
|
||||
|
||||
# The resource model definition for a Azure Resource Manager proxy
|
||||
# resource. It will not have tags and a location
|
||||
#
|
||||
class ProxyResource < Resource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ProxyResource class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ProxyResource',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ProxyResource',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,86 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Resource
|
||||
|
||||
# Common fields that are returned in the response for all Azure Resource
|
||||
# Manager resources
|
||||
#
|
||||
class Resource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Fully qualified resource ID for the resource. Ex -
|
||||
# /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] The name of the resource
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] The type of the resource. E.g.
|
||||
# "Microsoft.Compute/virtualMachines" or
|
||||
# "Microsoft.Storage/storageAccounts"
|
||||
attr_accessor :type
|
||||
|
||||
|
||||
# @return [String] the name of the resource group of the resource.
|
||||
def resource_group
|
||||
unless self.id.nil?
|
||||
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
||||
groups.captures[0].strip if groups
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Resource class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Resource',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Resource',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,73 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Supported operation of this resource provider.
|
||||
#
|
||||
class ResourceProviderOperation
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Operation name, in format of
|
||||
# {provider}/{resource}/{operation}
|
||||
attr_accessor :name
|
||||
|
||||
# @return [ResourceProviderOperationDisplay] Display metadata associated
|
||||
# with the operation.
|
||||
attr_accessor :display
|
||||
|
||||
# @return [Boolean] The flag that indicates whether the operation applies
|
||||
# to data plane.
|
||||
attr_accessor :is_data_action
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ResourceProviderOperation class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ResourceProviderOperation',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ResourceProviderOperation',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'display',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ResourceProviderOperationDisplay'
|
||||
}
|
||||
},
|
||||
is_data_action: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'isDataAction',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,79 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Display metadata associated with the operation.
|
||||
#
|
||||
class ResourceProviderOperationDisplay
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource provider: Microsoft KubernetesConfiguration.
|
||||
attr_accessor :provider
|
||||
|
||||
# @return [String] Resource on which the operation is performed.
|
||||
attr_accessor :resource
|
||||
|
||||
# @return [String] Type of operation: get, read, delete, etc.
|
||||
attr_accessor :operation
|
||||
|
||||
# @return [String] Description of this operation.
|
||||
attr_accessor :description
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ResourceProviderOperationDisplay class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ResourceProviderOperation_display',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ResourceProviderOperationDisplay',
|
||||
model_properties: {
|
||||
provider: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'provider',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'resource',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operation: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'operation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,100 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Result of the request to list operations.
|
||||
#
|
||||
class ResourceProviderOperationList
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
include MsRest::JSONable
|
||||
# @return [Array<ResourceProviderOperation>] List of operations supported
|
||||
# by this resource provider.
|
||||
attr_accessor :value
|
||||
|
||||
# @return [String] URL to the next set of results, if any.
|
||||
attr_accessor :next_link
|
||||
|
||||
# return [Proc] with next page method call.
|
||||
attr_accessor :next_method
|
||||
|
||||
#
|
||||
# Gets the rest of the items for the request, enabling auto-pagination.
|
||||
#
|
||||
# @return [Array<ResourceProviderOperation>] operation results.
|
||||
#
|
||||
def get_all_items
|
||||
items = @value
|
||||
page = self
|
||||
while page.next_link != nil && !page.next_link.strip.empty? do
|
||||
page = page.get_next_page
|
||||
items.concat(page.value)
|
||||
end
|
||||
items
|
||||
end
|
||||
|
||||
#
|
||||
# Gets the next page of results.
|
||||
#
|
||||
# @return [ResourceProviderOperationList] with next page content.
|
||||
#
|
||||
def get_next_page
|
||||
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
||||
unless response.nil?
|
||||
@next_link = response.body.next_link
|
||||
@value = response.body.value
|
||||
self
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
# Mapper for ResourceProviderOperationList class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ResourceProviderOperationList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ResourceProviderOperationList',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ResourceProviderOperationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ResourceProviderOperation'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
next_link: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'nextLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,46 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Sample result definition
|
||||
#
|
||||
class Result
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Sample property of type string
|
||||
attr_accessor :sample_property
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Result class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Result',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Result',
|
||||
model_properties: {
|
||||
sample_property: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sampleProperty',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,247 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# The SourceControl Configuration object returned in Get & Put response.
|
||||
#
|
||||
class SourceControlConfiguration < ProxyResource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Url of the SourceControl Repository.
|
||||
attr_accessor :repository_url
|
||||
|
||||
# @return [String] The namespace to which this operator is installed to.
|
||||
# Maximum of 253 lower case alphanumeric characters, hyphen and period
|
||||
# only. Default value: 'default' .
|
||||
attr_accessor :operator_namespace
|
||||
|
||||
# @return [String] Instance name of the operator - identifying the
|
||||
# specific configuration.
|
||||
attr_accessor :operator_instance_name
|
||||
|
||||
# @return [OperatorType] Type of the operator. Possible values include:
|
||||
# 'Flux'
|
||||
attr_accessor :operator_type
|
||||
|
||||
# @return [String] Any Parameters for the Operator instance in string
|
||||
# format.
|
||||
attr_accessor :operator_params
|
||||
|
||||
# @return [Hash{String => String}] Name-value pairs of protected
|
||||
# configuration settings for the configuration
|
||||
attr_accessor :configuration_protected_settings
|
||||
|
||||
# @return [OperatorScopeType] Scope at which the operator will be
|
||||
# installed. Possible values include: 'cluster', 'namespace'. Default
|
||||
# value: 'cluster' .
|
||||
attr_accessor :operator_scope
|
||||
|
||||
# @return [String] Public Key associated with this SourceControl
|
||||
# configuration (either generated within the cluster or provided by the
|
||||
# user).
|
||||
attr_accessor :repository_public_key
|
||||
|
||||
# @return [String] Base64-encoded known_hosts contents containing public
|
||||
# SSH keys required to access private Git instances
|
||||
attr_accessor :ssh_known_hosts_contents
|
||||
|
||||
# @return [Boolean] Option to enable Helm Operator for this git
|
||||
# configuration.
|
||||
attr_accessor :enable_helm_operator
|
||||
|
||||
# @return [HelmOperatorProperties] Properties for Helm operator.
|
||||
attr_accessor :helm_operator_properties
|
||||
|
||||
# @return [ProvisioningStateType] The provisioning state of the resource
|
||||
# provider. Possible values include: 'Accepted', 'Deleting', 'Running',
|
||||
# 'Succeeded', 'Failed'
|
||||
attr_accessor :provisioning_state
|
||||
|
||||
# @return [ComplianceStatus] Compliance Status of the Configuration
|
||||
attr_accessor :compliance_status
|
||||
|
||||
# @return [SystemData] Top level metadata
|
||||
# https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
|
||||
attr_accessor :system_data
|
||||
|
||||
|
||||
#
|
||||
# Mapper for SourceControlConfiguration class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'SourceControlConfiguration',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'SourceControlConfiguration',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
repository_url: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.repositoryUrl',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operator_namespace: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.operatorNamespace',
|
||||
default_value: 'default',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operator_instance_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.operatorInstanceName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operator_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.operatorType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operator_params: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.operatorParams',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
configuration_protected_settings: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.configurationProtectedSettings',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
operator_scope: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.operatorScope',
|
||||
default_value: 'cluster',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
repository_public_key: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.repositoryPublicKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ssh_known_hosts_contents: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.sshKnownHostsContents',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
enable_helm_operator: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.enableHelmOperator',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
helm_operator_properties: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.helmOperatorProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'HelmOperatorProperties'
|
||||
}
|
||||
},
|
||||
provisioning_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.provisioningState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
compliance_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.complianceStatus',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ComplianceStatus'
|
||||
}
|
||||
},
|
||||
system_data: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'systemData',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'SystemData'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,104 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Result of the request to list Source Control Configurations. It contains
|
||||
# a list of SourceControlConfiguration objects and a URL link to get the
|
||||
# next set of results.
|
||||
#
|
||||
class SourceControlConfigurationList
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
include MsRest::JSONable
|
||||
# @return [Array<SourceControlConfiguration>] List of Source Control
|
||||
# Configurations within a Kubernetes cluster.
|
||||
attr_accessor :value
|
||||
|
||||
# @return [String] URL to get the next set of configuration objects, if
|
||||
# any.
|
||||
attr_accessor :next_link
|
||||
|
||||
# return [Proc] with next page method call.
|
||||
attr_accessor :next_method
|
||||
|
||||
#
|
||||
# Gets the rest of the items for the request, enabling auto-pagination.
|
||||
#
|
||||
# @return [Array<SourceControlConfiguration>] operation results.
|
||||
#
|
||||
def get_all_items
|
||||
items = @value
|
||||
page = self
|
||||
while page.next_link != nil && !page.next_link.strip.empty? do
|
||||
page = page.get_next_page
|
||||
items.concat(page.value)
|
||||
end
|
||||
items
|
||||
end
|
||||
|
||||
#
|
||||
# Gets the next page of results.
|
||||
#
|
||||
# @return [SourceControlConfigurationList] with next page content.
|
||||
#
|
||||
def get_next_page
|
||||
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
||||
unless response.nil?
|
||||
@next_link = response.body.next_link
|
||||
@value = response.body.value
|
||||
self
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
# Mapper for SourceControlConfigurationList class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'SourceControlConfigurationList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'SourceControlConfigurationList',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'SourceControlConfigurationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'SourceControlConfiguration'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
next_link: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'nextLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,105 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Metadata pertaining to creation and last modification of the resource.
|
||||
#
|
||||
class SystemData
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The identity that created the resource.
|
||||
attr_accessor :created_by
|
||||
|
||||
# @return [CreatedByType] The type of identity that created the resource.
|
||||
# Possible values include: 'User', 'Application', 'ManagedIdentity',
|
||||
# 'Key'
|
||||
attr_accessor :created_by_type
|
||||
|
||||
# @return [DateTime] The timestamp of resource creation (UTC).
|
||||
attr_accessor :created_at
|
||||
|
||||
# @return [String] The identity that last modified the resource.
|
||||
attr_accessor :last_modified_by
|
||||
|
||||
# @return [CreatedByType] The type of identity that last modified the
|
||||
# resource. Possible values include: 'User', 'Application',
|
||||
# 'ManagedIdentity', 'Key'
|
||||
attr_accessor :last_modified_by_type
|
||||
|
||||
# @return [DateTime] The timestamp of resource last modification (UTC)
|
||||
attr_accessor :last_modified_at
|
||||
|
||||
|
||||
#
|
||||
# Mapper for SystemData class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'systemData',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'SystemData',
|
||||
model_properties: {
|
||||
created_by: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'createdBy',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
created_by_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'createdByType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
created_at: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'createdAt',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
last_modified_by: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastModifiedBy',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_modified_by_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastModifiedByType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_modified_at: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastModifiedAt',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,95 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
module Models
|
||||
#
|
||||
# Tracked Resource
|
||||
|
||||
# The resource model definition for an Azure Resource Manager tracked top
|
||||
# level resource which has 'tags' and a 'location'
|
||||
#
|
||||
class TrackedResource < Resource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Hash{String => String}] Resource tags.
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [String] The geo-location where the resource lives
|
||||
attr_accessor :location
|
||||
|
||||
|
||||
#
|
||||
# Mapper for TrackedResource class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'TrackedResource',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'TrackedResource',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,9 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure end
|
||||
module Azure::KubernetesConfiguration end
|
||||
module Azure::KubernetesConfiguration::Mgmt end
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01 end
|
|
@ -0,0 +1,227 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
#
|
||||
# Use these APIs to create Source Control Configuration resources through
|
||||
# ARM, for Kubernetes Clusters.
|
||||
#
|
||||
class Operations
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the Operations class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [SourceControlConfigurationClient] reference to the SourceControlConfigurationClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# List all the available operations the KubernetesConfiguration resource
|
||||
# provider supports.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Array<ResourceProviderOperation>] operation results.
|
||||
#
|
||||
def list(custom_headers:nil)
|
||||
first_page = list_as_lazy(custom_headers:custom_headers)
|
||||
first_page.get_all_items
|
||||
end
|
||||
|
||||
#
|
||||
# List all the available operations the KubernetesConfiguration resource
|
||||
# provider supports.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(custom_headers:nil)
|
||||
list_async(custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# List all the available operations the KubernetesConfiguration resource
|
||||
# provider supports.
|
||||
#
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'providers/Microsoft.KubernetesConfiguration/operations'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ResourceProviderOperationList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# List all the available operations the KubernetesConfiguration resource
|
||||
# provider supports.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [ResourceProviderOperationList] operation results.
|
||||
#
|
||||
def list_next(next_page_link, custom_headers:nil)
|
||||
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# List all the available operations the KubernetesConfiguration resource
|
||||
# provider supports.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
||||
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# List all the available operations the KubernetesConfiguration resource
|
||||
# provider supports.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_next_async(next_page_link, custom_headers:nil)
|
||||
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = '{nextLink}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
skip_encoding_path_params: {'nextLink' => next_page_link},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ResourceProviderOperationList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# List all the available operations the KubernetesConfiguration resource
|
||||
# provider supports.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [ResourceProviderOperationList] which provide lazy access to pages of
|
||||
# the response.
|
||||
#
|
||||
def list_as_lazy(custom_headers:nil)
|
||||
response = list_async(custom_headers:custom_headers).value!
|
||||
unless response.nil?
|
||||
page = response.body
|
||||
page.next_method = Proc.new do |next_page_link|
|
||||
list_next_async(next_page_link, custom_headers:custom_headers)
|
||||
end
|
||||
page
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,136 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
#
|
||||
# A service client - single point of access to the REST API.
|
||||
#
|
||||
class SourceControlConfigurationClient < MsRestAzure::AzureServiceClient
|
||||
include MsRestAzure
|
||||
include MsRestAzure::Serialization
|
||||
|
||||
# @return [String] the base URI of the service.
|
||||
attr_accessor :base_url
|
||||
|
||||
# @return Credentials needed for the client to connect to Azure.
|
||||
attr_reader :credentials
|
||||
|
||||
# @return [String] The Azure subscription ID. This is a GUID-formatted
|
||||
# string (e.g. 00000000-0000-0000-0000-000000000000)
|
||||
attr_accessor :subscription_id
|
||||
|
||||
# @return [String] The API version to be used with the HTTP request.
|
||||
attr_reader :api_version
|
||||
|
||||
# @return [String] The preferred language for the response.
|
||||
attr_accessor :accept_language
|
||||
|
||||
# @return [Integer] The retry timeout in seconds for Long Running
|
||||
# Operations. Default value is 30.
|
||||
attr_accessor :long_running_operation_retry_timeout
|
||||
|
||||
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
||||
# generated. When set to true a unique x-ms-client-request-id value is
|
||||
# generated and included in each request. Default is true.
|
||||
attr_accessor :generate_client_request_id
|
||||
|
||||
# @return [SourceControlConfigurations] source_control_configurations
|
||||
attr_reader :source_control_configurations
|
||||
|
||||
# @return [Operations] operations
|
||||
attr_reader :operations
|
||||
|
||||
#
|
||||
# Creates initializes a new instance of the SourceControlConfigurationClient class.
|
||||
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
||||
# @param base_url [String] the base URI of the service.
|
||||
# @param options [Array] filters to be applied to the HTTP requests.
|
||||
#
|
||||
def initialize(credentials = nil, base_url = nil, options = nil)
|
||||
super(credentials, options)
|
||||
@base_url = base_url || 'https://management.azure.com'
|
||||
|
||||
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
||||
@credentials = credentials
|
||||
|
||||
@source_control_configurations = SourceControlConfigurations.new(self)
|
||||
@operations = Operations.new(self)
|
||||
@api_version = '2021-03-01'
|
||||
@accept_language = 'en-US'
|
||||
@long_running_operation_retry_timeout = 30
|
||||
@generate_client_request_id = true
|
||||
add_telemetry
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request and returns the body of the response.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [Hash{String=>String}] containing the body of the response.
|
||||
# Example:
|
||||
#
|
||||
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
||||
# path = "/path"
|
||||
# options = {
|
||||
# body: request_content,
|
||||
# query_params: {'api-version' => '2016-02-01'}
|
||||
# }
|
||||
# result = @client.make_request(:put, path, options)
|
||||
#
|
||||
def make_request(method, path, options = {})
|
||||
result = make_request_with_http_info(method, path, options)
|
||||
result.body unless result.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request and returns the operation response.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
||||
#
|
||||
def make_request_with_http_info(method, path, options = {})
|
||||
result = make_request_async(method, path, options).value!
|
||||
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
||||
result
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request asynchronously.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def make_request_async(method, path, options = {})
|
||||
fail ArgumentError, 'method is nil' if method.nil?
|
||||
fail ArgumentError, 'path is nil' if path.nil?
|
||||
|
||||
request_url = options[:base_url] || @base_url
|
||||
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
||||
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
||||
end
|
||||
|
||||
request_headers = @request_headers
|
||||
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
||||
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
||||
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
||||
|
||||
super(request_url, method, path, options)
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
#
|
||||
# Adds telemetry information.
|
||||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_kubernetes_configuration'
|
||||
sdk_information = "#{sdk_information}/0.18.0"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,722 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt::V2021_03_01
|
||||
#
|
||||
# Use these APIs to create Source Control Configuration resources through
|
||||
# ARM, for Kubernetes Clusters.
|
||||
#
|
||||
class SourceControlConfigurations
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the SourceControlConfigurations class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [SourceControlConfigurationClient] reference to the SourceControlConfigurationClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Gets details of the Source Control Configuration.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [SourceControlConfiguration] operation results.
|
||||
#
|
||||
def get(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:nil)
|
||||
response = get_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Gets details of the Source Control Configuration.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:nil)
|
||||
get_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Gets details of the Source Control Configuration.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'cluster_rp is nil' if cluster_rp.nil?
|
||||
fail ArgumentError, 'cluster_resource_name is nil' if cluster_resource_name.nil?
|
||||
fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
|
||||
fail ArgumentError, 'source_control_configuration_name is nil' if source_control_configuration_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/{sourceControlConfigurationName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterRp' => cluster_rp,'clusterResourceName' => cluster_resource_name,'clusterName' => cluster_name,'sourceControlConfigurationName' => source_control_configuration_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SourceControlConfiguration.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Create a new Kubernetes Source Control Configuration.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param source_control_configuration [SourceControlConfiguration] Properties
|
||||
# necessary to Create KubernetesConfiguration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [SourceControlConfiguration] operation results.
|
||||
#
|
||||
def create_or_update(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, source_control_configuration, custom_headers:nil)
|
||||
response = create_or_update_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, source_control_configuration, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Create a new Kubernetes Source Control Configuration.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param source_control_configuration [SourceControlConfiguration] Properties
|
||||
# necessary to Create KubernetesConfiguration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def create_or_update_with_http_info(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, source_control_configuration, custom_headers:nil)
|
||||
create_or_update_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, source_control_configuration, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Create a new Kubernetes Source Control Configuration.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param source_control_configuration [SourceControlConfiguration] Properties
|
||||
# necessary to Create KubernetesConfiguration.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def create_or_update_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, source_control_configuration, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'cluster_rp is nil' if cluster_rp.nil?
|
||||
fail ArgumentError, 'cluster_resource_name is nil' if cluster_resource_name.nil?
|
||||
fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
|
||||
fail ArgumentError, 'source_control_configuration_name is nil' if source_control_configuration_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'source_control_configuration is nil' if source_control_configuration.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SourceControlConfiguration.mapper()
|
||||
request_content = @client.serialize(request_mapper, source_control_configuration)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/{sourceControlConfigurationName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterRp' => cluster_rp,'clusterResourceName' => cluster_resource_name,'clusterName' => cluster_name,'sourceControlConfigurationName' => source_control_configuration_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:put, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 201
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SourceControlConfiguration.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
# Deserialize Response
|
||||
if status_code == 201
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SourceControlConfiguration.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# This will delete the YAML file used to set up the Source control
|
||||
# configuration, thus stopping future sync from the source repo.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
def delete(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:nil)
|
||||
response = delete_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def delete_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_delete_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# List all Source Control Configurations.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Array<SourceControlConfiguration>] operation results.
|
||||
#
|
||||
def list(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, custom_headers:nil)
|
||||
first_page = list_as_lazy(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, custom_headers:custom_headers)
|
||||
first_page.get_all_items
|
||||
end
|
||||
|
||||
#
|
||||
# List all Source Control Configurations.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, custom_headers:nil)
|
||||
list_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# List all Source Control Configurations.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'cluster_rp is nil' if cluster_rp.nil?
|
||||
fail ArgumentError, 'cluster_resource_name is nil' if cluster_resource_name.nil?
|
||||
fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterRp' => cluster_rp,'clusterResourceName' => cluster_resource_name,'clusterName' => cluster_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SourceControlConfigurationList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# This will delete the YAML file used to set up the Source control
|
||||
# configuration, thus stopping future sync from the source repo.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def begin_delete(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:nil)
|
||||
response = begin_delete_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# This will delete the YAML file used to set up the Source control
|
||||
# configuration, thus stopping future sync from the source repo.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_delete_with_http_info(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:nil)
|
||||
begin_delete_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# This will delete the YAML file used to set up the Source control
|
||||
# configuration, thus stopping future sync from the source repo.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param source_control_configuration_name [String] Name of the Source Control
|
||||
# Configuration.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_delete_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, source_control_configuration_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'cluster_rp is nil' if cluster_rp.nil?
|
||||
fail ArgumentError, 'cluster_resource_name is nil' if cluster_resource_name.nil?
|
||||
fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
|
||||
fail ArgumentError, 'source_control_configuration_name is nil' if source_control_configuration_name.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/{sourceControlConfigurationName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterRp' => cluster_rp,'clusterResourceName' => cluster_resource_name,'clusterName' => cluster_name,'sourceControlConfigurationName' => source_control_configuration_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:delete, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 204
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# List all Source Control Configurations.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [SourceControlConfigurationList] operation results.
|
||||
#
|
||||
def list_next(next_page_link, custom_headers:nil)
|
||||
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# List all Source Control Configurations.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
||||
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# List all Source Control Configurations.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_next_async(next_page_link, custom_headers:nil)
|
||||
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = '{nextLink}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
skip_encoding_path_params: {'nextLink' => next_page_link},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SourceControlConfigurationList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# List all Source Control Configurations.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group.
|
||||
# @param cluster_rp [Enum] The Kubernetes cluster RP - either
|
||||
# Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for
|
||||
# OnPrem K8S clusters). Possible values include: 'Microsoft.ContainerService',
|
||||
# 'Microsoft.Kubernetes'
|
||||
# @param cluster_resource_name [Enum] The Kubernetes cluster resource name -
|
||||
# either managedClusters (for AKS clusters) or connectedClusters (for OnPrem
|
||||
# K8S clusters). Possible values include: 'managedClusters',
|
||||
# 'connectedClusters'
|
||||
# @param cluster_name [String] The name of the kubernetes cluster.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [SourceControlConfigurationList] which provide lazy access to pages
|
||||
# of the response.
|
||||
#
|
||||
def list_as_lazy(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, custom_headers:nil)
|
||||
response = list_async(resource_group_name, cluster_rp, cluster_resource_name, cluster_name, custom_headers:custom_headers).value!
|
||||
unless response.nil?
|
||||
page = response.body
|
||||
page.next_method = Proc.new do |next_page_link|
|
||||
list_next_async(next_page_link, custom_headers:custom_headers)
|
||||
end
|
||||
page
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -2,5 +2,6 @@
|
|||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
require '2021-03-01/generated/azure_mgmt_kubernetes_configuration'
|
||||
require '2019-11-01-preview/generated/azure_mgmt_kubernetes_configuration'
|
||||
require 'profiles/latest/kubernetesconfiguration_latest_profile_client'
|
||||
|
|
|
@ -6,28 +6,31 @@ require 'azure_mgmt_kubernetes_configuration'
|
|||
|
||||
module Azure::KubernetesConfiguration::Profiles::Latest
|
||||
module Mgmt
|
||||
SourceControlConfigurations = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::SourceControlConfigurations
|
||||
Operations = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Operations
|
||||
SourceControlConfigurations = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::SourceControlConfigurations
|
||||
Operations = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Operations
|
||||
|
||||
module Models
|
||||
HelmOperatorProperties = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::HelmOperatorProperties
|
||||
Resource = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::Resource
|
||||
ResourceProviderOperationList = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ResourceProviderOperationList
|
||||
Result = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::Result
|
||||
ErrorResponse = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ErrorResponse
|
||||
SourceControlConfigurationList = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::SourceControlConfigurationList
|
||||
ErrorDefinition = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ErrorDefinition
|
||||
ResourceProviderOperationDisplay = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ResourceProviderOperationDisplay
|
||||
ComplianceStatus = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ComplianceStatus
|
||||
ResourceProviderOperation = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ResourceProviderOperation
|
||||
ProxyResource = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ProxyResource
|
||||
SourceControlConfiguration = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::SourceControlConfiguration
|
||||
ComplianceState = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ComplianceState
|
||||
MessageLevel = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::MessageLevel
|
||||
OperatorType = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::OperatorType
|
||||
OperatorScope = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::OperatorScope
|
||||
EnableHelmOperator = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::EnableHelmOperator
|
||||
ProvisioningState = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ProvisioningState
|
||||
SourceControlConfigurationList = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SourceControlConfigurationList
|
||||
ResourceProviderOperationDisplay = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ResourceProviderOperationDisplay
|
||||
ErrorDefinition = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ErrorDefinition
|
||||
ResourceProviderOperation = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ResourceProviderOperation
|
||||
ComplianceStatus = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ComplianceStatus
|
||||
ResourceProviderOperationList = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ResourceProviderOperationList
|
||||
SystemData = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SystemData
|
||||
HelmOperatorProperties = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::HelmOperatorProperties
|
||||
Result = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::Result
|
||||
Resource = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::Resource
|
||||
ErrorResponse = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ErrorResponse
|
||||
SourceControlConfiguration = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SourceControlConfiguration
|
||||
TrackedResource = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::TrackedResource
|
||||
AzureEntityResource = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::AzureEntityResource
|
||||
ProxyResource = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ProxyResource
|
||||
ComplianceStateType = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ComplianceStateType
|
||||
MessageLevelType = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::MessageLevelType
|
||||
OperatorType = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::OperatorType
|
||||
OperatorScopeType = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::OperatorScopeType
|
||||
ProvisioningStateType = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ProvisioningStateType
|
||||
CreatedByType = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::CreatedByType
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -49,7 +52,7 @@ module Azure::KubernetesConfiguration::Profiles::Latest
|
|||
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
||||
@options = options[:options].nil? ? nil:options[:options]
|
||||
|
||||
@client_0 = Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::SourceControlConfigurationClient.new(configurable.credentials, base_url, options)
|
||||
@client_0 = Azure::KubernetesConfiguration::Mgmt::V2021_03_01::SourceControlConfigurationClient.new(configurable.credentials, base_url, options)
|
||||
if(@client_0.respond_to?(:subscription_id))
|
||||
@client_0.subscription_id = configurable.subscription_id
|
||||
end
|
||||
|
@ -76,59 +79,68 @@ module Azure::KubernetesConfiguration::Profiles::Latest
|
|||
end
|
||||
|
||||
class ModelClasses
|
||||
def helm_operator_properties
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::HelmOperatorProperties
|
||||
end
|
||||
def resource
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::Resource
|
||||
end
|
||||
def resource_provider_operation_list
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ResourceProviderOperationList
|
||||
end
|
||||
def result
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::Result
|
||||
end
|
||||
def error_response
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ErrorResponse
|
||||
end
|
||||
def source_control_configuration_list
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::SourceControlConfigurationList
|
||||
end
|
||||
def error_definition
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ErrorDefinition
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SourceControlConfigurationList
|
||||
end
|
||||
def resource_provider_operation_display
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ResourceProviderOperationDisplay
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ResourceProviderOperationDisplay
|
||||
end
|
||||
def compliance_status
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ComplianceStatus
|
||||
def error_definition
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ErrorDefinition
|
||||
end
|
||||
def resource_provider_operation
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ResourceProviderOperation
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ResourceProviderOperation
|
||||
end
|
||||
def proxy_resource
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ProxyResource
|
||||
def compliance_status
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ComplianceStatus
|
||||
end
|
||||
def resource_provider_operation_list
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ResourceProviderOperationList
|
||||
end
|
||||
def system_data
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SystemData
|
||||
end
|
||||
def helm_operator_properties
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::HelmOperatorProperties
|
||||
end
|
||||
def result
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::Result
|
||||
end
|
||||
def resource
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::Resource
|
||||
end
|
||||
def error_response
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ErrorResponse
|
||||
end
|
||||
def source_control_configuration
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::SourceControlConfiguration
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::SourceControlConfiguration
|
||||
end
|
||||
def compliance_state
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ComplianceState
|
||||
def tracked_resource
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::TrackedResource
|
||||
end
|
||||
def message_level
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::MessageLevel
|
||||
def azure_entity_resource
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::AzureEntityResource
|
||||
end
|
||||
def proxy_resource
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ProxyResource
|
||||
end
|
||||
def compliance_state_type
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ComplianceStateType
|
||||
end
|
||||
def message_level_type
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::MessageLevelType
|
||||
end
|
||||
def operator_type
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::OperatorType
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::OperatorType
|
||||
end
|
||||
def operator_scope
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::OperatorScope
|
||||
def operator_scope_type
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::OperatorScopeType
|
||||
end
|
||||
def enable_helm_operator
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::EnableHelmOperator
|
||||
def provisioning_state_type
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::ProvisioningStateType
|
||||
end
|
||||
def provisioning_state
|
||||
Azure::KubernetesConfiguration::Mgmt::V2019_11_01_preview::Models::ProvisioningState
|
||||
def created_by_type
|
||||
Azure::KubernetesConfiguration::Mgmt::V2021_03_01::Models::CreatedByType
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
module Azure::KubernetesConfiguration::Mgmt
|
||||
VERSION = '0.17.1'
|
||||
VERSION = '0.18.0'
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче