191 lines
26 KiB
HTML
191 lines
26 KiB
HTML
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: class Resource</title>
|
|
</head><body bgcolor="#f0f0f8">
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets one resource by id.<br>
|
|
<br>
|
|
Args:<br>
|
|
groupUniqueId: string, The resource ID (required)<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{ # Groups resource<br>
|
|
"allowExternalMembers": "A String", # Are external members allowed to join the group.<br>
|
|
"whoCanJoin": "A String", # Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN<br>
|
|
"primaryLanguage": "A String", # Primary language for the group.<br>
|
|
"whoCanViewMembership": "A String", # Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW<br>
|
|
"defaultMessageDenyNotificationText": "A String", # Default message deny notification message<br>
|
|
"archiveOnly": "A String", # If the group is archive only<br>
|
|
"isArchived": "A String", # If the contents of the group are archived.<br>
|
|
"membersCanPostAsTheGroup": "A String", # Can members post using the group email address.<br>
|
|
"allowWebPosting": "A String", # If posting from web is allowed.<br>
|
|
"email": "A String", # Email id of the group<br>
|
|
"messageModerationLevel": "A String", # Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE<br>
|
|
"description": "A String", # Description of the group<br>
|
|
"replyTo": "A String", # Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS<br>
|
|
"customReplyTo": "A String", # Default email to which reply to any message should go.<br>
|
|
"sendMessageDenyNotification": "A String", # Should the member be notified if his message is denied by owner.<br>
|
|
"messageDisplayFont": "A String", # Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT<br>
|
|
"whoCanPostMessage": "A String", # Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST<br>
|
|
"name": "A String", # Name of the Group<br>
|
|
"kind": "groupsSettings#groups", # The type of the resource.<br>
|
|
"whoCanInvite": "A String", # Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE<br>
|
|
"whoCanViewGroup": "A String", # Permissions to view group. Possbile values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW<br>
|
|
"showInGroupDirectory": "A String", # Is the group listed in groups directory<br>
|
|
"maxMessageBytes": 42, # Maximum message size allowed.<br>
|
|
"allowGoogleCommunication": "A String", # Is google allowed to contact admins.<br>
|
|
}</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Resource-patch"><strong>patch</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates an existing resource. This method supports patch semantics.<br>
|
|
<br>
|
|
Args:<br>
|
|
body: object, The request body. (required)<br>
|
|
The object takes the form of:<br>
|
|
<br>
|
|
{ # Groups resource<br>
|
|
"allowExternalMembers": "A String", # Are external members allowed to join the group.<br>
|
|
"whoCanJoin": "A String", # Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN<br>
|
|
"primaryLanguage": "A String", # Primary language for the group.<br>
|
|
"whoCanViewMembership": "A String", # Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW<br>
|
|
"defaultMessageDenyNotificationText": "A String", # Default message deny notification message<br>
|
|
"archiveOnly": "A String", # If the group is archive only<br>
|
|
"isArchived": "A String", # If the contents of the group are archived.<br>
|
|
"membersCanPostAsTheGroup": "A String", # Can members post using the group email address.<br>
|
|
"allowWebPosting": "A String", # If posting from web is allowed.<br>
|
|
"email": "A String", # Email id of the group<br>
|
|
"messageModerationLevel": "A String", # Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE<br>
|
|
"description": "A String", # Description of the group<br>
|
|
"replyTo": "A String", # Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS<br>
|
|
"customReplyTo": "A String", # Default email to which reply to any message should go.<br>
|
|
"sendMessageDenyNotification": "A String", # Should the member be notified if his message is denied by owner.<br>
|
|
"messageDisplayFont": "A String", # Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT<br>
|
|
"whoCanPostMessage": "A String", # Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST<br>
|
|
"name": "A String", # Name of the Group<br>
|
|
"kind": "groupsSettings#groups", # The type of the resource.<br>
|
|
"whoCanInvite": "A String", # Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE<br>
|
|
"whoCanViewGroup": "A String", # Permissions to view group. Possbile values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW<br>
|
|
"showInGroupDirectory": "A String", # Is the group listed in groups directory<br>
|
|
"maxMessageBytes": 42, # Maximum message size allowed.<br>
|
|
"allowGoogleCommunication": "A String", # Is google allowed to contact admins.<br>
|
|
}<br>
|
|
<br>
|
|
groupUniqueId: string, The resource ID (required)<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{ # Groups resource<br>
|
|
"allowExternalMembers": "A String", # Are external members allowed to join the group.<br>
|
|
"whoCanJoin": "A String", # Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN<br>
|
|
"primaryLanguage": "A String", # Primary language for the group.<br>
|
|
"whoCanViewMembership": "A String", # Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW<br>
|
|
"defaultMessageDenyNotificationText": "A String", # Default message deny notification message<br>
|
|
"archiveOnly": "A String", # If the group is archive only<br>
|
|
"isArchived": "A String", # If the contents of the group are archived.<br>
|
|
"membersCanPostAsTheGroup": "A String", # Can members post using the group email address.<br>
|
|
"allowWebPosting": "A String", # If posting from web is allowed.<br>
|
|
"email": "A String", # Email id of the group<br>
|
|
"messageModerationLevel": "A String", # Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE<br>
|
|
"description": "A String", # Description of the group<br>
|
|
"replyTo": "A String", # Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS<br>
|
|
"customReplyTo": "A String", # Default email to which reply to any message should go.<br>
|
|
"sendMessageDenyNotification": "A String", # Should the member be notified if his message is denied by owner.<br>
|
|
"messageDisplayFont": "A String", # Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT<br>
|
|
"whoCanPostMessage": "A String", # Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST<br>
|
|
"name": "A String", # Name of the Group<br>
|
|
"kind": "groupsSettings#groups", # The type of the resource.<br>
|
|
"whoCanInvite": "A String", # Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE<br>
|
|
"whoCanViewGroup": "A String", # Permissions to view group. Possbile values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW<br>
|
|
"showInGroupDirectory": "A String", # Is the group listed in groups directory<br>
|
|
"maxMessageBytes": 42, # Maximum message size allowed.<br>
|
|
"allowGoogleCommunication": "A String", # Is google allowed to contact admins.<br>
|
|
}</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates an existing resource.<br>
|
|
<br>
|
|
Args:<br>
|
|
body: object, The request body. (required)<br>
|
|
The object takes the form of:<br>
|
|
<br>
|
|
{ # Groups resource<br>
|
|
"allowExternalMembers": "A String", # Are external members allowed to join the group.<br>
|
|
"whoCanJoin": "A String", # Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN<br>
|
|
"primaryLanguage": "A String", # Primary language for the group.<br>
|
|
"whoCanViewMembership": "A String", # Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW<br>
|
|
"defaultMessageDenyNotificationText": "A String", # Default message deny notification message<br>
|
|
"archiveOnly": "A String", # If the group is archive only<br>
|
|
"isArchived": "A String", # If the contents of the group are archived.<br>
|
|
"membersCanPostAsTheGroup": "A String", # Can members post using the group email address.<br>
|
|
"allowWebPosting": "A String", # If posting from web is allowed.<br>
|
|
"email": "A String", # Email id of the group<br>
|
|
"messageModerationLevel": "A String", # Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE<br>
|
|
"description": "A String", # Description of the group<br>
|
|
"replyTo": "A String", # Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS<br>
|
|
"customReplyTo": "A String", # Default email to which reply to any message should go.<br>
|
|
"sendMessageDenyNotification": "A String", # Should the member be notified if his message is denied by owner.<br>
|
|
"messageDisplayFont": "A String", # Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT<br>
|
|
"whoCanPostMessage": "A String", # Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST<br>
|
|
"name": "A String", # Name of the Group<br>
|
|
"kind": "groupsSettings#groups", # The type of the resource.<br>
|
|
"whoCanInvite": "A String", # Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE<br>
|
|
"whoCanViewGroup": "A String", # Permissions to view group. Possbile values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW<br>
|
|
"showInGroupDirectory": "A String", # Is the group listed in groups directory<br>
|
|
"maxMessageBytes": 42, # Maximum message size allowed.<br>
|
|
"allowGoogleCommunication": "A String", # Is google allowed to contact admins.<br>
|
|
}<br>
|
|
<br>
|
|
groupUniqueId: string, The resource ID (required)<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{ # Groups resource<br>
|
|
"allowExternalMembers": "A String", # Are external members allowed to join the group.<br>
|
|
"whoCanJoin": "A String", # Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN<br>
|
|
"primaryLanguage": "A String", # Primary language for the group.<br>
|
|
"whoCanViewMembership": "A String", # Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW<br>
|
|
"defaultMessageDenyNotificationText": "A String", # Default message deny notification message<br>
|
|
"archiveOnly": "A String", # If the group is archive only<br>
|
|
"isArchived": "A String", # If the contents of the group are archived.<br>
|
|
"membersCanPostAsTheGroup": "A String", # Can members post using the group email address.<br>
|
|
"allowWebPosting": "A String", # If posting from web is allowed.<br>
|
|
"email": "A String", # Email id of the group<br>
|
|
"messageModerationLevel": "A String", # Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE<br>
|
|
"description": "A String", # Description of the group<br>
|
|
"replyTo": "A String", # Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS<br>
|
|
"customReplyTo": "A String", # Default email to which reply to any message should go.<br>
|
|
"sendMessageDenyNotification": "A String", # Should the member be notified if his message is denied by owner.<br>
|
|
"messageDisplayFont": "A String", # Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT<br>
|
|
"whoCanPostMessage": "A String", # Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST<br>
|
|
"name": "A String", # Name of the Group<br>
|
|
"kind": "groupsSettings#groups", # The type of the resource.<br>
|
|
"whoCanInvite": "A String", # Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE<br>
|
|
"whoCanViewGroup": "A String", # Permissions to view group. Possbile values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW<br>
|
|
"showInGroupDirectory": "A String", # Is the group listed in groups directory<br>
|
|
"maxMessageBytes": 42, # Maximum message size allowed.<br>
|
|
"allowGoogleCommunication": "A String", # Is google allowed to contact admins.<br>
|
|
}</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
</td></tr></table>
|
|
</body></html> |