diff --git a/sherlock-go-client/client/models/sherlock_role_v3.go b/sherlock-go-client/client/models/sherlock_role_v3.go index b0da865f7..442562a0a 100644 --- a/sherlock-go-client/client/models/sherlock_role_v3.go +++ b/sherlock-go-client/client/models/sherlock_role_v3.go @@ -39,6 +39,9 @@ type SherlockRoleV3 struct { // default glass break duration DefaultGlassBreakDuration string `json:"defaultGlassBreakDuration,omitempty"` + // grants broad institute group + GrantsBroadInstituteGroup string `json:"grantsBroadInstituteGroup,omitempty"` + // grants dev azure group GrantsDevAzureGroup string `json:"grantsDevAzureGroup,omitempty"` diff --git a/sherlock-go-client/client/models/sherlock_role_v3_edit.go b/sherlock-go-client/client/models/sherlock_role_v3_edit.go index fc6587e8a..bf0ece5b6 100644 --- a/sherlock-go-client/client/models/sherlock_role_v3_edit.go +++ b/sherlock-go-client/client/models/sherlock_role_v3_edit.go @@ -26,6 +26,9 @@ type SherlockRoleV3Edit struct { // default glass break duration DefaultGlassBreakDuration string `json:"defaultGlassBreakDuration,omitempty"` + // grants broad institute group + GrantsBroadInstituteGroup string `json:"grantsBroadInstituteGroup,omitempty"` + // grants dev azure group GrantsDevAzureGroup string `json:"grantsDevAzureGroup,omitempty"` diff --git a/sherlock-go-client/client/roles/get_api_roles_v3_parameters.go b/sherlock-go-client/client/roles/get_api_roles_v3_parameters.go index be99d5aa4..e00fe0077 100644 --- a/sherlock-go-client/client/roles/get_api_roles_v3_parameters.go +++ b/sherlock-go-client/client/roles/get_api_roles_v3_parameters.go @@ -77,6 +77,9 @@ type GetAPIRolesV3Params struct { // DefaultGlassBreakDuration. DefaultGlassBreakDuration *string + // GrantsBroadInstituteGroup. + GrantsBroadInstituteGroup *string + // GrantsDevAzureGroup. GrantsDevAzureGroup *string @@ -221,6 +224,17 @@ func (o *GetAPIRolesV3Params) SetDefaultGlassBreakDuration(defaultGlassBreakDura o.DefaultGlassBreakDuration = defaultGlassBreakDuration } +// WithGrantsBroadInstituteGroup adds the grantsBroadInstituteGroup to the get API roles v3 params +func (o *GetAPIRolesV3Params) WithGrantsBroadInstituteGroup(grantsBroadInstituteGroup *string) *GetAPIRolesV3Params { + o.SetGrantsBroadInstituteGroup(grantsBroadInstituteGroup) + return o +} + +// SetGrantsBroadInstituteGroup adds the grantsBroadInstituteGroup to the get API roles v3 params +func (o *GetAPIRolesV3Params) SetGrantsBroadInstituteGroup(grantsBroadInstituteGroup *string) { + o.GrantsBroadInstituteGroup = grantsBroadInstituteGroup +} + // WithGrantsDevAzureGroup adds the grantsDevAzureGroup to the get API roles v3 params func (o *GetAPIRolesV3Params) WithGrantsDevAzureGroup(grantsDevAzureGroup *string) *GetAPIRolesV3Params { o.SetGrantsDevAzureGroup(grantsDevAzureGroup) @@ -429,6 +443,23 @@ func (o *GetAPIRolesV3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.GrantsBroadInstituteGroup != nil { + + // query param grantsBroadInstituteGroup + var qrGrantsBroadInstituteGroup string + + if o.GrantsBroadInstituteGroup != nil { + qrGrantsBroadInstituteGroup = *o.GrantsBroadInstituteGroup + } + qGrantsBroadInstituteGroup := qrGrantsBroadInstituteGroup + if qGrantsBroadInstituteGroup != "" { + + if err := r.SetQueryParam("grantsBroadInstituteGroup", qGrantsBroadInstituteGroup); err != nil { + return err + } + } + } + if o.GrantsDevAzureGroup != nil { // query param grantsDevAzureGroup diff --git a/sherlock-typescript-client/README.md b/sherlock-typescript-client/README.md index bde24fe5a..74709080d 100644 --- a/sherlock-typescript-client/README.md +++ b/sherlock-typescript-client/README.md @@ -1,4 +1,4 @@ -## @sherlock-js-client/sherlock@v1.5.31 +## @sherlock-js-client/sherlock@v1.5.32 This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install @sherlock-js-client/sherlock@v1.5.31 --save +npm install @sherlock-js-client/sherlock@v1.5.32 --save ``` _unPublished (not recommended):_ diff --git a/sherlock-typescript-client/package-lock.json b/sherlock-typescript-client/package-lock.json index 84df5af84..b01e75af2 100644 --- a/sherlock-typescript-client/package-lock.json +++ b/sherlock-typescript-client/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sherlock-js-client/sherlock", - "version": "v1.5.31", + "version": "v1.5.32", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@sherlock-js-client/sherlock", - "version": "v1.5.31", + "version": "v1.5.32", "devDependencies": { "typescript": "^4.0 || ^5.0" } diff --git a/sherlock-typescript-client/package.json b/sherlock-typescript-client/package.json index 1a773063f..9388e6113 100644 --- a/sherlock-typescript-client/package.json +++ b/sherlock-typescript-client/package.json @@ -1,6 +1,6 @@ { "name": "@sherlock-js-client/sherlock", - "version": "v1.5.31", + "version": "v1.5.32", "description": "OpenAPI client for @sherlock-js-client/sherlock", "author": "OpenAPI-Generator", "repository": { diff --git a/sherlock-typescript-client/src/apis/RolesApi.ts b/sherlock-typescript-client/src/apis/RolesApi.ts index 6a60591fd..f3a5ae288 100644 --- a/sherlock-typescript-client/src/apis/RolesApi.ts +++ b/sherlock-typescript-client/src/apis/RolesApi.ts @@ -33,6 +33,7 @@ export interface ApiRolesV3GetRequest { canBeGlassBrokenByRole?: number; createdAt?: Date; defaultGlassBreakDuration?: string; + grantsBroadInstituteGroup?: string; grantsDevAzureGroup?: string; grantsDevFirecloudGroup?: string; grantsProdAzureGroup?: string; @@ -92,6 +93,10 @@ export class RolesApi extends runtime.BaseAPI { queryParameters['defaultGlassBreakDuration'] = requestParameters['defaultGlassBreakDuration']; } + if (requestParameters['grantsBroadInstituteGroup'] != null) { + queryParameters['grantsBroadInstituteGroup'] = requestParameters['grantsBroadInstituteGroup']; + } + if (requestParameters['grantsDevAzureGroup'] != null) { queryParameters['grantsDevAzureGroup'] = requestParameters['grantsDevAzureGroup']; } diff --git a/sherlock-typescript-client/src/models/SherlockRoleV3.ts b/sherlock-typescript-client/src/models/SherlockRoleV3.ts index cffd86762..558f1335f 100644 --- a/sherlock-typescript-client/src/models/SherlockRoleV3.ts +++ b/sherlock-typescript-client/src/models/SherlockRoleV3.ts @@ -62,6 +62,12 @@ export interface SherlockRoleV3 { * @memberof SherlockRoleV3 */ defaultGlassBreakDuration?: string; + /** + * + * @type {string} + * @memberof SherlockRoleV3 + */ + grantsBroadInstituteGroup?: string; /** * * @type {string} @@ -147,6 +153,7 @@ export function SherlockRoleV3FromJSONTyped(json: any, ignoreDiscriminator: bool 'canBeGlassBrokenByRoleInfo': json['canBeGlassBrokenByRoleInfo'] == null ? undefined : json['canBeGlassBrokenByRoleInfo'], 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])), 'defaultGlassBreakDuration': json['defaultGlassBreakDuration'] == null ? undefined : json['defaultGlassBreakDuration'], + 'grantsBroadInstituteGroup': json['grantsBroadInstituteGroup'] == null ? undefined : json['grantsBroadInstituteGroup'], 'grantsDevAzureGroup': json['grantsDevAzureGroup'] == null ? undefined : json['grantsDevAzureGroup'], 'grantsDevFirecloudGroup': json['grantsDevFirecloudGroup'] == null ? undefined : json['grantsDevFirecloudGroup'], 'grantsProdAzureGroup': json['grantsProdAzureGroup'] == null ? undefined : json['grantsProdAzureGroup'], @@ -172,6 +179,7 @@ export function SherlockRoleV3ToJSON(value?: SherlockRoleV3 | null): any { 'canBeGlassBrokenByRoleInfo': value['canBeGlassBrokenByRoleInfo'], 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), 'defaultGlassBreakDuration': value['defaultGlassBreakDuration'], + 'grantsBroadInstituteGroup': value['grantsBroadInstituteGroup'], 'grantsDevAzureGroup': value['grantsDevAzureGroup'], 'grantsDevFirecloudGroup': value['grantsDevFirecloudGroup'], 'grantsProdAzureGroup': value['grantsProdAzureGroup'], diff --git a/sherlock-typescript-client/src/models/SherlockRoleV3Edit.ts b/sherlock-typescript-client/src/models/SherlockRoleV3Edit.ts index 853ae91d4..5955693a1 100644 --- a/sherlock-typescript-client/src/models/SherlockRoleV3Edit.ts +++ b/sherlock-typescript-client/src/models/SherlockRoleV3Edit.ts @@ -37,6 +37,12 @@ export interface SherlockRoleV3Edit { * @memberof SherlockRoleV3Edit */ defaultGlassBreakDuration?: string; + /** + * + * @type {string} + * @memberof SherlockRoleV3Edit + */ + grantsBroadInstituteGroup?: string; /** * * @type {string} @@ -107,6 +113,7 @@ export function SherlockRoleV3EditFromJSONTyped(json: any, ignoreDiscriminator: 'autoAssignAllUsers': json['autoAssignAllUsers'] == null ? undefined : json['autoAssignAllUsers'], 'canBeGlassBrokenByRole': json['canBeGlassBrokenByRole'] == null ? undefined : json['canBeGlassBrokenByRole'], 'defaultGlassBreakDuration': json['defaultGlassBreakDuration'] == null ? undefined : json['defaultGlassBreakDuration'], + 'grantsBroadInstituteGroup': json['grantsBroadInstituteGroup'] == null ? undefined : json['grantsBroadInstituteGroup'], 'grantsDevAzureGroup': json['grantsDevAzureGroup'] == null ? undefined : json['grantsDevAzureGroup'], 'grantsDevFirecloudGroup': json['grantsDevFirecloudGroup'] == null ? undefined : json['grantsDevFirecloudGroup'], 'grantsProdAzureGroup': json['grantsProdAzureGroup'] == null ? undefined : json['grantsProdAzureGroup'], @@ -127,6 +134,7 @@ export function SherlockRoleV3EditToJSON(value?: SherlockRoleV3Edit | null): any 'autoAssignAllUsers': value['autoAssignAllUsers'], 'canBeGlassBrokenByRole': value['canBeGlassBrokenByRole'], 'defaultGlassBreakDuration': value['defaultGlassBreakDuration'], + 'grantsBroadInstituteGroup': value['grantsBroadInstituteGroup'], 'grantsDevAzureGroup': value['grantsDevAzureGroup'], 'grantsDevFirecloudGroup': value['grantsDevFirecloudGroup'], 'grantsProdAzureGroup': value['grantsProdAzureGroup'], diff --git a/sherlock/docs/docs.go b/sherlock/docs/docs.go index 045e9687d..de259f50f 100644 --- a/sherlock/docs/docs.go +++ b/sherlock/docs/docs.go @@ -7007,6 +7007,11 @@ const docTemplate = `{ "name": "defaultGlassBreakDuration", "in": "query" }, + { + "type": "string", + "name": "grantsBroadInstituteGroup", + "in": "query" + }, { "type": "string", "name": "grantsDevAzureGroup", @@ -9936,6 +9941,9 @@ const docTemplate = `{ "defaultGlassBreakDuration": { "type": "string" }, + "grantsBroadInstituteGroup": { + "type": "string" + }, "grantsDevAzureGroup": { "type": "string" }, @@ -9983,6 +9991,9 @@ const docTemplate = `{ "defaultGlassBreakDuration": { "type": "string" }, + "grantsBroadInstituteGroup": { + "type": "string" + }, "grantsDevAzureGroup": { "type": "string" }, diff --git a/sherlock/docs/swagger.json b/sherlock/docs/swagger.json index fb7ccc252..abc7cdd72 100644 --- a/sherlock/docs/swagger.json +++ b/sherlock/docs/swagger.json @@ -7004,6 +7004,11 @@ "name": "defaultGlassBreakDuration", "in": "query" }, + { + "type": "string", + "name": "grantsBroadInstituteGroup", + "in": "query" + }, { "type": "string", "name": "grantsDevAzureGroup", @@ -9933,6 +9938,9 @@ "defaultGlassBreakDuration": { "type": "string" }, + "grantsBroadInstituteGroup": { + "type": "string" + }, "grantsDevAzureGroup": { "type": "string" }, @@ -9980,6 +9988,9 @@ "defaultGlassBreakDuration": { "type": "string" }, + "grantsBroadInstituteGroup": { + "type": "string" + }, "grantsDevAzureGroup": { "type": "string" }, diff --git a/sherlock/docs/swagger.yaml b/sherlock/docs/swagger.yaml index f23ebb2b2..ff42e8e49 100644 --- a/sherlock/docs/swagger.yaml +++ b/sherlock/docs/swagger.yaml @@ -1643,6 +1643,8 @@ definitions: type: string defaultGlassBreakDuration: type: string + grantsBroadInstituteGroup: + type: string grantsDevAzureGroup: type: string grantsDevFirecloudGroup: @@ -1678,6 +1680,8 @@ definitions: type: integer defaultGlassBreakDuration: type: string + grantsBroadInstituteGroup: + type: string grantsDevAzureGroup: type: string grantsDevFirecloudGroup: @@ -6577,6 +6581,9 @@ paths: - in: query name: defaultGlassBreakDuration type: string + - in: query + name: grantsBroadInstituteGroup + type: string - in: query name: grantsDevAzureGroup type: string