Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95624,6 +95624,12 @@ components:
format: date-time
readOnly: true
type: string
default_permissions_opt_out:
description: |-
Whether to exclude restricted default permissions from this role.
Restricted default permissions are automatically assigned to every role by default. Set this field to `true` to exclude them.
Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
type: boolean
modified_at:
description: Time of last role modification.
format: date-time
Expand Down Expand Up @@ -95755,6 +95761,12 @@ components:
format: date-time
readOnly: true
type: string
default_permissions_opt_out:
description: |-
Whether to exclude restricted default permissions from this role.
Restricted default permissions are automatically assigned to every role by default. Set this field to `true` to exclude them.
Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
type: boolean
modified_at:
description: Time of last role modification.
format: date-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
/** Attributes of the created role. */
@JsonPropertyOrder({
RoleCreateAttributes.JSON_PROPERTY_CREATED_AT,
RoleCreateAttributes.JSON_PROPERTY_DEFAULT_PERMISSIONS_OPT_OUT,
RoleCreateAttributes.JSON_PROPERTY_MODIFIED_AT,
RoleCreateAttributes.JSON_PROPERTY_NAME,
RoleCreateAttributes.JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM
Expand All @@ -34,6 +35,10 @@ public class RoleCreateAttributes {
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
private OffsetDateTime createdAt;

public static final String JSON_PROPERTY_DEFAULT_PERMISSIONS_OPT_OUT =
"default_permissions_opt_out";
private Boolean defaultPermissionsOptOut;

public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at";
private OffsetDateTime modifiedAt;

Expand Down Expand Up @@ -63,6 +68,30 @@ public OffsetDateTime getCreatedAt() {
return createdAt;
}

public RoleCreateAttributes defaultPermissionsOptOut(Boolean defaultPermissionsOptOut) {
this.defaultPermissionsOptOut = defaultPermissionsOptOut;
return this;
}

/**
* Whether to exclude restricted default permissions from this role. Restricted default
* permissions are automatically assigned to every role by default. Set this field to <code>true
* </code> to exclude them. Some of these permissions can only be excluded after Minimal Access
* Roles is enabled for the organization.
*
* @return defaultPermissionsOptOut
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DEFAULT_PERMISSIONS_OPT_OUT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getDefaultPermissionsOptOut() {
return defaultPermissionsOptOut;
}

public void setDefaultPermissionsOptOut(Boolean defaultPermissionsOptOut) {
this.defaultPermissionsOptOut = defaultPermissionsOptOut;
}

/**
* Time of last role modification.
*
Expand Down Expand Up @@ -184,6 +213,8 @@ public boolean equals(Object o) {
}
RoleCreateAttributes roleCreateAttributes = (RoleCreateAttributes) o;
return Objects.equals(this.createdAt, roleCreateAttributes.createdAt)
&& Objects.equals(
this.defaultPermissionsOptOut, roleCreateAttributes.defaultPermissionsOptOut)
&& Objects.equals(this.modifiedAt, roleCreateAttributes.modifiedAt)
&& Objects.equals(this.name, roleCreateAttributes.name)
&& Objects.equals(
Expand All @@ -193,14 +224,23 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(createdAt, modifiedAt, name, receivesPermissionsFrom, additionalProperties);
return Objects.hash(
createdAt,
defaultPermissionsOptOut,
modifiedAt,
name,
receivesPermissionsFrom,
additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RoleCreateAttributes {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" defaultPermissionsOptOut: ")
.append(toIndentedString(defaultPermissionsOptOut))
.append("\n");
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" receivesPermissionsFrom: ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/** Attributes of the role. */
@JsonPropertyOrder({
RoleUpdateAttributes.JSON_PROPERTY_CREATED_AT,
RoleUpdateAttributes.JSON_PROPERTY_DEFAULT_PERMISSIONS_OPT_OUT,
RoleUpdateAttributes.JSON_PROPERTY_MODIFIED_AT,
RoleUpdateAttributes.JSON_PROPERTY_NAME,
RoleUpdateAttributes.JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM,
Expand All @@ -34,6 +35,10 @@ public class RoleUpdateAttributes {
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
private OffsetDateTime createdAt;

public static final String JSON_PROPERTY_DEFAULT_PERMISSIONS_OPT_OUT =
"default_permissions_opt_out";
private Boolean defaultPermissionsOptOut;

public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at";
private OffsetDateTime modifiedAt;

Expand All @@ -58,6 +63,30 @@ public OffsetDateTime getCreatedAt() {
return createdAt;
}

public RoleUpdateAttributes defaultPermissionsOptOut(Boolean defaultPermissionsOptOut) {
this.defaultPermissionsOptOut = defaultPermissionsOptOut;
return this;
}

/**
* Whether to exclude restricted default permissions from this role. Restricted default
* permissions are automatically assigned to every role by default. Set this field to <code>true
* </code> to exclude them. Some of these permissions can only be excluded after Minimal Access
* Roles is enabled for the organization.
*
* @return defaultPermissionsOptOut
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DEFAULT_PERMISSIONS_OPT_OUT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getDefaultPermissionsOptOut() {
return defaultPermissionsOptOut;
}

public void setDefaultPermissionsOptOut(Boolean defaultPermissionsOptOut) {
this.defaultPermissionsOptOut = defaultPermissionsOptOut;
}

/**
* Time of last role modification.
*
Expand Down Expand Up @@ -201,6 +230,8 @@ public boolean equals(Object o) {
}
RoleUpdateAttributes roleUpdateAttributes = (RoleUpdateAttributes) o;
return Objects.equals(this.createdAt, roleUpdateAttributes.createdAt)
&& Objects.equals(
this.defaultPermissionsOptOut, roleUpdateAttributes.defaultPermissionsOptOut)
&& Objects.equals(this.modifiedAt, roleUpdateAttributes.modifiedAt)
&& Objects.equals(this.name, roleUpdateAttributes.name)
&& Objects.equals(
Expand All @@ -212,14 +243,23 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
createdAt, modifiedAt, name, receivesPermissionsFrom, userCount, additionalProperties);
createdAt,
defaultPermissionsOptOut,
modifiedAt,
name,
receivesPermissionsFrom,
userCount,
additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RoleUpdateAttributes {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" defaultPermissionsOptOut: ")
.append(toIndentedString(defaultPermissionsOptOut))
.append("\n");
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" receivesPermissionsFrom: ")
Expand Down
Loading
Loading