Home | History | Annotate | Download | only in dyn
      1 <html><body>
      2 <style>
      3 
      4 body, h1, h2, h3, div, span, p, pre, a {
      5   margin: 0;
      6   padding: 0;
      7   border: 0;
      8   font-weight: inherit;
      9   font-style: inherit;
     10   font-size: 100%;
     11   font-family: inherit;
     12   vertical-align: baseline;
     13 }
     14 
     15 body {
     16   font-size: 13px;
     17   padding: 1em;
     18 }
     19 
     20 h1 {
     21   font-size: 26px;
     22   margin-bottom: 1em;
     23 }
     24 
     25 h2 {
     26   font-size: 24px;
     27   margin-bottom: 1em;
     28 }
     29 
     30 h3 {
     31   font-size: 20px;
     32   margin-bottom: 1em;
     33   margin-top: 1em;
     34 }
     35 
     36 pre, code {
     37   line-height: 1.5;
     38   font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
     39 }
     40 
     41 pre {
     42   margin-top: 0.5em;
     43 }
     44 
     45 h1, h2, h3, p {
     46   font-family: Arial, sans serif;
     47 }
     48 
     49 h1, h2, h3 {
     50   border-bottom: solid #CCC 1px;
     51 }
     52 
     53 .toc_element {
     54   margin-top: 0.5em;
     55 }
     56 
     57 .firstline {
     58   margin-left: 2 em;
     59 }
     60 
     61 .method  {
     62   margin-top: 1em;
     63   border: solid 1px #CCC;
     64   padding: 1em;
     65   background: #EEE;
     66 }
     67 
     68 .details {
     69   font-weight: bold;
     70   font-size: 14px;
     71 }
     72 
     73 </style>
     74 
     75 <h1><a href="pubsub_v1beta1a.html">Google Cloud Pub/Sub API</a> . <a href="pubsub_v1beta1a.topics.html">topics</a></h1>
     76 <h2>Instance Methods</h2>
     77 <p class="toc_element">
     78   <code><a href="#create">create(body, x__xgafv=None)</a></code></p>
     79 <p class="firstline">Creates the given topic with the given name.</p>
     80 <p class="toc_element">
     81   <code><a href="#delete">delete(topic, x__xgafv=None)</a></code></p>
     82 <p class="firstline">Deletes the topic with the given name. Returns NOT_FOUND if the topic does</p>
     83 <p class="toc_element">
     84   <code><a href="#get">get(topic, x__xgafv=None)</a></code></p>
     85 <p class="firstline">Gets the configuration of a topic. Since the topic only has the name</p>
     86 <p class="toc_element">
     87   <code><a href="#list">list(maxResults=None, pageToken=None, query=None, x__xgafv=None)</a></code></p>
     88 <p class="firstline">Lists matching topics.</p>
     89 <p class="toc_element">
     90   <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
     91 <p class="firstline">Retrieves the next page of results.</p>
     92 <p class="toc_element">
     93   <code><a href="#publish">publish(body, x__xgafv=None)</a></code></p>
     94 <p class="firstline">Adds a message to the topic.  Returns NOT_FOUND if the topic does not</p>
     95 <p class="toc_element">
     96   <code><a href="#publishBatch">publishBatch(body, x__xgafv=None)</a></code></p>
     97 <p class="firstline">Adds one or more messages to the topic. Returns NOT_FOUND if the topic does</p>
     98 <h3>Method Details</h3>
     99 <div class="method">
    100     <code class="details" id="create">create(body, x__xgafv=None)</code>
    101   <pre>Creates the given topic with the given name.
    102 
    103 Args:
    104   body: object, The request body. (required)
    105     The object takes the form of:
    106 
    107 { # A topic resource.
    108   "name": "A String", # Name of the topic.
    109 }
    110 
    111   x__xgafv: string, V1 error format.
    112     Allowed values
    113       1 - v1 error format
    114       2 - v2 error format
    115 
    116 Returns:
    117   An object of the form:
    118 
    119     { # A topic resource.
    120     "name": "A String", # Name of the topic.
    121   }</pre>
    122 </div>
    123 
    124 <div class="method">
    125     <code class="details" id="delete">delete(topic, x__xgafv=None)</code>
    126   <pre>Deletes the topic with the given name. Returns NOT_FOUND if the topic does
    127 not exist. After a topic is deleted, a new topic may be created with the
    128 same name.
    129 
    130 Args:
    131   topic: string, Name of the topic to delete. (required)
    132   x__xgafv: string, V1 error format.
    133     Allowed values
    134       1 - v1 error format
    135       2 - v2 error format
    136 
    137 Returns:
    138   An object of the form:
    139 
    140     { # An empty message that you can re-use to avoid defining duplicated empty
    141       # messages in your project. A typical example is to use it as argument or the
    142       # return value of a service API. For instance:
    143       #
    144       #   service Foo {
    145       #     rpc Bar (proto2.Empty) returns (proto2.Empty) { };
    146       #   };
    147       #
    148       # BEGIN GOOGLE-INTERNAL
    149       # The difference between this one and net/rpc/empty-message.proto is that
    150       # 1) The generated message here is in proto2 C++ API.
    151       # 2) The proto2.Empty has minimum dependencies
    152       #    (no message_set or net/rpc dependencies)
    153       # END GOOGLE-INTERNAL
    154   }</pre>
    155 </div>
    156 
    157 <div class="method">
    158     <code class="details" id="get">get(topic, x__xgafv=None)</code>
    159   <pre>Gets the configuration of a topic. Since the topic only has the name
    160 attribute, this method is only useful to check the existence of a topic.
    161 If other attributes are added in the future, they will be returned here.
    162 
    163 Args:
    164   topic: string, The name of the topic to get. (required)
    165   x__xgafv: string, V1 error format.
    166     Allowed values
    167       1 - v1 error format
    168       2 - v2 error format
    169 
    170 Returns:
    171   An object of the form:
    172 
    173     { # A topic resource.
    174     "name": "A String", # Name of the topic.
    175   }</pre>
    176 </div>
    177 
    178 <div class="method">
    179     <code class="details" id="list">list(maxResults=None, pageToken=None, query=None, x__xgafv=None)</code>
    180   <pre>Lists matching topics.
    181 
    182 Args:
    183   maxResults: integer, Maximum number of topics to return.
    184   pageToken: string, The value obtained in the last <code>ListTopicsResponse</code>
    185 for continuation.
    186   query: string, A valid label query expression.
    187   x__xgafv: string, V1 error format.
    188     Allowed values
    189       1 - v1 error format
    190       2 - v2 error format
    191 
    192 Returns:
    193   An object of the form:
    194 
    195     { # Response for the ListTopics method.
    196     "nextPageToken": "A String", # If not empty, indicates that there are more topics that match the request,
    197         # and this value should be passed to the next <code>ListTopicsRequest</code>
    198         # to continue.
    199     "topic": [ # The resulting topics.
    200       { # A topic resource.
    201         "name": "A String", # Name of the topic.
    202       },
    203     ],
    204   }</pre>
    205 </div>
    206 
    207 <div class="method">
    208     <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
    209   <pre>Retrieves the next page of results.
    210 
    211 Args:
    212   previous_request: The request for the previous page. (required)
    213   previous_response: The response from the request for the previous page. (required)
    214 
    215 Returns:
    216   A request object that you can call 'execute()' on to request the next
    217   page. Returns None if there are no more items in the collection.
    218     </pre>
    219 </div>
    220 
    221 <div class="method">
    222     <code class="details" id="publish">publish(body, x__xgafv=None)</code>
    223   <pre>Adds a message to the topic.  Returns NOT_FOUND if the topic does not
    224 exist.
    225 
    226 Args:
    227   body: object, The request body. (required)
    228     The object takes the form of:
    229 
    230 { # Request for the Publish method.
    231     "topic": "A String", # The message in the request will be published on this topic.
    232     "message": { # A message data and its labels. # The message to publish.
    233       "label": [ # Optional list of labels for this message. Keys in this collection must
    234           # be unique.
    235         { # A key-value pair applied to a given object.
    236           "numValue": "A String", # An integer value.
    237           "strValue": "A String", # A string value.
    238           "key": "A String", # The key of a label is a syntactically valid URL (as per RFC 1738) with
    239               # the "scheme" and initial slashes omitted and with the additional
    240               # restrictions noted below.  Each key should be globally unique.  The
    241               # "host" portion is called the "namespace" and is not necessarily
    242               # resolvable to a network endpoint.  Instead, the namespace indicates what
    243               # system or entity defines the semantics of the label.  Namespaces do not
    244               # restrict the set of objects to which a label may be associated.
    245               #
    246               # Keys are defined by the following grammar:
    247               #
    248               #   key          = hostname "/" kpath
    249               #   kpath        = ksegment *[ "/" ksegment ]
    250               #   ksegment     = alphadigit | *[ alphadigit | "-" | "_" | "." ]
    251               #
    252               # where "hostname" and "alphadigit" are defined as in RFC 1738.
    253               #
    254               # Example key:
    255               #   spanner.google.com/universe
    256         },
    257       ],
    258       "data": "A String", # The message payload.
    259       "publishTime": "A String", # The time at which the message was published.
    260           # The time is milliseconds since the UNIX epoch.
    261       "messageId": "A String", # ID of this message assigned by the server at publication time. Guaranteed
    262           # to be unique within the topic. This value may be read by a subscriber
    263           # that receives a PubsubMessage via a Pull call or a push delivery. It must
    264           # not be populated by a publisher in a Publish call.
    265     },
    266   }
    267 
    268   x__xgafv: string, V1 error format.
    269     Allowed values
    270       1 - v1 error format
    271       2 - v2 error format
    272 
    273 Returns:
    274   An object of the form:
    275 
    276     { # An empty message that you can re-use to avoid defining duplicated empty
    277       # messages in your project. A typical example is to use it as argument or the
    278       # return value of a service API. For instance:
    279       #
    280       #   service Foo {
    281       #     rpc Bar (proto2.Empty) returns (proto2.Empty) { };
    282       #   };
    283       #
    284       # BEGIN GOOGLE-INTERNAL
    285       # The difference between this one and net/rpc/empty-message.proto is that
    286       # 1) The generated message here is in proto2 C++ API.
    287       # 2) The proto2.Empty has minimum dependencies
    288       #    (no message_set or net/rpc dependencies)
    289       # END GOOGLE-INTERNAL
    290   }</pre>
    291 </div>
    292 
    293 <div class="method">
    294     <code class="details" id="publishBatch">publishBatch(body, x__xgafv=None)</code>
    295   <pre>Adds one or more messages to the topic. Returns NOT_FOUND if the topic does
    296 not exist.
    297 
    298 Args:
    299   body: object, The request body. (required)
    300     The object takes the form of:
    301 
    302 { # Request for the PublishBatch method.
    303     "topic": "A String", # The messages in the request will be published on this topic.
    304     "messages": [ # The messages to publish.
    305       { # A message data and its labels.
    306         "label": [ # Optional list of labels for this message. Keys in this collection must
    307             # be unique.
    308           { # A key-value pair applied to a given object.
    309             "numValue": "A String", # An integer value.
    310             "strValue": "A String", # A string value.
    311             "key": "A String", # The key of a label is a syntactically valid URL (as per RFC 1738) with
    312                 # the "scheme" and initial slashes omitted and with the additional
    313                 # restrictions noted below.  Each key should be globally unique.  The
    314                 # "host" portion is called the "namespace" and is not necessarily
    315                 # resolvable to a network endpoint.  Instead, the namespace indicates what
    316                 # system or entity defines the semantics of the label.  Namespaces do not
    317                 # restrict the set of objects to which a label may be associated.
    318                 #
    319                 # Keys are defined by the following grammar:
    320                 #
    321                 #   key          = hostname "/" kpath
    322                 #   kpath        = ksegment *[ "/" ksegment ]
    323                 #   ksegment     = alphadigit | *[ alphadigit | "-" | "_" | "." ]
    324                 #
    325                 # where "hostname" and "alphadigit" are defined as in RFC 1738.
    326                 #
    327                 # Example key:
    328                 #   spanner.google.com/universe
    329           },
    330         ],
    331         "data": "A String", # The message payload.
    332         "publishTime": "A String", # The time at which the message was published.
    333             # The time is milliseconds since the UNIX epoch.
    334         "messageId": "A String", # ID of this message assigned by the server at publication time. Guaranteed
    335             # to be unique within the topic. This value may be read by a subscriber
    336             # that receives a PubsubMessage via a Pull call or a push delivery. It must
    337             # not be populated by a publisher in a Publish call.
    338       },
    339     ],
    340   }
    341 
    342   x__xgafv: string, V1 error format.
    343     Allowed values
    344       1 - v1 error format
    345       2 - v2 error format
    346 
    347 Returns:
    348   An object of the form:
    349 
    350     { # Response for the PublishBatch method.
    351     "messageIds": [ # The server-assigned ID of each published message, in the same order as
    352         # the messages in the request. IDs are guaranteed to be unique within
    353         # the topic.
    354       "A String",
    355     ],
    356   }</pre>
    357 </div>
    358 
    359 </body></html>