> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/go/cdn/models/upstreamgeorestrictions.md).

# UpstreamGeoRestrictions

## Properties

| Name          | Type                     | Description                                                                                                                                                    | Notes       |
| ------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| **BlockList** | Pointer to **\[]string** | Country codes, the format should be based on ISO 3166-1 alpha-2 codes standard. Those codes are used to either blacklist or whitelist countries in geoIPBlock. | \[optional] |
| **AllowList** | Pointer to **\[]string** | Country codes, the format should be based on ISO 3166-1 alpha-2 codes standard. Those codes are used to either blacklist or whitelist countries in geoIPBlock. | \[optional] |

## Methods

### NewUpstreamGeoRestrictions

`func NewUpstreamGeoRestrictions() *UpstreamGeoRestrictions`

NewUpstreamGeoRestrictions instantiates a new UpstreamGeoRestrictions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

### NewUpstreamGeoRestrictionsWithDefaults

`func NewUpstreamGeoRestrictionsWithDefaults() *UpstreamGeoRestrictions`

NewUpstreamGeoRestrictionsWithDefaults instantiates a new UpstreamGeoRestrictions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

### GetBlockList

`func (o *UpstreamGeoRestrictions) GetBlockList() []string`

GetBlockList returns the BlockList field if non-nil, zero value otherwise.

### GetBlockListOk

`func (o *UpstreamGeoRestrictions) GetBlockListOk() (*[]string, bool)`

GetBlockListOk returns a tuple with the BlockList field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

### SetBlockList

`func (o *UpstreamGeoRestrictions) SetBlockList(v []string)`

SetBlockList sets BlockList field to given value.

### HasBlockList

`func (o *UpstreamGeoRestrictions) HasBlockList() bool`

HasBlockList returns a boolean if a field has been set.

### GetAllowList

`func (o *UpstreamGeoRestrictions) GetAllowList() []string`

GetAllowList returns the AllowList field if non-nil, zero value otherwise.

### GetAllowListOk

`func (o *UpstreamGeoRestrictions) GetAllowListOk() (*[]string, bool)`

GetAllowListOk returns a tuple with the AllowList field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

### SetAllowList

`func (o *UpstreamGeoRestrictions) SetAllowList(v []string)`

SetAllowList sets AllowList field to given value.

### HasAllowList

`func (o *UpstreamGeoRestrictions) HasAllowList() bool`

HasAllowList returns a boolean if a field has been set.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ionos.com/cloud/go/cdn/models/upstreamgeorestrictions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
