Module Expr Str ImportFrom alias Assign NameStore Str ImportFrom alias Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Expr Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call NameLoad Str Return Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body If CompareIsNot SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Return Assign NameStore Dict If CompareIs BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr orelse Assign NameStore Dict Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareIs NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Str keyword NameLoad Expr Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad AttributeLoad NameLoad attr
N/A N/A Sample for the Group Settings API demonstrates get and update method.

Usage:
  $ python groupsettings.py

You can also get help on all the command-line flags the program understands
by running:

  $ python groupsettings.py --help
 __future__ print_function N/A __author__ Shraddha Gupta <shraddhag@google.com> optparse OptionParser N/A os N/A pprint N/A sys googleapiclient.discovery build N/A httplib2 oauth2client.client flow_from_clientsecrets oauth2client.file Storage oauth2client.tools run N/A CLIENT_SECRETS client_secrets.json N/A MISSING_CLIENT_SECRETS_MESSAGE N/A 
WARNING: Please configure OAuth 2.0

To make this sample run you will need to populate the client_secrets.json file
found at:

   %s

with information from the APIs Console <https://code.google.com/apis/console>.

 N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ CLIENT_SECRETS access_settings N/A N/A service groupId settings N/A N/A N/A Retrieves a group's settings and updates the access permissions to it.

  Args:
    service: object service for the Group Settings API.
    groupId: string identifier of the group@domain.
    settings: dictionary key-value pairs of properties of group.
   N/A group N/A N/A service groups N/A g N/A N/A N/A N/A group get groupUniqueId groupId execute N/A N/A print N/A 
Group properties for group %s
 N/A g N/A name N/A N/A N/A pprint pprint g N/A N/A N/A N/A settings keys N/A N/A N/A print 
Give access parameters to update group access permissions
 N/A N/A body N/A N/A key N/A N/A settings iterkeys N/A N/A N/A N/A settings N/A key None N/A N/A N/A body N/A key N/A settings N/A key N/A g1 N/A N/A N/A N/A group update groupUniqueId groupId body body execute N/A N/A print 
Updated Access Permissions to the group
 N/A N/A N/A pprint pprint g1 N/A main N/A N/A argv N/A N/A N/A Demos the setting of the access properties by the Groups Settings API. N/A usage usage: %prog [options] N/A parser N/A OptionParser usage usage N/A N/A N/A parser add_option --groupId help Group email address N/A N/A N/A parser add_option --whoCanInvite help Possible values: ALL_MANAGERS_CAN_INVITE, ALL_MEMBERS_CAN_INVITE N/A N/A N/A parser add_option --whoCanJoin help Possible values: ALL_IN_DOMAIN_CAN_JOIN, ANYONE_CAN_JOIN, CAN_REQUEST_TO_JOIN, CAN_REQUEST_TO_JOIN N/A N/A N/A parser add_option --whoCanPostMessage help Possible values: ALL_IN_DOMAIN_CAN_POST, ALL_MANAGERS_CAN_POST, ALL_MEMBERS_CAN_POST, ANYONE_CAN_POST, NONE_CAN_POST N/A N/A N/A parser add_option --whoCanViewGroup help Possible values: ALL_IN_DOMAIN_CAN_VIEW, ALL_MANAGERS_CAN_VIEW, ALL_MEMBERS_CAN_VIEW, ANYONE_CAN_VIEW N/A N/A N/A parser add_option --whoCanViewMembership help Possible values: ALL_IN_DOMAIN_CAN_VIEW, ALL_MANAGERS_CAN_VIEW, ALL_MEMBERS_CAN_VIEW, ANYONE_CAN_VIEW N/A N/A options args N/A N/A parser parse_args N/A N/A N/A options groupId None N/A N/A N/A print Give the groupId for the group N/A N/A N/A parser print_help N/A N/A settings N/A N/A N/A N/A N/A options whoCanInvite N/A options whoCanJoin N/A options whoCanPostMessage N/A options whoCanPostMessage N/A options whoCanViewMembership None N/A N/A N/A print No access parameters given in input to update access permissions N/A N/A N/A parser print_help N/A N/A settings N/A whoCanInvite whoCanJoin whoCanPostMessage whoCanViewGroup whoCanViewMembership N/A options whoCanInvite N/A options whoCanJoin N/A options whoCanPostMessage N/A options whoCanViewGroup N/A options whoCanViewMembership N/A FLOW N/A flow_from_clientsecrets CLIENT_SECRETS scope https://www.googleapis.com/auth/apps.groups.settings message MISSING_CLIENT_SECRETS_MESSAGE N/A storage N/A Storage groupsettings.dat N/A credentials N/A N/A storage get N/A N/A N/A credentials None N/A credentials invalid N/A N/A N/A print invalid credentials N/A credentials N/A run FLOW storage N/A http N/A N/A httplib2 Http N/A http N/A N/A credentials authorize http N/A service N/A build groupssettings v1 http http N/A N/A access_settings service service groupId N/A options groupId settings settings N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A sys argv