# Class MockSubscriptionAdminConnection (3.7.0-rc)

3.7.0-rc 3.6.0 (latest) 3.5.0 3.4.0 3.3.0 3.2.0 2.48.0-rc 2.47.1 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.26.0 2.25.1 2.24.0 2.23.0 2.22.1 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.1 2.14.0 2.13.0 2.12.0 2.11.0 A googlemock-based mock for [`pubsub::SubscriptionAdminConnection`](https://docs.cloud.google.com/cpp/docs/reference/pubsub/latest/classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminConnection).

## Functions

### virtual CreateSubscription(CreateSubscriptionParams)

Defines the interface for [`SubscriptionAdminClient::CreateSubscription()`](https://docs.cloud.google.com/cpp/docs/reference/pubsub/latest/classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient#classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient_1a5de41b90ad90e9284d16f67d591026ce)
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `CreateSubscriptionParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::pubsub::v1::Subscription >` |   |

### virtual GetSubscription(GetSubscriptionParams)

Defines the interface for [`SubscriptionAdminClient::GetSubscription()`](https://docs.cloud.google.com/cpp/docs/reference/pubsub/latest/classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient#classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient_1a5db46a8f2cea079581820d9c3f970ce4)
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `GetSubscriptionParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::pubsub::v1::Subscription >` |   |

### virtual UpdateSubscription(UpdateSubscriptionParams)

Defines the interface for [`SubscriptionAdminClient::UpdateSubscription()`](https://docs.cloud.google.com/cpp/docs/reference/pubsub/latest/classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient#classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient_1a08a1b5414e08b85b6b7b498db8db95c1)
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `UpdateSubscriptionParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::pubsub::v1::Subscription >` |   |

### virtual ListSubscriptions(ListSubscriptionsParams)

Defines the interface for [`SubscriptionAdminClient::ListSubscriptions()`](https://docs.cloud.google.com/cpp/docs/reference/pubsub/latest/classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient#classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient_1a5441694c664576d298ce33628e4f998a)
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `ListSubscriptionsParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListSubscriptionsRange` |   |

### virtual DeleteSubscription(DeleteSubscriptionParams)

Defines the interface for [`SubscriptionAdminClient::DeleteSubscription()`](https://docs.cloud.google.com/cpp/docs/reference/pubsub/latest/classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient#classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient_1adbee4a577908d080f381cc7d82c915a5)
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `DeleteSubscriptionParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` |   |

### virtual ModifyPushConfig(ModifyPushConfigParams)

Defines the interface for `SubscriptionAdminClient::ModifyPushConfig()`
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `ModifyPushConfigParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` |   |

### virtual CreateSnapshot(CreateSnapshotParams)

Defines the interface for `SnapshotAdminClient::CreateSnapshot()`
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `CreateSnapshotParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::pubsub::v1::Snapshot >` |   |

### virtual GetSnapshot(GetSnapshotParams)

Defines the interface for `SnapshotAdminClient::GetSnapshot()`
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `GetSnapshotParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::pubsub::v1::Snapshot >` |   |

### virtual UpdateSnapshot(UpdateSnapshotParams)

Defines the interface for `SnapshotAdminClient::UpdateSnapshot()`
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `UpdateSnapshotParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::pubsub::v1::Snapshot >` |   |

### virtual ListSnapshots(ListSnapshotsParams)

Defines the interface for [`SubscriptionAdminClient::ListSnapshots()`](https://docs.cloud.google.com/cpp/docs/reference/pubsub/latest/classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient#classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient_1af509412c7e632328e10af4e1ac048a09)
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `ListSnapshotsParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListSnapshotsRange` |   |

### virtual DeleteSnapshot(DeleteSnapshotParams)

Defines the interface for `SnapshotAdminClient::DeleteSnapshot()`
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `DeleteSnapshotParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` |   |

### virtual Seek(SeekParams)

Defines the interface for [`SubscriptionAdminClient::Seek()`](https://docs.cloud.google.com/cpp/docs/reference/pubsub/latest/classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient#classgoogle_1_1cloud_1_1pubsub_1_1SubscriptionAdminClient_1adf39ab4e4cd24b2447a97410f2d2252b)
This function is implemented using [gMock](https://google.github.io/googletest)'s `MOCK_METHOD()`.
Consult the gMock documentation to use this mock in your tests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `SeekParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::pubsub::v1::SeekResponse >` |   |

### virtual options() const

Return the options used to create the connection.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Options` |   |