func NewQosDscpMarkingRule(ctx *pulumi.Context,
	name string, args *QosDscpMarkingRuleArgs, opts ...pulumi.ResourceOption) (*QosDscpMarkingRule, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.DscpMark == nil {
		return nil, errors.New("invalid value for required argument 'DscpMark'")
	}
	if args.QosPolicyId == nil {
		return nil, errors.New("invalid value for required argument 'QosPolicyId'")
	}
	var resource QosDscpMarkingRule
	err := ctx.RegisterResource("openstack:networking/qosDscpMarkingRule:QosDscpMarkingRule", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewQosDscpMarkingRule registers a new resource with the given unique name, arguments, and options.
NewQosDscpMarkingRule registers a new resource with the given unique name, arguments, and options.
// NewQosDscpMarkingRule registers a new resource with the given unique name arguments and options .
func NewQosDscpMarkingRule(ctx *pulumi.Context,
	name string, args *QosDscpMarkingRuleArgs, opts ...pulumi.ResourceOption) (*QosDscpMarkingRule, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.DscpMark == nil {
		return nil, errors.New("invalid value for required argument 'DscpMark'")
	}
	if args.QosPolicyId == nil {
		return nil, errors.New("invalid value for required argument 'QosPolicyId'")
	}
	var resource QosDscpMarkingRule
	err := ctx.RegisterResource("openstack:networking/qosDscpMarkingRule:QosDscpMarkingRule", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewQosDscpMarkingRule ( ctx * pulumi . Context , name string , args * QosDscpMarkingRuleArgs , opts ... pulumi . ResourceOption ) ( * QosDscpMarkingRule , error ) { if args == nil { return nil , errors . New ( " " ) } if args . DscpMark == nil { return nil , errors . New ( " " ) } if args . QosPolicyId == nil { return nil , errors . New ( " " ) } var resource QosDscpMarkingRule err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewQosDscpMarkingRule registers a new resource with the given unique name, arguments, and options.
NewQosDscpMarkingRule registers a new resource with the given unique name arguments and options .