Skip to content

Commit

Permalink
add bulk upsert
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Sheffield committed Feb 16, 2023
1 parent 37ba963 commit 8dc9462
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions opensearchapi/api._.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,12 @@ type Remote struct {

// Security contains the Security APIs
type Security struct {
Create CreateSecurityRoleMapping
Patch PatchSecurityRoleMapping
Delete DeleteSecurityRoleMapping
Get GetSecurityRoleMapping
List ListSecurityRoleMapping
Create CreateSecurityRoleMapping
BulkUpsert BulkUpsertSecurityRoleMapping
Patch PatchSecurityRoleMapping
Delete DeleteSecurityRoleMapping
Get GetSecurityRoleMapping
List ListSecurityRoleMapping
}

// Snapshot contains the Snapshot APIs
Expand Down Expand Up @@ -380,11 +381,12 @@ func New(t Transport) *API {
},
Remote: &Remote{},
Security: &Security{
Create: newCreateSecurityRoleMappingFunc(t),
Patch: newPatchSecurityRoleMappingFunc(t),
Delete: newDeleteSecurityRoleMappingFunc(t),
Get: newGetSecurityRoleMappingFunc(t),
List: newListSecurityRoleMappingFunc(t),
Create: newCreateSecurityRoleMappingFunc(t),
BulkUpsert: newBulkUpsertSecurityRoleMappingFunc(t),
Patch: newPatchSecurityRoleMappingFunc(t),
Delete: newDeleteSecurityRoleMappingFunc(t),
Get: newGetSecurityRoleMappingFunc(t),
List: newListSecurityRoleMappingFunc(t),
},
Snapshot: &Snapshot{
CleanupRepository: newSnapshotCleanupRepositoryFunc(t),
Expand Down

0 comments on commit 8dc9462

Please sign in to comment.