provisioning_sc_bulk_operation.h

Includes

#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include "umock_c/umock_c_prod.h"
#include "azure_macro_utils/macro_utils.h"
#include "provisioning_sc_models.h"
#include "parson.h"

Detailed Description

Functions

Function Name Description
PROVISIONING_BULK_OPERATION_MODEStrings
PROVISIONING_BULK_OPERATION_MODE_FromString
PROVISIONING_BULK_OPERATION_TYPEStrings
PROVISIONING_BULK_OPERATION_TYPE_FromString
bulkOperationResult_free

Structures

PROVISIONING_BULK_OPERATION_ERROR

struct PROVISIONING_BULK_OPERATION_ERROR {
  char *   registration_id,
  int32_t  error_code,
  char *   error_status
};
Member name Description
registration_id
error_code
error_status

PROVISIONING_BULK_OPERATION_RESULT

struct PROVISIONING_BULK_OPERATION_RESULT {
  bool                                   is_successful,
  PROVISIONING_BULK_OPERATION_ERROR  **  errors,
  size_t                                 num_errors
};
Member name Description
is_successful
errors
num_errors

PROVISIONING_BULK_OPERATION

struct PROVISIONING_BULK_OPERATION {
  int                                    version,
  PROVISIONING_BULK_OPERATION_MODE       mode,
  union PROVISIONING_BULK_OPERATION::@0  enrollments,
  size_t                                 num_enrollments,
  PROVISIONING_BULK_OPERATION_TYPE       type
};
Member name Description
version
mode
enrollments
num_enrollments
type

PROVISIONING_BULK_OPERATION.enrollments

union PROVISIONING_BULK_OPERATION.enrollments {
  INDIVIDUAL_ENROLLMENT_HANDLE  *  ie
};
Member name Description
ie

Macro definitions

PROVISIONING_BULK_OPERATION_VERSION_1

#define PROVISIONING_BULK_OPERATION_VERSION_1  1 

PROVISIONING_BULK_OPERATION_MODE_VALUES

#define PROVISIONING_BULK_OPERATION_MODE_VALUES \
        BULK_OP_CREATE, \
        BULK_OP_UPDATE, \
        BULK_OP_UPDATE_IF_MATCH_ETAG, \
        BULK_OP_DELETE 

PROVISIONING_BULK_OPERATION_TYPE_VALUES

#define PROVISIONING_BULK_OPERATION_TYPE_VALUES        BULK_OP_INDIVIDUAL_ENROLLMENT 

Enumeration types

PROVISIONING_BULK_OPERATION_MODE

enum PROVISIONING_BULK_OPERATION_MODE {
  BULK_OP_CREATE,
  BULK_OP_UPDATE,
  BULK_OP_UPDATE_IF_MATCH_ETAG,
  BULK_OP_DELETE
}

PROVISIONING_BULK_OPERATION_TYPE

enum PROVISIONING_BULK_OPERATION_TYPE {
  BULK_OP_INDIVIDUAL_ENROLLMENT
}