1// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved. 2// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. 3// Code generated. DO NOT EDIT. 4 5// Core Services API 6// 7// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), 8// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and 9// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API 10// to manage resources such as virtual cloud networks (VCNs), compute instances, and 11// block storage volumes. 12// 13 14package core 15 16import ( 17 "github.com/oracle/oci-go-sdk/common" 18) 19 20// CreateNetworkSecurityGroupDetails The representation of CreateNetworkSecurityGroupDetails 21type CreateNetworkSecurityGroupDetails struct { 22 23 // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to contain the 24 // network security group. 25 CompartmentId *string `mandatory:"true" json:"compartmentId"` 26 27 // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN to create the network 28 // security group in. 29 VcnId *string `mandatory:"true" json:"vcnId"` 30 31 // Defined tags for this resource. Each key is predefined and scoped to a 32 // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). 33 // Example: `{"Operations": {"CostCenter": "42"}}` 34 DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` 35 36 // A user-friendly name for the network security group. Does not have to be unique. 37 // Avoid entering confidential information. 38 DisplayName *string `mandatory:"false" json:"displayName"` 39 40 // Free-form tags for this resource. Each tag is a simple key-value pair with no 41 // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). 42 // Example: `{"Department": "Finance"}` 43 FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` 44} 45 46func (m CreateNetworkSecurityGroupDetails) String() string { 47 return common.PointerString(m) 48} 49