Skip to content
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.

Commit

Permalink
Add deprecation messages for various Group setting values (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjeerd Ritsma authored and DeviaVir committed Oct 15, 2019
1 parent 415a799 commit f61efe0
Showing 1 changed file with 37 additions and 9 deletions.
46 changes: 37 additions & 9 deletions gsuite/resource_group_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ func resourceGroupSettings() *schema.Resource {
Default: "false",
},
"allow_google_communication": {
Type: schema.TypeString,
Optional: true,
Default: "false",
Type: schema.TypeString,
Optional: true,
Default: "false",
Deprecated: "Deprecated.",
},
"allow_web_posting": {
Type: schema.TypeString,
Expand Down Expand Up @@ -86,9 +87,10 @@ func resourceGroupSettings() *schema.Resource {
Default: "true",
},
"max_message_bytes": {
Type: schema.TypeInt,
Optional: true,
Default: 26214400,
Type: schema.TypeInt,
Optional: true,
Default: 26214400,
Deprecated: "Deprecated. The maximum size of a message is 25Mb.",
},
"members_can_post_as_the_group": {
Type: schema.TypeString,
Expand All @@ -100,6 +102,7 @@ func resourceGroupSettings() *schema.Resource {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"DEFAULT_FONT", "FIXED_WIDTH_FONT", ""}, false),
Default: "DEFAULT_FONT",
Deprecated: "Deprecated. The default message display font always has a value of DEFAULT_FONT.",
},
"message_moderation_level": {
Type: schema.TypeString,
Expand All @@ -123,9 +126,10 @@ func resourceGroupSettings() *schema.Resource {
Default: "false",
},
"show_in_group_directory": {
Type: schema.TypeString,
Optional: true,
Default: "false",
Type: schema.TypeString,
Optional: true,
Default: "false",
Deprecated: "Deprecated. Use the whoCanDiscoverGroup property instead.",
},
"spam_moderation_level": {
Type: schema.TypeString,
Expand All @@ -138,12 +142,14 @@ func resourceGroupSettings() *schema.Resource {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"ALL_MANAGERS_CAN_ADD", "ALL_OWNERS_CAN_ADD", "ALL_MEMBERS_CAN_ADD", "NONE_CAN_ADD", ""}, false),
Default: "ALL_MANAGERS_CAN_ADD",
Deprecated: "Deprecated. Use the whoCanModerateMembers property instead.",
},
"who_can_add_references": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Permission to add references to a topic. This functionality is no longer supported in the Google Groups UI. The value is always NONE.",
},
"who_can_approve_members": {
Type: schema.TypeString,
Expand All @@ -156,12 +162,14 @@ func resourceGroupSettings() *schema.Resource {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "OWNERS_AND_MANAGERS",
Deprecated: "Deprecated. Use the whoCanModerateContent property instead.",
},
"who_can_assign_topics": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_assist_content": {
Type: schema.TypeString,
Expand All @@ -174,6 +182,7 @@ func resourceGroupSettings() *schema.Resource {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "OWNERS_AND_MANAGERS",
Deprecated: "Deprecated. Use the whoCanModerateMembers property instead.",
},
"who_can_contact_owner": {
Type: schema.TypeString,
Expand All @@ -186,12 +195,14 @@ func resourceGroupSettings() *schema.Resource {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "OWNERS_AND_MANAGERS",
Deprecated: "Deprecated. Use the whoCanModerateContent property instead.",
},
"who_can_delete_topics": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "OWNERS_AND_MANAGERS",
Deprecated: "Deprecated. Use the whoCanModerateContent property instead.",
},
"who_can_discover_group": {
Type: schema.TypeString,
Expand All @@ -204,18 +215,21 @@ func resourceGroupSettings() *schema.Resource {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_hide_abuse": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_invite": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"ALL_MEMBERS_CAN_INVITE", "ALL_MANAGERS_CAN_INVITE", "ALL_OWNERS_CAN_INVITE", "NONE_CAN_INVITE", ""}, false),
Default: "ALL_MANAGERS_CAN_INVITE",
Deprecated: "Deprecated. Use the whoCanModerateMembers property instead.",
},
"who_can_join": {
Type: schema.TypeString,
Expand All @@ -234,36 +248,42 @@ func resourceGroupSettings() *schema.Resource {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "OWNERS_AND_MANAGERS",
Deprecated: "Deprecated. Use the whoCanModerateContent property instead.",
},
"who_can_make_topics_sticky": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_mark_duplicate": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_mark_favorite_reply_on_any_topic": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_mark_favorite_reply_on_own_topic": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_mark_no_response_needed": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_moderate_content": {
Type: schema.TypeString,
Expand All @@ -282,30 +302,35 @@ func resourceGroupSettings() *schema.Resource {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "OWNERS_AND_MANAGERS",
Deprecated: "Deprecated. Use the whoCanModerateMembers property instead.",
},
"who_can_modify_tags_and_categories": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_move_topics_in": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "OWNERS_AND_MANAGERS",
Deprecated: "Deprecated. Use the whoCanModerateContent property instead.",
},
"who_can_move_topics_out": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "OWNERS_AND_MANAGERS",
Deprecated: "Deprecated. Use the whoCanModerateContent property instead.",
},
"who_can_post_announcements": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "OWNERS_AND_MANAGERS",
Deprecated: "Deprecated. Use the whoCanModerateContent property instead.",
},
"who_can_post_message": {
Type: schema.TypeString,
Expand All @@ -318,18 +343,21 @@ func resourceGroupSettings() *schema.Resource {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_unassign_topic": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_unmark_favorite_reply_on_any_topic": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "OWNERS_ONLY", "MANAGERS_ONLY", "OWNERS_AND_MANAGERS", "ALL_MEMBERS", ""}, false),
Default: "NONE",
Deprecated: "Deprecated. Use the whoCanAssistContent property instead.",
},
"who_can_view_group": {
Type: schema.TypeString,
Expand Down

0 comments on commit f61efe0

Please sign in to comment.