Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.22.2" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.22.2" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,35 @@ class Customer(proto.Message):
Optional. External CRM ID for the customer.
Populated only if a CRM ID exists for this
customer.
customer_attestation_state (google.cloud.channel_v1.types.Customer.CustomerAttestationState):
Optional. Indicate whether a customer is
attesting about the correctness of provided
information. Only required if creating a GCP
Entitlement.
"""

class CustomerAttestationState(proto.Enum):
r"""The enum represents whether a customer belongs to public
sector

Values:
CUSTOMER_ATTESTATION_STATE_UNSPECIFIED (0):
Default value if not set yet
EXEMPT (1):
Customer is exempt from attesting based on
exemption list at
https://cloud.google.com/terms/direct-tos-exemptions.
Contact information of customer will be
mandatory.
NON_EXEMPT_AND_INFO_VERIFIED (2):
Customer is not exempt and has verified the
information provided is correct. Contact
information of customer will be mandatory.
"""
CUSTOMER_ATTESTATION_STATE_UNSPECIFIED = 0
EXEMPT = 1
NON_EXEMPT_AND_INFO_VERIFIED = 2

name: str = proto.Field(
proto.STRING,
number=1,
Expand Down Expand Up @@ -147,6 +174,11 @@ class Customer(proto.Message):
proto.STRING,
number=14,
)
customer_attestation_state: CustomerAttestationState = proto.Field(
proto.ENUM,
number=16,
enum=CustomerAttestationState,
)


class ContactInfo(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-channel",
"version": "1.22.2"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1622,6 +1622,7 @@ def test_get_customer(request_type, transport: str = "grpc"):
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
response = client.get_customer(request)

Expand All @@ -1641,6 +1642,10 @@ def test_get_customer(request_type, transport: str = "grpc"):
assert response.language_code == "language_code_value"
assert response.channel_partner_id == "channel_partner_id_value"
assert response.correlation_id == "correlation_id_value"
assert (
response.customer_attestation_state
== customers.Customer.CustomerAttestationState.EXEMPT
)


def test_get_customer_non_empty_request_with_auto_populated_field():
Expand Down Expand Up @@ -1774,6 +1779,7 @@ async def test_get_customer_async(
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
)
response = await client.get_customer(request)
Expand All @@ -1794,6 +1800,10 @@ async def test_get_customer_async(
assert response.language_code == "language_code_value"
assert response.channel_partner_id == "channel_partner_id_value"
assert response.correlation_id == "correlation_id_value"
assert (
response.customer_attestation_state
== customers.Customer.CustomerAttestationState.EXEMPT
)


@pytest.mark.asyncio
Expand Down Expand Up @@ -2224,6 +2234,7 @@ def test_create_customer(request_type, transport: str = "grpc"):
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
response = client.create_customer(request)

Expand All @@ -2243,6 +2254,10 @@ def test_create_customer(request_type, transport: str = "grpc"):
assert response.language_code == "language_code_value"
assert response.channel_partner_id == "channel_partner_id_value"
assert response.correlation_id == "correlation_id_value"
assert (
response.customer_attestation_state
== customers.Customer.CustomerAttestationState.EXEMPT
)


def test_create_customer_non_empty_request_with_auto_populated_field():
Expand Down Expand Up @@ -2376,6 +2391,7 @@ async def test_create_customer_async(
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
)
response = await client.create_customer(request)
Expand All @@ -2396,6 +2412,10 @@ async def test_create_customer_async(
assert response.language_code == "language_code_value"
assert response.channel_partner_id == "channel_partner_id_value"
assert response.correlation_id == "correlation_id_value"
assert (
response.customer_attestation_state
== customers.Customer.CustomerAttestationState.EXEMPT
)


@pytest.mark.asyncio
Expand Down Expand Up @@ -2491,6 +2511,7 @@ def test_update_customer(request_type, transport: str = "grpc"):
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
response = client.update_customer(request)

Expand All @@ -2510,6 +2531,10 @@ def test_update_customer(request_type, transport: str = "grpc"):
assert response.language_code == "language_code_value"
assert response.channel_partner_id == "channel_partner_id_value"
assert response.correlation_id == "correlation_id_value"
assert (
response.customer_attestation_state
== customers.Customer.CustomerAttestationState.EXEMPT
)


def test_update_customer_non_empty_request_with_auto_populated_field():
Expand Down Expand Up @@ -2639,6 +2664,7 @@ async def test_update_customer_async(
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
)
response = await client.update_customer(request)
Expand All @@ -2659,6 +2685,10 @@ async def test_update_customer_async(
assert response.language_code == "language_code_value"
assert response.channel_partner_id == "channel_partner_id_value"
assert response.correlation_id == "correlation_id_value"
assert (
response.customer_attestation_state
== customers.Customer.CustomerAttestationState.EXEMPT
)


@pytest.mark.asyncio
Expand Down Expand Up @@ -3065,6 +3095,7 @@ def test_import_customer(request_type, transport: str = "grpc"):
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
response = client.import_customer(request)

Expand All @@ -3084,6 +3115,10 @@ def test_import_customer(request_type, transport: str = "grpc"):
assert response.language_code == "language_code_value"
assert response.channel_partner_id == "channel_partner_id_value"
assert response.correlation_id == "correlation_id_value"
assert (
response.customer_attestation_state
== customers.Customer.CustomerAttestationState.EXEMPT
)


def test_import_customer_non_empty_request_with_auto_populated_field():
Expand Down Expand Up @@ -3229,6 +3264,7 @@ async def test_import_customer_async(
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
)
response = await client.import_customer(request)
Expand All @@ -3249,6 +3285,10 @@ async def test_import_customer_async(
assert response.language_code == "language_code_value"
assert response.channel_partner_id == "channel_partner_id_value"
assert response.correlation_id == "correlation_id_value"
assert (
response.customer_attestation_state
== customers.Customer.CustomerAttestationState.EXEMPT
)


@pytest.mark.asyncio
Expand Down Expand Up @@ -19531,6 +19571,7 @@ async def test_get_customer_empty_call_grpc_asyncio():
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
)
await client.get_customer(request=None)
Expand Down Expand Up @@ -19592,6 +19633,7 @@ async def test_create_customer_empty_call_grpc_asyncio():
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
)
await client.create_customer(request=None)
Expand Down Expand Up @@ -19626,6 +19668,7 @@ async def test_update_customer_empty_call_grpc_asyncio():
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
)
await client.update_customer(request=None)
Expand Down Expand Up @@ -19683,6 +19726,7 @@ async def test_import_customer_empty_call_grpc_asyncio():
language_code="language_code_value",
channel_partner_id="channel_partner_id_value",
correlation_id="correlation_id_value",
customer_attestation_state=customers.Customer.CustomerAttestationState.EXEMPT,
)
)
await client.import_customer(request=None)
Expand Down
Loading