| 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="apigee_v1.html">Apigee API</a> . <a href="apigee_v1.organizations.html">organizations</a> . <a href="apigee_v1.organizations.appgroups.html">appgroups</a> . <a href="apigee_v1.organizations.appgroups.apps.html">apps</a> . <a href="apigee_v1.organizations.appgroups.apps.keys.html">keys</a> . <a href="apigee_v1.organizations.appgroups.apps.keys.apiproducts.html">apiproducts</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Removes an API product from an app's consumer key. After the API product is removed, the app cannot access the API resources defined in that API product. **Note**: The consumer key is not removed, only its association with the API product.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#updateAppGroupAppKeyApiProduct">updateAppGroupAppKeyApiProduct(name, action=None, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Approves or revokes the consumer key for an API product. After a consumer key is approved, the app can use it to access APIs. A consumer key that is revoked or pending cannot be used to access an API. Any access tokens associated with a revoked consumer key will remain active. However, Apigee checks the status of the consumer key and if set to `revoked` will not allow access to the API.</p> |
| 86 |
<h3>Method Details</h3> |
| 87 |
<div class="method"> |
| 88 |
<code class="details" id="close">close()</code> |
| 89 |
<pre>Close httplib2 connections.</pre> |
| 90 |
</div> |
| 91 |
|
| 92 |
<div class="method"> |
| 93 |
<code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 94 |
<pre>Removes an API product from an app's consumer key. After the API product is removed, the app cannot access the API resources defined in that API product. **Note**: The consumer key is not removed, only its association with the API product. |
| 95 |
|
| 96 |
Args: |
| 97 |
name: string, Required. Parent of the AppGroup app key. Use the following structure in your request: `organizations/{org}/appgroups/{app_group_name}/apps/{app}/keys/{key}/apiproducts/{apiproduct}` (required) |
| 98 |
x__xgafv: string, V1 error format. |
| 99 |
Allowed values |
| 100 |
1 - v1 error format |
| 101 |
2 - v2 error format |
| 102 |
|
| 103 |
Returns: |
| 104 |
An object of the form: |
| 105 |
|
| 106 |
{ # AppGroupAppKey contains all the information associated with the credentials. |
| 107 |
"apiProducts": [ # Output only. List of API products and its status for which the credential can be used. **Note**: Use UpdateAppGroupAppKeyApiProductRequest API to make the association after the consumer key and secret are created. |
| 108 |
{ # APIProductAssociation has the API product and its administrative state association. |
| 109 |
"apiproduct": "A String", # API product to be associated with the credential. |
| 110 |
"status": "A String", # The API product credential associated status. Valid values are `approved` or `revoked`. |
| 111 |
}, |
| 112 |
], |
| 113 |
"attributes": [ # List of attributes associated with the credential. |
| 114 |
{ # Key-value pair to store extra metadata. |
| 115 |
"name": "A String", # API key of the attribute. |
| 116 |
"value": "A String", # Value of the attribute. |
| 117 |
}, |
| 118 |
], |
| 119 |
"consumerKey": "A String", # Immutable. Consumer key. |
| 120 |
"consumerSecret": "A String", # Secret key. |
| 121 |
"expiresAt": "A String", # Output only. Time the AppGroup app expires in milliseconds since epoch. |
| 122 |
"expiresInSeconds": "A String", # Immutable. Expiration time, in seconds, for the consumer key. If not set or left to the default value of `-1`, the API key never expires. The expiration time can't be updated after it is set. |
| 123 |
"issuedAt": "A String", # Output only. Time the AppGroup app was created in milliseconds since epoch. |
| 124 |
"scopes": [ # Scopes to apply to the app. The specified scope names must already be defined for the API product that you associate with the app. |
| 125 |
"A String", |
| 126 |
], |
| 127 |
"status": "A String", # Status of the credential. Valid values include `approved` or `revoked`. |
| 128 |
}</pre> |
| 129 |
</div> |
| 130 |
|
| 131 |
<div class="method"> |
| 132 |
<code class="details" id="updateAppGroupAppKeyApiProduct">updateAppGroupAppKeyApiProduct(name, action=None, x__xgafv=None)</code> |
| 133 |
<pre>Approves or revokes the consumer key for an API product. After a consumer key is approved, the app can use it to access APIs. A consumer key that is revoked or pending cannot be used to access an API. Any access tokens associated with a revoked consumer key will remain active. However, Apigee checks the status of the consumer key and if set to `revoked` will not allow access to the API. |
| 134 |
|
| 135 |
Args: |
| 136 |
name: string, Required. Name of the API product in the developer app key in the following format: `organizations/{org}/appgroups/{app_group_name}/apps/{app}/keys/{key}/apiproducts/{apiproduct}` (required) |
| 137 |
action: string, Approve or revoke the consumer key by setting this value to `approve` or `revoke` respectively. The `Content-Type` header, if set, must be set to `application/octet-stream`, with empty body. |
| 138 |
x__xgafv: string, V1 error format. |
| 139 |
Allowed values |
| 140 |
1 - v1 error format |
| 141 |
2 - v2 error format |
| 142 |
|
| 143 |
Returns: |
| 144 |
An object of the form: |
| 145 |
|
| 146 |
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
| 147 |
}</pre> |
| 148 |
</div> |
| 149 |
|
| 150 |
</body></html> |