Contents

googleapis/swift-google-cloud-networksecurity-v1

The following types provide methods to make RPCs. They are a good starting point

Overview

The following types provide methods to make RPCs. They are a good starting point to learn about this library.

  • AddressGroupServiceClient: AddressGroup is a resource that manages a collection of IP or Domain Names, it can be used in Firewall Policy to represent allow or deny traffic from all the IP or Domain Names from the Address Group.
  • OrganizationAddressGroupServiceClient: Organization AddressGroup is created under organization.
  • DnsThreatDetectorServiceClient: The Network Security API for DNS Threat Detectors.
  • FirewallActivationClient: Service for managing Firewall Endpoints and Associations.
  • InterceptClient: Service for Third-Party Packet Intercept (TPPI).
  • MirroringClient: PM2 is the "out-of-band" flavor of the Network Security Integrations product.
  • NetworkSecurityClient: Network Security API provides resources to configure authentication and authorization policies.
  • SecurityProfileGroupServiceClient: SecurityProfileGroup is a resource that defines an action for specific threat signatures or severity levels.
  • OrganizationSecurityProfileGroupServiceClient: Organization SecurityProfileGroup is created under organization.
  • SSERealmServiceClient: Service describing handlers for resources.

Quickstart

The following example demonstrates using NetworkSecurityClient:

import Foundation
import GoogleCloudNetworkSecurityV1
import GoogleCloudLocation
import GoogleIAMV1
import GoogleLongRunning
import GoogleWKT

func sample(parent: String, ) async throws {
  let client = try GoogleCloudNetworkSecurityV1.NetworkSecurityClient()
  let items = client.listAuthorizationPoliciesByItems(
    request: ListAuthorizationPoliciesRequest()
  .with {
    $0.parent = "\(parent)"
  }
)
  for try await item in items {
    print("  \(item)")
  }
}

Requirements

For the minimum supported Swift version and platform requirements, see the Requirements section in the google-cloud-swift repository.

Installation

Add swift-google-cloud-networksecurity-v1 as a package dependency:

swift package add-dependency https://github.com/googleapis/swift-google-cloud-networksecurity-v1.git --from 0.6.0

Then add GoogleCloudNetworkSecurityV1 to your target's dependencies:

swift package add-target-dependency GoogleCloudNetworkSecurityV1 <target-name> --package swift-google-cloud-networksecurity-v1

Troubleshooting

For questions, bug reports, or feature requests, please open an issue in the google-cloud-swift repository.

Contributing

Contributions to this library are always welcome and highly encouraged.

All development, issues, and pull requests are managed in the google-cloud-swift monorepo. See CONTRIBUTING.md for details on getting started.

License

Apache 2.0 - See LICENSE for more information.

Package Metadata

Repository: googleapis/swift-google-cloud-networksecurity-v1

Default branch: main

README: README.md