Method: Azure::Maintenance::Mgmt::V2018_06_01_preview::ConfigurationAssignments#create_or_update_parent

Defined in:
lib/2018-06-01-preview/generated/azure_mgmt_maintenance/configuration_assignments.rb

#create_or_update_parent(resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name, configuration_assignment_name, configuration_assignment, custom_headers: nil) ⇒ ConfigurationAssignment

Create configuration assignment

Register configuration for resource.

configurationAssignment will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    Resource group name

  • provider_name (String)

    Resource provider name

  • resource_parent_type (String)

    Resource parent type

  • resource_parent_name (String)

    Resource parent identifier

  • resource_type (String)

    Resource type

  • resource_name (String)

    Resource identifier

  • configuration_assignment_name (String)

    Configuration assignment name

  • configuration_assignment (ConfigurationAssignment)

    The

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (ConfigurationAssignment)

    operation results.



43
44
45
46
# File 'lib/2018-06-01-preview/generated/azure_mgmt_maintenance/configuration_assignments.rb', line 43

def create_or_update_parent(resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name, configuration_assignment_name, configuration_assignment, custom_headers:nil)
  response = create_or_update_parent_async(resource_group_name, provider_name, resource_parent_type, resource_parent_name, resource_type, resource_name, configuration_assignment_name, configuration_assignment, custom_headers:custom_headers).value!
  response.body unless response.nil?
end