You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ListNamespacesResponse: list namespaces response.
224
224
typeListNamespacesResponsestruct {
225
-
// TotalCount: total number of existing Namespaces.
225
+
// TotalCount: total count of existing namespaces (matching any filters specified).
226
226
TotalCountuint32`json:"total_count"`
227
-
// Namespaces: a page of Namespaces.
227
+
// Namespaces: namespaces on this page.
228
228
Namespaces []*Namespace`json:"namespaces"`
229
229
}
230
230
@@ -234,14 +234,14 @@ type Namespace struct {
234
234
IDstring`json:"id"`
235
235
// Name: namespace name.
236
236
Namestring`json:"name"`
237
-
// Endpoint: endpoint of the service matching the Namespace protocol.
237
+
// Endpoint: endpoint of the service matching the namespace's protocol.
238
238
Endpointstring`json:"endpoint"`
239
239
// Protocol: namespace protocol.
240
240
// Default value: unknown
241
241
ProtocolNamespaceProtocol`json:"protocol"`
242
-
// ProjectID: project containing the Namespace.
242
+
// ProjectID: project ID of the Project containing the namespace.
243
243
ProjectIDstring`json:"project_id"`
244
-
// Region: region where the Namespace is deployed.
244
+
// Region: region where the namespace is deployed.
245
245
Region scw.Region`json:"region"`
246
246
// CreatedAt: namespace creation date.
247
247
CreatedAt*time.Time`json:"created_at"`
@@ -251,11 +251,11 @@ type Namespace struct {
251
251
252
252
// Permissions: permissions.
253
253
typePermissionsstruct {
254
-
// CanPublish: defines if user can publish messages to the service.
254
+
// CanPublish: defines whether the credentials bearer can publish messages to the service (send messages to SQS queues or publish to SNS topics).
255
255
CanPublish*bool`json:"can_publish"`
256
-
// CanReceive: defines if user can receive messages from the service.
256
+
// CanReceive: defines whether the credentials bearer can receive messages from the service.
257
257
CanReceive*bool`json:"can_receive"`
258
-
// CanManage: defines if user can manage the associated resource(s).
258
+
// CanManage: defines whether the credentials bearer can manage the associated resources (SQS queues or SNS topics or subscriptions).
259
259
CanManage*bool`json:"can_manage"`
260
260
}
261
261
@@ -269,20 +269,21 @@ func (s *API) Regions() []scw.Region {
269
269
typeListNamespacesRequeststruct {
270
270
// Region: region to target. If none is passed will use default region from the config.
271
271
Region scw.Region`json:"-"`
272
-
// OrganizationID: will list only the Namespaces owned by the specified organization.
272
+
// OrganizationID: include only namespaces in this Organization.
273
273
OrganizationID*string`json:"-"`
274
-
// ProjectID: will list only the Namespaces contained into the specified project.
274
+
// ProjectID: include only namespaces in this Project.
275
275
ProjectID*string`json:"-"`
276
-
// Page: indicate the page number of results to be returned.
276
+
// Page: page number to return.
277
277
Page*int32`json:"-"`
278
-
// PageSize: maximum number of results returned by page.
278
+
// PageSize: maximum number of namespaces to return per page.
279
279
PageSize*uint32`json:"-"`
280
-
// OrderBy: field used for sorting results.
280
+
// OrderBy: order in which to return results.
281
281
// Default value: created_at_asc
282
282
OrderByListNamespacesRequestOrderBy`json:"-"`
283
283
}
284
284
285
285
// ListNamespaces: list namespaces.
286
+
// List all Messaging and Queuing namespaces in the specified region, for a Scaleway Organization or Project. By default, the namespaces returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
@@ -427,6 +430,7 @@ type GetNamespaceRequest struct {
427
430
}
428
431
429
432
// GetNamespace: get a namespace.
433
+
// Retrieve information about an existing Messaging and Queuing namespace, identified by its namespace ID. Its full details, including name, endpoint and protocol, are returned in the response.
// Region: region to target. If none is passed will use default region from the config.
463
467
Region scw.Region`json:"-"`
464
-
// NamespaceID: ID of the Namespace to delete.
468
+
// NamespaceID: ID of the namespace to delete.
465
469
NamespaceIDstring`json:"-"`
466
470
}
467
471
468
472
// DeleteNamespace: delete a namespace.
473
+
// Delete a Messaging and Queuing namespace, specified by its namespace ID. Note that deleting a namespace is irreversible, and any URLs, credentials and queued messages belonging to this namespace will also be deleted.
// Create a set of credentials for a specific namespace.
515
+
// CreateCredential: create credentials.
516
+
// Create a set of credentials for a Messaging and Queuing namespace, specified by its namespace ID. If creating credentials for a NATS namespace, the `permissions` object must not be included in the request. If creating credentials for an SQS/SNS namespace, the `permissions` object is required, with all three of its child attributes.
// Region: region to target. If none is passed will use default region from the config.
550
555
Region scw.Region`json:"-"`
551
-
// CredentialID: ID of the Credential to delete.
556
+
// CredentialID: ID of the credentials to delete.
552
557
CredentialIDstring`json:"-"`
553
558
}
554
559
555
560
// DeleteCredential: delete credentials.
561
+
// Delete a set of credentials, specified by their credential ID. Deleting credentials is irreversible and cannot be undone. The credentials can no longer be used to access the namespace.
// Region: region to target. If none is passed will use default region from the config.
587
593
Region scw.Region`json:"-"`
588
-
// NamespaceID: namespace containing the Credential.
594
+
// NamespaceID: namespace containing the credentials.
589
595
NamespaceID*string`json:"-"`
590
-
// Page: indicate the page number of results to be returned.
596
+
// Page: page number to return.
591
597
Page*int32`json:"-"`
592
-
// PageSize: maximum number of results returned by page.
598
+
// PageSize: maximum number of credentials to return per page.
593
599
PageSize*uint32`json:"-"`
594
-
// OrderBy: field used for sorting results.
600
+
// OrderBy: order in which to return results.
595
601
// Default value: id_asc
596
602
OrderByListCredentialsRequestOrderBy`json:"-"`
597
603
}
598
604
599
605
// ListCredentials: list credentials.
606
+
// List existing credentials in the specified region. The response contains only the metadata for the credentials, not the credentials themselves (for this, use **Get Credentials**).
// Update a set of credentials. You can update the credentials' name, or (in the case of SQS/SNS credentials only) their permissions. To update the name of NATS credentials, do not include the `permissions` object in your request.
// Region: region to target. If none is passed will use default region from the config.
690
698
Region scw.Region`json:"-"`
691
-
// CredentialID: ID of the Credential to get.
699
+
// CredentialID: ID of the credentials to get.
692
700
CredentialIDstring`json:"-"`
693
701
}
694
702
695
-
// GetCredential: get a set of credentials.
703
+
// GetCredential: get credentials.
704
+
// Retrieve an existing set of credentials, identified by the `credential_id`. The credentials themselves, as well as their metadata (protocol, namespace ID etc), are returned in the response.
0 commit comments